Skip to content

Commit

Permalink
Limit the versions of arbitrary/derive_arbitrary to 1.3.x (#1392)
Browse files Browse the repository at this point in the history
### What
Limit the versions of arbitrary/derive_arbitrary to 1.3.x.

### Why
Arbitrary introduced changes into the 1.4.x releases that no longer
compiles with the use of arbitrary in the soroban-sdk:
- rust-fuzz/arbitrary#203
- rust-fuzz/arbitrary#208
  • Loading branch information
leighmcculloch authored Nov 12, 2024
1 parent 0c65e9c commit fccfc1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions soroban-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ soroban-env-guest = { workspace = true }
soroban-env-host = { workspace = true, features = [] }
soroban-ledger-snapshot = { workspace = true }
stellar-strkey = { workspace = true }
arbitrary = { version = "1.3.0", features = ["derive"], optional = true }
arbitrary = { version = "~1.3.0", features = ["derive"], optional = true }
derive_arbitrary = { version = "~1.3.0", optional = true }
serde = { version = "1.0.0", features = ["derive"] }
serde_json = "1.0.0"
ed25519-dalek = { version = "2.1.1", features = ["rand_core"], optional = true }
Expand All @@ -47,14 +48,15 @@ ed25519-dalek = "2.0.0"
rand = "0.8.5"
ctor = "0.2.1"
hex = "0.4.3"
arbitrary = { version = "1.3.0", features = ["derive"] }
arbitrary = { version = "~1.3.0", features = ["derive"] }
derive_arbitrary = { version = "~1.3.0" }
proptest = "1.2.0"
proptest-arbitrary-interop = "0.1.0"
libfuzzer-sys = "0.4.7"

[features]
alloc = []
testutils = ["soroban-sdk-macros/testutils", "soroban-env-host/testutils", "dep:ed25519-dalek", "dep:arbitrary", "dep:ctor"]
testutils = ["soroban-sdk-macros/testutils", "soroban-env-host/testutils", "dep:ed25519-dalek", "dep:arbitrary", "dep:derive_arbitrary", "dep:ctor"]
hazmat = []
docs = []

Expand Down
1 change: 1 addition & 0 deletions tests/fuzz/fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fccfc1d

Please sign in to comment.