Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
266 lines (243 loc) · 9.38 KB
/
Copy pathCargo.toml
File metadata and controls
266 lines (243 loc) · 9.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
[workspace]
members = [
".",
"crates/rise-authz",
"crates/rise-backend-auth",
"crates/rise-backend-core",
"crates/rise-backend-docker",
"crates/rise-backend-ecs",
"crates/rise-backend-kubernetes",
"crates/rise-backend-traefik",
"crates/rise-deployment-spec",
"crates/rise-resource-api",
"crates/rise-resource-store-postgres",
"crates/rise-runtime-sync",
]
# The rise-e2e harness is its own standalone workspace (tests/e2e/Cargo.toml) so
# the production image build (cargo-chef over this root) never resolves or
# compiles this test-only crate. Excluded so cargo doesn't auto-discover it.
exclude = ["tests/e2e"]
resolver = "2"
# Shared package metadata. Crates that are part of the permissively-licensed
# core inherit `license` from here; the BSL-licensed backend crates state their
# own. See LICENSING.md.
[workspace.package]
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rise-deploy/rise"
[workspace.dependencies]
anyhow = "1.0.100"
async-trait = "0.1"
base64 = "0.23"
chrono = { version = "0.4.38", features = ["serde"] }
jsonwebtoken = { version = "11.0", features = ["rust_crypto"] }
rand = "0.10.0"
rsa = "0.9"
schemars = { version = "1", features = ["chrono04", "uuid1"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145"
sha2 = "0.11"
sqlx = { version = "0.9", features = ["runtime-tokio", "tls-native-tls", "postgres", "uuid", "chrono", "migrate", "json"] }
thiserror = "2.0"
tokio = { version = "1.48.0", features = ["full"] }
rise-deployment-spec = { path = "crates/rise-deployment-spec" }
tracing = "0.1.43"
regex = "1.11"
url = "2.5"
uuid = { version = "1.18.1", features = ["v4", "serde"] }
[package]
name = "rise-deploy"
version = "0.23.0-rc20"
publish = false
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "A simple and powerful CLI for deploying containerized applications"
[package.metadata.cargo-all-features]
# Always include the default cli feature to avoid testing empty feature set
always_include_features = ["cli"]
[package.metadata.dist]
dist = true
cargo-dist-version = "0.31.0"
ci = []
installers = []
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
]
pr-run-mode = "skip"
[[bin]]
name = "rise"
path = "src/main.rs"
[features]
default = ["cli"]
cli = [
"dep:clap",
"dep:comfy-table",
"dep:dirs",
"dep:rpassword",
"dep:tempfile",
"dep:toml",
"dep:url",
"dep:webbrowser",
"dep:serde_ignored",
"dep:async-trait",
"dep:serde_yaml",
]
backend = [
# Server core (former "server" feature)
"dep:rise-authz",
"dep:rise-backend-auth",
"dep:rise-backend-core",
"dep:rise-backend-docker",
"dep:rise-backend-ecs",
"dep:rise-backend-kubernetes",
"dep:rise-backend-traefik",
"dep:rise-resource-api",
"dep:rise-resource-store-postgres",
"dep:rise-runtime-sync",
"dep:config",
"dep:openssl",
"dep:rsa",
"dep:sqlx",
"dep:tower",
"dep:tower-http",
"dep:tokio-util",
"dep:regex",
"dep:aes-gcm",
"dep:moka",
"dep:ipnet",
"dep:async-trait",
"dep:oci-distribution",
"dep:thiserror",
"dep:mime_guess",
"dep:tera",
"dep:serde_ignored",
"dep:subtle",
"dep:serde_urlencoded",
"dep:schemars",
"dep:serde_yaml",
"dep:tokio-tungstenite",
"rise-deployment-spec/schema",
"rise-backend-core/schema",
# Kubernetes (former "k8s" feature)
"dep:kube",
"dep:k8s-openapi",
"dep:rustls",
# Docker runtime (Traefik routing)
"dep:bollard",
"dep:tar",
# AWS services (former "aws" feature)
"dep:aws-config",
"dep:aws-sdk-ecr",
"dep:aws-sdk-ecs",
"dep:aws-sdk-ssm",
"dep:aws-sdk-iam",
"dep:aws-sdk-kms",
"dep:aws-sdk-rds",
"dep:aws-sdk-s3",
"dep:aws-sdk-sts",
# Snowflake (former "snowflake" feature)
"dep:snowflake-connector-rs",
]
[dependencies]
# Workspace crates (backend only)
rise-authz = { path = "crates/rise-authz", optional = true }
rise-backend-auth = { path = "crates/rise-backend-auth", optional = true }
rise-backend-core = { path = "crates/rise-backend-core", optional = true }
rise-backend-docker = { path = "crates/rise-backend-docker", optional = true }
rise-backend-ecs = { path = "crates/rise-backend-ecs", optional = true }
rise-backend-kubernetes = { path = "crates/rise-backend-kubernetes", optional = true }
rise-backend-traefik = { path = "crates/rise-backend-traefik", optional = true }
rise-resource-api = { path = "crates/rise-resource-api", optional = true }
rise-resource-store-postgres = { path = "crates/rise-resource-store-postgres", optional = true }
rise-runtime-sync = { path = "crates/rise-runtime-sync", optional = true }
# Common (always enabled - shared across features)
anyhow = "1.0.100"
rise-deployment-spec = { workspace = true }
async-stream = "0.3"
base64 = { workspace = true }
bytes = "1.9"
chrono = { workspace = true }
futures = "0.3"
rand = "0.10.0"
reqwest = { version = "0.13.0", features = ["json", "stream", "form"] }
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { version = "1.48.0", features = ["full", "test-util"] }
tracing = "0.1.43"
tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }
uuid = { workspace = true }
# Shared: CLI + Server
axum = "0.8.7"
axum-extra = { version = "0.12", features = ["query"] }
jsonwebtoken = { workspace = true }
sha2 = { workspace = true }
urlencoding = "2.1"
# CLI-only dependencies
clap = { version = "4.5.53", features = ["derive"], optional = true }
comfy-table = { version = "8.0", optional = true }
dirs = { version = "7.0", optional = true }
rpassword = { version = "7.4", optional = true }
tempfile = { version = "3.0", optional = true }
toml = { version = "1", optional = true }
url = { workspace = true, optional = true }
webbrowser = { version = "1.0.2", optional = true }
serde_ignored = { version = "0.1", optional = true }
# Server core dependencies
config = { version = "0.15.19", default-features = false, features = ["yaml"], optional = true }
openssl = { version = "0.10.75", features = ["vendored"], optional = true }
sqlx = { version = "0.9", features = ["runtime-tokio", "tls-native-tls", "postgres", "uuid", "chrono", "migrate"], optional = true }
tower = { version = "0.5.2", optional = true }
tower-http = { version = "0.7.0", features = ["trace", "cors"], optional = true }
tokio-util = { version = "0.7", optional = true }
regex = { workspace = true, optional = true }
rsa = { workspace = true, optional = true }
# Server: Encryption (non-KMS mode)
aes-gcm = { version = "0.11", optional = true }
# Server: OAuth2 proxy
moka = { version = "0.12", features = ["sync", "future"], optional = true }
ipnet = { version = "2.12", optional = true }
# Server: OCI registry
async-trait = { version = "0.1", optional = true }
oci-distribution = { version = "0.11", optional = true }
thiserror = { version = "2.0", optional = true }
# Server: Frontend
mime_guess = { version = "2.0", optional = true }
tera = { version = "2.0", optional = true }
# AWS feature dependencies
aws-config = { version = "1.5", features = ["behavior-version-latest"], optional = true }
aws-sdk-ecr = { version = "1.80", default-features = false, features = ["default-https-client", "rt-tokio"], optional = true }
aws-sdk-ecs = { version = "1.80", default-features = false, features = ["default-https-client", "rt-tokio"], optional = true }
aws-sdk-ssm = { version = "1.80", default-features = false, features = ["default-https-client", "rt-tokio"], optional = true }
aws-sdk-iam = { version = "1.80", default-features = false, features = ["default-https-client", "rt-tokio"], optional = true }
aws-sdk-kms = { version = "1.80", default-features = false, features = ["default-https-client", "rt-tokio"], optional = true }
aws-sdk-rds = { version = "1.80", default-features = false, features = ["default-https-client", "rt-tokio"], optional = true }
aws-sdk-s3 = { version = "1.80", default-features = false, features = ["default-https-client", "rt-tokio"], optional = true }
aws-sdk-sts = { version = "1.80", default-features = false, features = ["default-https-client", "rt-tokio", "sigv4a"], optional = true }
# Kubernetes feature dependencies
kube = { version = "4", features = ["client", "derive"], optional = true }
# The version feature is the oldest Kubernetes API k8s-openapi supports, and it
# is Rise's minimum supported Kubernetes version. Raise it with k8s-openapi, and
# with it `kubeVersion` in helm/rise/Chart.yaml and the Kubernetes backend docs.
k8s-openapi = { version = "0.28", features = ["v1_32", "schemars"], optional = true }
rustls = { version = "0.23", features = ["ring"], optional = true }
# Docker runtime feature dependency (Traefik routing)
bollard = { version = "0.21", optional = true }
# Workload-identity file delivery into Docker containers (archive PUT/GET).
tar = { version = "0.4", optional = true }
# Snowflake feature dependencies
snowflake-connector-rs = { version = "0.9", optional = true }
# Server: OAuth2 token endpoint
subtle = { version = "2.6.1", optional = true }
serde_urlencoded = { version = "0.7.1", optional = true }
schemars = { workspace = true, optional = true }
serde_yaml = { version = "0.9", optional = true }
tokio-tungstenite = { version = "0.30", features = ["rustls-tls-native-roots"], optional = true }
[dev-dependencies]
tempfile = "3.0"
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"