Skip to content

Commit

Permalink
fix: enable dependency resolver v2 for workspace (#33)
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.

BREAKING CHANGE: the workspace resolver was updated to v2

Closes #32.
  • Loading branch information
vmx committed Sep 21, 2022
1 parent 08d00a1 commit d4b5d74
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 d4b5d74

Please sign in to comment.