Skip to content

Commit

Permalink
fix: enable dependency resolver v2 for workspace
Browse files Browse the repository at this point in the history
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 when
`ec-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 the `std`
feature, which then led to `ff` pulling is `getrandom`, which has
problems to be compiled to `wasm32-unknown-unknown` without setting
the `js` feature.

Closes #32.
  • Loading branch information
vmx committed Sep 20, 2022
1 parent 5f6d945 commit 6e43724
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ members = [
"ec-gpu-gen",
"gpu-tests",
]
resolver = "2"

0 comments on commit 6e43724

Please sign in to comment.