Skip to content

Commit a22119c

Browse files
authored
Merge pull request #2861 from fermyon/unify-tokio-dep
Unify tokio (and serde_json) under workspace dependencies
2 parents a6c1fa7 + 9c492fd commit a22119c

File tree

37 files changed

+117
-130
lines changed

37 files changed

+117
-130
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ serde_json = { workspace = true }
4646
sha2 = { workspace = true }
4747
subprocess = "0.2"
4848
tempfile = { workspace = true }
49-
tokio = { version = "1", features = ["full"] }
49+
tokio = { workspace = true, features = ["full"] }
5050
toml = { workspace = true }
5151
tracing = { workspace = true }
5252
url = { workspace = true }
@@ -148,6 +148,7 @@ sha2 = "0.10"
148148
tempfile = "3"
149149
test-environment = { git = "https://github.com/fermyon/conformance-tests", rev = "387b7f375df59e6254a7c29cf4a53507a9f46d32" }
150150
thiserror = "1"
151+
tokio = "1"
151152
toml = "0.8"
152153
tracing = { version = "0.1", features = ["log"] }
153154
tracing-opentelemetry = { version = "0.26", default-features = false, features = ["metrics"] }

crates/build/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ spin-common = { path = "../common" }
1212
spin-manifest = { path = "../manifest" }
1313
subprocess = "0.2"
1414
terminal = { path = "../terminal" }
15-
tokio = { version = "1", features = ["full"] }
15+
tokio = { workspace = true, features = ["full"] }
1616
toml = { workspace = true }
1717
tracing = { workspace = true }

crates/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ anyhow = { workspace = true }
99
dirs = { workspace = true }
1010
sha2 = { workspace = true }
1111
tempfile = { workspace = true }
12-
tokio = { version = "1", features = ["rt", "time"] }
12+
tokio = { workspace = true, features = ["rt", "time"] }
1313
url = { workspace = true }

crates/componentize/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ rand_core = "0.6"
2626
serde = { workspace = true }
2727
serde_json = { workspace = true }
2828
tempfile = { workspace = true }
29-
tokio = { version = "1", features = ["macros", "rt", "fs"] }
29+
tokio = { workspace = true, features = ["macros", "rt", "fs"] }
3030
toml = { workspace = true }
3131
wasmtime = { workspace = true }
3232
wasmtime-wasi = { workspace = true }

crates/core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ tracing = { workspace = true }
1111
wasmtime = { workspace = true }
1212

1313
[dev-dependencies]
14-
serde_json = "1"
14+
serde_json = { workspace = true }
1515
spin-componentize = { workspace = true }
1616
spin-factor-wasi = { path = "../factor-wasi" }
1717
spin-factors = { path = "../factors" }
1818
spin-factors-test = { path = "../factors-test" }
1919
spin-locked-app = { path = "../locked-app" }
20-
tokio = { version = "1", features = ["macros", "rt", "rt-multi-thread"] }
20+
tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] }
2121
wasmtime-wasi = { workspace = true }
2222

2323
[features]

crates/doctor/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ spin-common = { path = "../common" }
1414
spin-manifest = { path = "../manifest" }
1515
tempfile = { workspace = true }
1616
terminal = { path = "../terminal" }
17-
tokio = { version = "1", features = ["process"] }
17+
tokio = { workspace = true, features = ["process"] }
1818
toml = { workspace = true }
1919
toml_edit = { version = "0.22", features = ["serde"] }
2020
tracing = { workspace = true }
2121

2222
[dev-dependencies]
2323
glob = { workspace = true }
2424
tempfile = { workspace = true }
25-
tokio = { version = "1", features = ["macros", "rt"] }
25+
tokio = { workspace = true, features = ["macros", "rt"] }
2626
ui-testing = { path = "../ui-testing" }
2727

2828
[[test]]

crates/expressions/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ spin-locked-app = { path = "../locked-app" }
1212
thiserror = { workspace = true }
1313

1414
[dev-dependencies]
15-
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
15+
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
1616
toml = { workspace = true }

crates/factor-key-value/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spin-factors = { path = "../factors" }
1313
spin-locked-app = { path = "../locked-app" }
1414
spin-world = { path = "../world" }
1515
table = { path = "../table" }
16-
tokio = { version = "1", features = ["macros", "sync", "rt"] }
16+
tokio = { workspace = true, features = ["macros", "sync", "rt"] }
1717
toml = { workspace = true }
1818
tracing = { workspace = true }
1919

@@ -22,7 +22,7 @@ spin-factors-test = { path = "../factors-test" }
2222
spin-key-value-redis = { path = "../key-value-redis" }
2323
spin-key-value-spin = { path = "../key-value-spin" }
2424
tempfile = { workspace = true }
25-
tokio = { version = "1", features = ["macros", "rt"] }
25+
tokio = { workspace = true, features = ["macros", "rt"] }
2626

2727

2828
[lints]

crates/factor-llm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ spin-llm-local = { path = "../llm-local", optional = true }
2222
spin-llm-remote-http = { path = "../llm-remote-http" }
2323
spin-locked-app = { path = "../locked-app" }
2424
spin-world = { path = "../world" }
25-
tokio = { version = "1", features = ["sync"] }
25+
tokio = { workspace = true, features = ["sync"] }
2626
toml = { workspace = true }
2727
tracing = { workspace = true }
2828
url = { version = "2", features = ["serde"] }
2929

3030
[dev-dependencies]
3131
spin-factors-test = { path = "../factors-test" }
32-
tokio = { version = "1", features = ["macros", "rt"] }
32+
tokio = { workspace = true, features = ["macros", "rt"] }
3333

3434
[lints]
3535
workspace = true

crates/factor-outbound-http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spin-factors = { path = "../factors" }
1717
spin-telemetry = { path = "../telemetry" }
1818
spin-world = { path = "../world" }
1919
terminal = { path = "../terminal" }
20-
tokio = { version = "1", features = ["macros", "rt", "net"] }
20+
tokio = { workspace = true, features = ["macros", "rt", "net"] }
2121
tokio-rustls = { version = "0.26", default-features = false, features = ["logging", "tls12"] }
2222
tracing = { workspace = true }
2323
wasmtime = { workspace = true }

0 commit comments

Comments
 (0)