Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
228 lines (216 loc) · 7.73 KB
/
Copy pathCargo.toml
File metadata and controls
228 lines (216 loc) · 7.73 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
[package]
name = "spin-cli"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
[workspace.package]
version = "4.4.0-pre0"
authors = ["Spin Framework Contributors"]
edition = "2024"
license = "Apache-2.0 WITH LLVM-exception"
homepage = "https://spinframework.dev"
repository = "https://github.com/spinframework/spin"
rust-version = "1.96"
[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
bytes = { workspace = true }
clap = { workspace = true, features = ["derive", "env", "string", "wrap_help"] }
clap-markdown = "0.1.5"
clap_lex = "0.7.5"
clearscreen = "4"
comfy-table = "7"
command-group = { version = "5", features = ["with-tokio"] }
ctrlc = { workspace = true }
dialoguer = { workspace = true }
futures = { workspace = true }
http = { workspace = true }
indicatif = "0.17"
itertools = { workspace = true }
levenshtein = "1"
nix = { version = "0.29", features = ["signal"] }
path-absolutize = { workspace = true }
pathdiff = "0.2"
pretty_assertions = "1.3"
regex = { workspace = true }
reqwest = { workspace = true }
rpassword = "7"
schemars = { workspace = true }
semver = { workspace = true }
serde = { version = "1", features = ["derive"] }
serde_json = { workspace = true }
sha2 = { workspace = true }
subprocess = "0.2"
tempfile = { workspace = true }
tokio = { workspace = true, features = ["full"] }
toml = { workspace = true }
toml_edit = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }
uuid = { version = "1.0", features = ["v4"] }
wasm-pkg-client = { workspace = true }
watchexec = "8.0"
watchexec-events = "6.0"
watchexec-filterer-globset = "8.0"
spin-app = { path = "crates/app" }
spin-build = { path = "crates/build" }
spin-capabilities = { path = "crates/capabilities" }
spin-common = { path = "crates/common" }
spin-connection-semaphore = { path = "crates/connection-semaphore" }
spin-dependency-wit = { path = "crates/dependency-wit" }
spin-factors-executor = { path = "crates/factors-executor" }
spin-doctor = { path = "crates/doctor" }
spin-environments = { path = "crates/environments" }
spin-factor-outbound-networking = { path = "crates/factor-outbound-networking" }
spin-http = { path = "crates/http" }
spin-loader = { path = "crates/loader" }
spin-locked-app = { path = "crates/locked-app" }
spin-manifest = { path = "crates/manifest" }
spin-oci = { path = "crates/oci" }
spin-plugins = { path = "crates/plugins" }
spin-runtime-factors = { path = "crates/runtime-factors" }
spin-serde = { path = "crates/serde" }
spin-telemetry = { path = "crates/telemetry", features = [
"tracing-log-compat",
] }
spin-templates = { path = "crates/templates" }
spin-tls = { path = "crates/tls" }
spin-trigger = { path = "crates/trigger" }
spin-trigger-http = { path = "crates/trigger-http" }
spin-trigger-redis = { path = "crates/trigger-redis" }
terminal = { path = "crates/terminal" }
rand.workspace = true
clap_complete = { version = "4.6.2", features = ["unstable-dynamic"] }
[target.'cfg(target_os = "linux")'.dependencies]
# This needs to be an explicit dependency to enable
# '--features openssl/vendored', which is used for Linux releases.
openssl = { version = "0.10" }
[dev-dependencies]
anyhow = { workspace = true, features = ["backtrace"] }
conformance = { path = "tests/conformance-tests" }
conformance-tests = { workspace = true }
fake-opentelemetry-collector = "0.28"
hex = "0.4"
http-body-util = { workspace = true }
hyper = { workspace = true }
hyper-util = { workspace = true }
redis = { workspace = true }
reqwest = { workspace = true, features = ["json"] }
runtime-tests = { path = "tests/runtime-tests" }
test-codegen-macro = { path = "crates/test-codegen-macro" }
test-components = { path = "tests/test-components" }
test-environment = { workspace = true }
testing-framework = { path = "tests/testing-framework" }
[build-dependencies]
cargo-target-dep = { git = "https://github.com/fermyon/cargo-target-dep", rev = "482f269eceb7b1a7e8fc618bf8c082dd24979cf1" }
vergen = { version = "^8.2.1", default-features = false, features = [
"build",
"git",
"gitcl",
"cargo",
] }
[features]
default = ["llm", "cpu-time-metrics"]
all-tests = ["extern-dependencies-tests"]
extern-dependencies-tests = []
llm = ["spin-runtime-factors/llm"]
llm-metal = ["llm", "spin-runtime-factors/llm-metal"]
llm-cublas = ["llm", "spin-runtime-factors/llm-cublas"]
# This enables the collection and emission CPU time elapsed per component execution.
cpu-time-metrics = ["spin-factors-executor/cpu-time-metrics"]
experimental-wasm-features = ["spin-trigger/experimental-wasm-features"]
[workspace]
members = [
"crates/*",
"tests/conformance-tests",
"tests/runtime-tests",
"tests/testing-framework",
]
[workspace.dependencies]
anyhow = "1"
astral-tokio-tar = "0.6"
async-trait = "0.1"
base64 = "0.22"
bytes = "1.11.1"
chrono = "0.4"
clap = "4.6.0"
conformance-tests = { git = "https://github.com/fermyon/conformance-tests", rev = "ffc2c879cdcb3c619c8f95ae8e0b847af8c8247e" }
ctrlc = { version = "3.4", features = ["termination"] }
dialoguer = "0.11"
dirs = "6.0"
flate2 = "1"
futures = "0.3"
futures-util = "0.3"
glob = "0.3"
heck = "0.5"
http = "1.5.0"
http-body = "1"
http-body-util = "0.1"
hyper = { version = "1", features = ["full"] }
hyper-util = { version = "0.1", features = ["tokio"] }
indexmap = "2"
itertools = "0.15"
opentelemetry = "0.29"
# The default `reqwest-blocking-client` causes a runtime panic
opentelemetry-otlp = { version = "0.29", default-features = false, features = ["http-proto", "reqwest-client", "logs"]}
opentelemetry_sdk = {version = "0.29", features = [
"experimental_metrics_periodicreader_with_async_runtime",
"experimental_trace_batch_span_processor_with_async_runtime",
"experimental_logs_batch_log_processor_with_async_runtime",
"experimental_async_runtime"
]}
opentelemetry-semantic-conventions = { version = "0.29", features = ["semconv_experimental"] }
path-absolutize = "3"
pin-project-lite = "0.2.16"
quote = "1"
rand = "0.10.1"
redis = "0.32.5"
regex = "1"
reqwest = { version = "0.12", features = ["stream", "blocking", "rustls-tls-native-roots"] }
rusqlite = "0.41"
# In `rustls` turn off the `aws_lc_rs` default feature and turn on `ring`.
# If both `aws_lc_rs` and `ring` are enabled, a panic at runtime will occur.
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "logging", "tls12"] }
rustls-pki-types = "1.12"
rustls-platform-verifier = "0.6"
schemars = { version = "1.2", features = ["indexmap2", "semver1"] }
semver = "1"
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "1.0"
sha2 = "0.10"
syn = "3.0.5"
tar = "0.4"
tempfile = "3"
test-environment = { git = "https://github.com/fermyon/conformance-tests", rev = "ffc2c879cdcb3c619c8f95ae8e0b847af8c8247e" }
thiserror = "2"
tokio = "1"
tokio-rustls = { version = "0.26", default-features = false, features = ["logging", "tls12"] }
toml = "0.8"
toml_edit = "0.22"
tower-service = "0.3.3"
tracing = { version = "0.1.44", features = ["log"] }
url = "2.5.7"
tracing-opentelemetry = { version = "0.30", default-features = false, features = ["metrics"] }
walkdir = "2"
wac-graph = "0.11.0"
wac-types = "0.11.0"
wasm-pkg-client = "0.11"
wasm-pkg-common = "0.11"
# Dependencies from bytecodealliance/wasmtime
wasmtime = "51.0.0"
wasmtime-wasi = { version = "51.0.0", features = ["p3"] }
wasmtime-wasi-http = { version = "51.0.0", features = ["p3", "component-model-async"] }
# Dependencies from bytecodealliance/wasm-tools
wasm-encoder = "0.263.0"
wasm-metadata = "0.263.0"
wasmparser = "0.263.0"
wit-component = "0.263.0"
wit-parser = "0.263.0"
spin-componentize = { path = "crates/componentize" }
[workspace.lints.clippy]
# TODO: Remove this once https://github.com/rust-lang/rust-clippy/issues/12281 is resolved
blocks_in_conditions = "allow"
[[bin]]
name = "spin"
path = "src/bin/spin.rs"