-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleaning up crate features #672
Comments
From my understanding, you only need the rnd = ["wasm-bindgen", "getrandom"]
[dependencies]
getrandom = { version = "0.2" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"], optional = true }
wasm-bindgen = { version = "0.2", optional = true } This also makes the |
That's interesting 🤔 Would that |
Ya, that's correct. I don't know how this applies to user-selected features (i.e. features that you specify via cargo's |
This is a meta issue to take a fresh look at the library’s dependency tree. In particular:
fast-rng
feature that addsrand
as a dependency becausegetrandom
is slow on Windows. Is that still necessary?wasm-bindgen
andgetrandom
unconditionally when building for the web. Could we use our crate features more cleverly to only pull in features we need?macro-diagnostics
feature that enables a proc-macro for better error reporting of compile-time UUID literals. Is this actually used? Can we emit more meaningful errors without needing a proc-macro on more recent compilers?We can consider a major 2.x version of
uuid
that is semver-compatible with 1.x (no actual API changes and re-export 2.x in 1.x), but that removes or rejigs our crate features as necessary to keep our dependency tree sane.The text was updated successfully, but these errors were encountered: