Skip to content
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

chore: update proptest to 1.6.0 #85

Merged
merged 3 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions crates/sui-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ hex = "0.4.3"
serde_json = { version = "1.0.128" }

# proptest support in tests
#
# Pin to this specific commit in order to work around an issue where proptest doesn't build properly in wasm environments
# see https://github.com/proptest-rs/proptest/pull/270 for more info
proptest = { git = "https://github.com/bmwill/proptest.git", rev = "bc36db126183bce18c8bc595f0c0cfeac48b870c", default-features = false, features = ["std"] }
proptest = { version = "1.6.0", default-features = false, features = ["std"] }
test-strategy = "0.4.0"

[target.wasm32-unknown-unknown.dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-sdk-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ rand_core = { version = "0.6.4", optional = true }
blake2 = { version = "0.10.6", optional = true }

# proptest support
proptest = { version = "1.5.0", default-features = false, features = ["std"], optional = true }
proptest = { version = "1.6.0", default-features = false, features = ["std"], optional = true }
test-strategy = { version = "0.4", optional = true }

[dev-dependencies]
Expand Down
12 changes: 2 additions & 10 deletions crates/sui-sdk-types/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@ clippy:

.PHONY: test
test:
# Note on proptest:
#
# Pin to this specific commit in order to work around an issue where proptest doesn't build properly in wasm environments
# see https://github.com/proptest-rs/proptest/pull/270 for more info
cargo nextest run --all-features --config 'patch.crates-io.proptest.git="https://github.com/bmwill/proptest.git"' --config 'patch.crates-io.proptest.rev="0a140789d25f4999632b8b88aedb1e2ba056151d"'
cargo nextest run --all-features
cargo test --doc

.PHONY: wasm
wasm:
# Note on proptest:
#
# Pin to this specific commit in order to work around an issue where proptest doesn't build properly in wasm environments
# see https://github.com/proptest-rs/proptest/pull/270 for more info
CC=clang wasm-pack test --node --all-features --config 'patch.crates-io.proptest.git="https://github.com/bmwill/proptest.git"' --config 'patch.crates-io.proptest.rev="0a140789d25f4999632b8b88aedb1e2ba056151d"'
CC=clang wasm-pack test --node --all-features

%:
$(MAKE) -C ../.. $@
Loading