Skip to content

Commit 5bb2f7c

Browse files
chore: extract common deps to the workspace manifest (#3989)
1 parent 47b5ad0 commit 5bb2f7c

46 files changed

Lines changed: 222 additions & 194 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,31 @@ unexpected_cfgs = { level = "warn", check-cfg = [
3232
[workspace.dependencies]
3333
tokio = { version = "1.48.0" }
3434
implicit-clone = { version = "0.6.0" }
35+
proc-macro2 = "1"
36+
quote = "1"
37+
syn = { version = "2" }
38+
trybuild = "1"
39+
clap = { version = "4", features = ["derive"] }
40+
bytes = "1"
41+
wasm-bindgen = "0.2"
42+
wasm-bindgen-futures = "0.4"
43+
js-sys = "0.3"
44+
web-sys = "0.3"
45+
gloo = "0.11"
46+
serde = "1"
47+
serde_json = "1"
48+
futures = "0.3"
49+
log = "0.4"
50+
wasm-logger = "0.2"
51+
rand = "0.9"
52+
getrandom = { version = "0.3", features = ["wasm_js"] }
53+
instant = { version = "0.1", features = ["wasm-bindgen"] }
54+
once_cell = "1"
55+
rustversion = "1"
56+
strum = "0.27"
57+
strum_macros = "0.27"
58+
anyhow = "1"
59+
chrono = "0.4"
60+
thiserror = "2.0"
61+
bincode = { version = "2.0.0-rc.3", features = ["serde"] }
62+
reqwest = "0.12"

examples/async_clock/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ license = "MIT OR Apache-2.0"
77

88
[dependencies]
99
yew = { path = "../../packages/yew", features = ["csr"] }
10-
chrono = "0.4"
11-
futures = "0.3"
10+
chrono.workspace = true
11+
futures.workspace = true
1212
gloo-net = "0.6"

examples/boids/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ license = "MIT OR Apache-2.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99
[dependencies]
10-
anyhow = "1.0"
11-
getrandom = { version = "0.3", features = ["wasm_js"] }
12-
rand = "0.9"
13-
serde = { version = "1.0", features = ["derive"] }
10+
anyhow.workspace = true
11+
getrandom = { workspace = true }
12+
rand.workspace = true
13+
serde = { workspace = true, features = ["derive"] }
1414
yew = { path = "../../packages/yew", features = ["csr"] }
15-
gloo = "0.11"
15+
gloo.workspace = true
1616

1717
[dependencies.web-sys]
18-
version = "0.3"
18+
workspace = true
1919
features = [
2020
"HtmlInputElement",
2121
]

examples/counter/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
gloo = "0.11"
10-
js-sys = "0.3"
9+
gloo.workspace = true
10+
js-sys.workspace = true
1111
yew = { path = "../../packages/yew", features = ["csr"] }
12-
wasm-bindgen = "0.2"
12+
wasm-bindgen.workspace = true

examples/dyn_create_destroy_apps/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ edition = "2021"
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
js-sys = "0.3"
9+
js-sys.workspace = true
1010
yew = { path = "../../packages/yew", features = ["csr"] }
1111
slab = "0.4.9"
12-
gloo = "0.11"
13-
wasm-bindgen = "0.2"
12+
gloo.workspace = true
13+
wasm-bindgen.workspace = true
1414

1515
[dependencies.web-sys]
16-
version = "0.3.70"
16+
workspace = true
1717
features = [
1818
"Document",
1919
"Element",

examples/file_upload/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ edition = "2021"
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
js-sys = "0.3"
9+
js-sys.workspace = true
1010
yew = { path = "../../packages/yew", features = ["csr"] }
1111
base64 = "0.22.1"
12-
gloo = "0.11"
12+
gloo.workspace = true
1313

1414
[dependencies.web-sys]
15-
version = "0.3"
15+
workspace = true
1616
features = ["DataTransfer"]

examples/function_delayed_input/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ license = "MIT OR Apache-2.0"
77

88
[dependencies]
99
gloo-timers = { version = "0.3.0", features = ["futures"] }
10-
web-sys = { version = "0.3.67", features = ["Window"]}
10+
web-sys = { workspace = true, features = ["Window"]}
1111
yew = { path = "../../packages/yew", features = ["csr"] }

examples/function_memory_game/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ edition = "2021"
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
serde = { version = "1.0", features = ["derive"] }
10-
strum = "0.27"
11-
strum_macros = "0.27"
12-
gloo = "0.11"
9+
serde = { workspace = true, features = ["derive"] }
10+
strum.workspace = true
11+
strum_macros.workspace = true
12+
gloo.workspace = true
1313
nanoid = "0.4"
14-
rand = "0.9"
15-
getrandom = { version = "0.3", features = ["wasm_js"] }
14+
rand.workspace = true
15+
getrandom = { workspace = true }
1616
yew = { path = "../../packages/yew", features = ["csr"] }
1717

1818
[dependencies.web-sys]
19-
version = "0.3"
19+
workspace = true
2020
features = [
2121
"HtmlInputElement",
2222
]

examples/function_router/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ license = "MIT OR Apache-2.0"
66

77
[dependencies]
88
lipsum = { version = "0.9.1", git = "https://github.com/mgeisler/lipsum.git", branch = "master" }
9-
log = "0.4"
10-
rand = { version = "0.9", features = ["small_rng"] }
9+
log.workspace = true
10+
rand = { workspace = true, features = ["small_rng"] }
1111
yew = { path = "../../packages/yew" }
1212
yew-router = { path = "../../packages/yew-router" }
13-
serde = { version = "1.0", features = ["derive"] }
14-
gloo = "0.11"
15-
wasm-logger = "0.2"
16-
instant = { version = "0.1", features = ["wasm-bindgen"] }
17-
once_cell = "1"
13+
serde = { workspace = true, features = ["derive"] }
14+
gloo.workspace = true
15+
wasm-logger.workspace = true
16+
instant = { workspace = true }
17+
once_cell.workspace = true
1818

1919
[target.'cfg(target_arch = "wasm32")'.dependencies]
20-
getrandom = { version = "0.3.4", features = ["wasm_js"] }
20+
getrandom = { workspace = true }
2121

2222
[[bin]]
2323
name = "function_router"

examples/function_todomvc/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ edition = "2021"
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
serde = { version = "1.0", features = ["derive"] }
10-
strum = "0.27"
11-
strum_macros = "0.27"
12-
gloo = "0.11"
9+
serde = { workspace = true, features = ["derive"] }
10+
strum.workspace = true
11+
strum_macros.workspace = true
12+
gloo.workspace = true
1313
yew = { path = "../../packages/yew", features = ["csr"] }
1414

1515
[dependencies.web-sys]
16-
version = "0.3"
16+
workspace = true
1717
features = [
1818
"HtmlInputElement",
1919
]

0 commit comments

Comments
 (0)