Skip to content

Commit b8bfb78

Browse files
author
mc1098
committed
Update dependencies
General review of dependencies, removing ones that are not used and bumping up minor versions to avoid breakage. Consistent use of caret so that we use the most recent minor/patch version of a dependency when building Yew crates.
1 parent 99a9134 commit b8bfb78

File tree

6 files changed

+30
-67
lines changed

6 files changed

+30
-67
lines changed

packages/yew-agent/Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ edition = "2018"
88

99
[dependencies]
1010
anymap = "0.12"
11-
bincode = { version = "1" }
12-
gloo-console = "0.1.0"
11+
bincode = "1"
12+
gloo-console = "0.1"
1313
js-sys = "0.3"
14-
serde = { version = "1.0", features = ["derive"] }
14+
serde = { version = "1", features = ["derive"] }
1515
slab = "0.4"
1616
wasm-bindgen = "0.2"
1717
yew = { path = "../yew" }
@@ -20,5 +20,8 @@ wasm-bindgen-futures = "0.4"
2020
[dependencies.web-sys]
2121
version = "0.3"
2222
features = [
23-
"Worker"
23+
"DedicatedWorkerGlobalScope",
24+
"Url",
25+
"Worker",
26+
"WorkerOptions",
2427
]

packages/yew-macro/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ description = "A framework for making client-side single-page apps"
1515
proc-macro = true
1616

1717
[dependencies]
18-
boolinator = "2.4.0"
19-
lazy_static = "1.3.0"
20-
proc-macro2 = "1.0"
21-
quote = "1.0"
22-
syn = { version = "1.0", features = ["full", "extra-traits"] }
18+
boolinator = "2"
19+
lazy_static = "1"
20+
proc-macro2 = "1"
21+
quote = "1"
22+
syn = { version = "1", features = ["full", "extra-traits"] }
2323

2424
# testing
2525
[dev-dependencies]
26-
rustversion = "1.0"
27-
trybuild = "1.0"
26+
rustversion = "1"
27+
trybuild = "1"
2828
yew = { path = "../yew" }
2929

3030
[build-dependencies]

packages/yew-macro/tests/derive_props/fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ help: consider importing one of these items
2727
83 | use crate::t9::foo;
2828
|
2929

30-
error[E0277]: the trait bound `Value: std::default::Default` is not satisfied
30+
error[E0277]: the trait bound `Value: Default` is not satisfied
3131
--> $DIR/fail.rs:9:21
3232
|
3333
9 | #[derive(Clone, Properties, PartialEq)]
34-
| ^^^^^^^^^^ the trait `std::default::Default` is not implemented for `Value`
34+
| ^^^^^^^^^^ the trait `Default` is not implemented for `Value`
3535
|
3636
= note: required by `Option::<T>::unwrap_or_default`
3737
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

packages/yew-router-macro/Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ repository = "https://github.com/yewstack/yew"
1111
proc-macro = true
1212

1313
[dependencies]
14-
heck = "0.3.2"
15-
proc-macro2 = "1.0.24"
16-
quote = "1.0.9"
17-
syn = { version = "1.0.64", features = ["full","extra-traits"] }
14+
proc-macro2 = "1"
15+
quote = "1"
16+
syn = { version = "1", features = ["full","extra-traits"] }
1817

1918
[dev-dependencies]
20-
rustversion = "1.0"
21-
trybuild = "1.0"
19+
rustversion = "1"
20+
trybuild = "1"
2221
yew-router = { path = "../yew-router" }

packages/yew-router/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ yew-router-macro = { path = "../yew-router-macro" }
1919

2020
wasm-bindgen = "0.2"
2121
js-sys = "0.3"
22-
gloo = "0.3.0"
23-
route-recognizer = "0.3.0"
24-
serde = "1.0"
22+
gloo = "0.3"
23+
route-recognizer = "0.3"
24+
serde = "1"
2525
serde_urlencoded = "0.7"
2626

2727
[dependencies.web-sys]
@@ -40,7 +40,7 @@ features = [
4040

4141
[dev-dependencies]
4242
wasm-bindgen-test = "0.3"
43-
serde = { version = "1.0", features = ["derive"] }
43+
serde = { version = "1", features = ["derive"] }
4444

4545
[dev-dependencies.web-sys]
4646
version = "0.3"

packages/yew/Cargo.toml

Lines changed: 5 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,21 @@ anyhow = "1"
2020
anymap = "0.12"
2121
console_error_panic_hook = "0.1"
2222
gloo = "0.3"
23-
http = "0.2"
24-
indexmap = { version = "1.5", features = ["std"] }
23+
indexmap = { version = "1", features = ["std"] }
2524
js-sys = "0.3"
26-
serde = { version = "1.0", features = ["derive"] }
27-
serde_json = "1.0"
2825
slab = "0.4"
29-
thiserror = "1"
30-
wasm-bindgen = "0.2.74"
26+
wasm-bindgen = "0.2"
3127
wasm-bindgen-futures = "0.4"
3228
yew-macro = { version = "^0.18.0", path = "../yew-macro" }
3329

34-
scoped-tls-hkt = "0.1.2"
35-
36-
# optional encodings
37-
bincode = { version = "1", optional = true }
30+
scoped-tls-hkt = "0.1"
3831

3932
[dependencies.web-sys]
4033
version = "0.3"
4134
features = [
42-
"AbortController",
43-
"AbortSignal",
4435
"AnimationEvent",
45-
"BinaryType",
46-
"Blob",
47-
"BlobPropertyBag",
4836
"console",
49-
"DedicatedWorkerGlobalScope",
5037
"Document",
51-
"DomTokenList",
5238
"DragEvent",
5339
"Element",
5440
"ErrorEvent",
@@ -59,7 +45,6 @@ features = [
5945
"FileList",
6046
"FileReader",
6147
"FocusEvent",
62-
"Headers",
6348
"HtmlElement",
6449
"HtmlButtonElement",
6550
"HtmlInputElement",
@@ -69,50 +54,26 @@ features = [
6954
"InputEventInit",
7055
"KeyboardEvent",
7156
"Location",
72-
"MessageEvent",
7357
"MouseEvent",
7458
"Node",
75-
"ObserverCallback",
7659
"PointerEvent",
7760
"ProgressEvent",
78-
"ReferrerPolicy",
79-
"Request",
80-
"RequestCache",
81-
"RequestCredentials",
82-
"RequestInit",
83-
"RequestMode",
84-
"RequestRedirect",
85-
"Response",
86-
"Storage",
8761
"Text",
8862
"TouchEvent",
8963
"TransitionEvent",
9064
"UiEvent",
91-
"Url",
92-
"WebSocket",
9365
"WheelEvent",
9466
"Window",
95-
"Worker",
96-
"WorkerGlobalScope",
97-
"WorkerOptions",
9867
]
9968

10069
[dev-dependencies]
101-
base64 = "0.13.0"
102-
bincode = "1"
103-
easybench-wasm = "0.2.1"
104-
rmp-serde = "0.15.0"
105-
rustversion = "1.0"
106-
serde_derive = "1"
107-
trybuild = "1.0"
108-
wasm-bindgen-test = "0.3.24"
70+
easybench-wasm = "0.2"
71+
wasm-bindgen-test = "0.3"
10972

11073
[features]
111-
default = ["agent"]
11274
doc_test = []
11375
wasm_test = []
11476
wasm_bench = []
115-
agent = ["bincode"]
11677

11778
[package.metadata.docs.rs]
11879
features = ["doc_test"]

0 commit comments

Comments
 (0)