Closed vmx closed 2 years ago
Any reason not to upgrade to Rust 2021 or would you prefer to do that in a separate release?
Any reason not to upgrade to Rust 2021 or would you prefer to do that in a separate release?
Good point. I just tried. Going to Rust 2021 doesn't solve the problem. I'll do a PR though, as bundling breaking changes in a single release makes sense.
Using resolver version 2 (which is default in Rust editiion 2021), it is possible to run
cargo build --target wasm32-unknown-unknown
without any failures. Note that even before this change it was possible whenec-gpu-gen
was used as a dependency, but with this change it becomes more apparent.The problem was that the
rand
dev-dependency was enabling thestd
feature, which then led toff
pulling isgetrandom
, which has problems to be compiled towasm32-unknown-unknown
without setting thejs
feature.Closes #32.