Let's say we want to add jsonwebtoken 8.2.0 to our Cargo.toml
. That crate is dependent on ring 0.16.20
, which is dependent on the web-sys 0.3.60 crate and that dependency is declared like this:
[target.'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown", target_env = ""))'.dependencies]
web-sys = { version = "0.3.37", default-features = false, features = ["Crypto", "Window"] }
For my project I don't need any JS/Wasm-related stuff whatsoever. But I noticed in my Cargo.lock
several such dependencies were added as a result of that web-sys
crate (such as wasm-bindgen
for example). Is there a way to avoid that "noise"?