Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mc1098 committed Sep 19, 2021
1 parent 99a9134 commit 5c57599
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 68 deletions.
11 changes: 7 additions & 4 deletions packages/yew-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ edition = "2018"

[dependencies]
anymap = "0.12"
bincode = { version = "1" }
gloo-console = "0.1.0"
bincode = "1"
gloo-console = "0.1"
js-sys = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
slab = "0.4"
wasm-bindgen = "0.2"
yew = { path = "../yew" }
Expand All @@ -20,5 +20,8 @@ wasm-bindgen-futures = "0.4"
[dependencies.web-sys]
version = "0.3"
features = [
"Worker"
"DedicatedWorkerGlobalScope",
"Url",
"Worker",
"WorkerOptions",
]
14 changes: 7 additions & 7 deletions packages/yew-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ description = "A framework for making client-side single-page apps"
proc-macro = true

[dependencies]
boolinator = "2.4.0"
lazy_static = "1.3.0"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0", features = ["full", "extra-traits"] }
boolinator = "2"
lazy_static = "1"
proc-macro2 = "1"
quote = "1"
syn = { version = "1", features = ["full", "extra-traits"] }

# testing
[dev-dependencies]
rustversion = "1.0"
trybuild = "1.0"
rustversion = "1"
trybuild = "1"
yew = { path = "../yew" }

[build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions packages/yew-macro/tests/derive_props/fail.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ help: consider importing one of these items
83 | use crate::t9::foo;
|

error[E0277]: the trait bound `Value: std::default::Default` is not satisfied
error[E0277]: the trait bound `Value: Default` is not satisfied
--> $DIR/fail.rs:9:21
|
9 | #[derive(Clone, Properties, PartialEq)]
| ^^^^^^^^^^ the trait `std::default::Default` is not implemented for `Value`
| ^^^^^^^^^^ the trait `Default` is not implemented for `Value`
|
= note: required by `Option::<T>::unwrap_or_default`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
Expand Down
11 changes: 5 additions & 6 deletions packages/yew-router-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ repository = "https://github.com/yewstack/yew"
proc-macro = true

[dependencies]
heck = "0.3.2"
proc-macro2 = "1.0.24"
quote = "1.0.9"
syn = { version = "1.0.64", features = ["full","extra-traits"] }
proc-macro2 = "1"
quote = "1"
syn = { version = "1", features = ["full","extra-traits"] }

[dev-dependencies]
rustversion = "1.0"
trybuild = "1.0"
rustversion = "1"
trybuild = "1"
yew-router = { path = "../yew-router" }
8 changes: 4 additions & 4 deletions packages/yew-router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ yew-router-macro = { path = "../yew-router-macro" }

wasm-bindgen = "0.2"
js-sys = "0.3"
gloo = "0.3.0"
route-recognizer = "0.3.0"
serde = "1.0"
gloo = "0.3"
route-recognizer = "0.3"
serde = "1"
serde_urlencoded = "0.7"

[dependencies.web-sys]
Expand All @@ -40,7 +40,7 @@ features = [

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

[dev-dependencies.web-sys]
version = "0.3"
Expand Down
50 changes: 5 additions & 45 deletions packages/yew/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,23 @@ description = "A framework for making client-side single-page apps"

[dependencies]
anyhow = "1"
anymap = "0.12"
console_error_panic_hook = "0.1"
gloo = "0.3"
http = "0.2"
indexmap = { version = "1.5", features = ["std"] }
indexmap = { version = "1", features = ["std"] }
js-sys = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
slab = "0.4"
thiserror = "1"
wasm-bindgen = "0.2.74"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
yew-macro = { version = "^0.18.0", path = "../yew-macro" }

scoped-tls-hkt = "0.1.2"

# optional encodings
bincode = { version = "1", optional = true }
scoped-tls-hkt = "0.1"

[dependencies.web-sys]
version = "0.3"
features = [
"AbortController",
"AbortSignal",
"AnimationEvent",
"BinaryType",
"Blob",
"BlobPropertyBag",
"console",
"DedicatedWorkerGlobalScope",
"Document",
"DomTokenList",
"DragEvent",
"Element",
"ErrorEvent",
Expand All @@ -59,7 +44,6 @@ features = [
"FileList",
"FileReader",
"FocusEvent",
"Headers",
"HtmlElement",
"HtmlButtonElement",
"HtmlInputElement",
Expand All @@ -69,50 +53,26 @@ features = [
"InputEventInit",
"KeyboardEvent",
"Location",
"MessageEvent",
"MouseEvent",
"Node",
"ObserverCallback",
"PointerEvent",
"ProgressEvent",
"ReferrerPolicy",
"Request",
"RequestCache",
"RequestCredentials",
"RequestInit",
"RequestMode",
"RequestRedirect",
"Response",
"Storage",
"Text",
"TouchEvent",
"TransitionEvent",
"UiEvent",
"Url",
"WebSocket",
"WheelEvent",
"Window",
"Worker",
"WorkerGlobalScope",
"WorkerOptions",
]

[dev-dependencies]
base64 = "0.13.0"
bincode = "1"
easybench-wasm = "0.2.1"
rmp-serde = "0.15.0"
rustversion = "1.0"
serde_derive = "1"
trybuild = "1.0"
wasm-bindgen-test = "0.3.24"
easybench-wasm = "0.2"
wasm-bindgen-test = "0.3"

[features]
default = ["agent"]
doc_test = []
wasm_test = []
wasm_bench = []
agent = ["bincode"]

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

0 comments on commit 5c57599

Please sign in to comment.