Skip to content

Commit 48eeac1

Browse files
committed
deps(tokio): bump minor ver; extract workspace dep; tree-shake features
1 parent 06845ff commit 48eeac1

8 files changed

Lines changed: 41 additions & 59 deletions

File tree

Cargo.lock

Lines changed: 31 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ unexpected_cfgs = { level = "warn", check-cfg = [
2828
"cfg(nightly_yew)",
2929
"cfg(wasm_bindgen_unstable_test_coverage)"
3030
]}
31+
[workspace.dependencies]
32+
tokio = { version = "1.47.1" }

examples/simple_ssr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ wasm-logger = "0.2"
2626
log = "0.4"
2727

2828
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
29-
tokio = { version = "1.43.1", features = ["full"] }
29+
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "fs"] }
3030
warp = "0.3"
3131
clap = { version = "4", features = ["derive"] }
3232

examples/ssr_router/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ wasm-bindgen-futures = "0.4"
2525
wasm-logger = "0.2"
2626

2727
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
28-
tokio = { version = "1.43.1", features = ["full"] }
28+
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "net", "fs"] }
2929
axum = "0.8"
3030
tower = { version = "0.5", features = ["make"] }
3131
tower-http = { version = "0.6", features = ["fs"] }

examples/wasi_ssr_module/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ serde = { version = "^1", features = ["derive"] }
1414
serde_json = "^1"
1515
lazy_static = "^1"
1616

17-
tokio = { version = "^1", features = ["macros", "rt", "time"] }
17+
tokio = { workspace = true, features = ["macros", "rt", "time"] }

packages/yew/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ wasm-bindgen-futures = "0.4"
4040

4141
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
4242
# We still need tokio as we have docs linked to it.
43-
tokio = { version = "1.43", features = ["rt"] }
43+
tokio = { workspace = true, features = ["rt"] }
4444

4545
[dependencies.web-sys]
4646
version = "^0.3.70"
@@ -79,10 +79,10 @@ features = [
7979
]
8080

8181
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
82-
tokio = { version = "1.43", features = ["full"] }
82+
tokio = { workspace = true, features = ["rt", "macros"] }
8383

8484
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies]
85-
tokio = { version = "1.40", features = ["macros", "rt", "time"] }
85+
tokio = { workspace = true, features = ["macros", "rt", "time"] }
8686

8787
[dev-dependencies]
8888
wasm-bindgen-test = "0.3"

tools/benchmark-ssr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
[dependencies]
99
yew = { path = "../../packages/yew", features = ["ssr"] }
1010
function_router = { path = "../../examples/function_router" }
11-
tokio = { version = "1.43", features = ["full"] }
11+
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] }
1212
average = "0.15.1"
1313
tabled = "0.18.0"
1414
indicatif = "0.17.8"

tools/website-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ weblog = "0.3.0"
2121
yew = { path = "../../packages/yew/", features = ["ssr", "csr", "serde"] }
2222
yew-autoprops = "0.4.1"
2323
yew-router = { path = "../../packages/yew-router/" }
24-
tokio = { version = "1.43.1", features = ["rt", "macros"] }
24+
tokio = { workspace = true, features = ["rt", "macros"] }
2525

2626
[dev-dependencies.web-sys]
2727
version = "0.3"

0 commit comments

Comments
 (0)