Update dependencies (#2064)

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.
This commit is contained in:
mc1098 2021-09-19 10:14:08 +01:00 committed by GitHub
parent 99a91345cd
commit adb3fcfce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 30 additions and 68 deletions

View File

@ -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" }
@ -20,5 +20,8 @@ wasm-bindgen-futures = "0.4"
[dependencies.web-sys]
version = "0.3"
features = [
"Worker"
"DedicatedWorkerGlobalScope",
"Url",
"Worker",
"WorkerOptions",
]

View File

@ -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]

View File

@ -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)

View File

@ -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" }

View File

@ -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]
@ -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"

View File

@ -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",
@ -59,7 +44,6 @@ features = [
"FileList",
"FileReader",
"FocusEvent",
"Headers",
"HtmlElement",
"HtmlButtonElement",
"HtmlInputElement",
@ -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"]