diff --git a/Cargo.lock b/Cargo.lock index 152df1c7c41f86..1dc8d1479c74fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4241,17 +4241,6 @@ dependencies = [ "unarray", ] -[[package]] -name = "proptest-derive" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cf16337405ca084e9c78985114633b6827711d22b9e6ef6c6c0d665eb3f0b6e" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "prost" version = "0.11.9" @@ -6818,8 +6807,6 @@ dependencies = [ "num-derive", "num-traits", "parking_lot 0.12.3", - "proptest", - "proptest-derive", "qualifier_attr", "rand 0.8.5", "rustc_version 0.4.0", @@ -7238,7 +7225,6 @@ name = "solana-sdk" version = "2.0.5" dependencies = [ "anyhow", - "arbitrary", "assert_matches", "bincode", "bitflags 2.5.0", @@ -7265,8 +7251,6 @@ dependencies = [ "memmap2", "num_enum", "pbkdf2 0.11.0", - "proptest", - "proptest-derive", "qstring", "qualifier_attr", "rand 0.7.3", diff --git a/Cargo.toml b/Cargo.toml index ba335464b9131d..4b98ba6a0afcdf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -280,7 +280,6 @@ pretty-hex = "0.3.0" prio-graph = "0.2.1" proc-macro2 = "1.0.85" proptest = "1.4" -proptest-derive = "0.4.0" prost = "0.11.9" prost-build = "0.11.9" prost-types = "0.11.9" diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index efa96268dbc811..1f553f66a52272 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -43,14 +43,8 @@ frozen-abi = [ "dep:solana-frozen-abi-macro", "solana-program/frozen-abi", ] -arbitrary = [ - "dep:arbitrary", - "dep:proptest", - "dep:proptest-derive", -] [dependencies] -arbitrary = { version = "1.3.1", features = ["derive"], optional = true} bincode = { workspace = true } bitflags = { workspace = true, features = ["serde"] } borsh = { workspace = true, optional = true } @@ -73,8 +67,6 @@ log = { workspace = true } memmap2 = { workspace = true, optional = true } num_enum = { workspace = true } pbkdf2 = { workspace = true } -proptest = { workspace = true, optional = true} -proptest-derive = { workspace = true, optional = true} qstring = { workspace = true } qualifier_attr = { workspace = true, optional = true } rand = { workspace = true, optional = true } diff --git a/sdk/program/Cargo.toml b/sdk/program/Cargo.toml index 4ebd71d8d1fb08..c37cd182bbb869 100644 --- a/sdk/program/Cargo.toml +++ b/sdk/program/Cargo.toml @@ -12,7 +12,6 @@ edition = { workspace = true } rust-version = "1.75.0" # solana platform-tools rust version [dependencies] -arbitrary = { version = "1.3.1", features = ["derive"], optional = true} bincode = { workspace = true } blake3 = { workspace = true, features = ["digest", "traits-preview"] } borsh = { workspace = true, optional = true } @@ -26,8 +25,6 @@ log = { workspace = true } memoffset = { workspace = true } num-derive = { workspace = true } num-traits = { workspace = true, features = ["i128"] } -proptest = { workspace = true, optional = true} -proptest-derive = { workspace = true, optional = true} qualifier_attr = { workspace = true, optional = true } rustversion = { workspace = true } serde = { workspace = true } @@ -98,4 +95,3 @@ default = ["borsh"] borsh = ["dep:borsh", "dep:borsh0-10"] dev-context-only-utils = ["dep:qualifier_attr"] frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] -arbitrary = ["dep:arbitrary", "dep:proptest", "dep:proptest-derive"] diff --git a/sdk/program/src/hash.rs b/sdk/program/src/hash.rs index 41155bf996bc1e..eb6b467de6935e 100644 --- a/sdk/program/src/hash.rs +++ b/sdk/program/src/hash.rs @@ -52,10 +52,6 @@ const MAX_BASE58_LEN: usize = 44; Zeroable, )] #[repr(transparent)] -#[cfg_attr( - any(test, feature = "arbitrary"), - derive(arbitrary::Arbitrary, proptest_derive::Arbitrary) -)] pub struct Hash(pub(crate) [u8; HASH_BYTES]); #[derive(Clone, Default)] diff --git a/sdk/program/src/instruction.rs b/sdk/program/src/instruction.rs index 22bd093d04d53a..a1b6a06d4848c3 100644 --- a/sdk/program/src/instruction.rs +++ b/sdk/program/src/instruction.rs @@ -637,10 +637,6 @@ impl AccountMeta { /// [`Message`]: crate::message::Message #[cfg_attr(feature = "frozen-abi", derive(AbiExample))] #[derive(BorshSerialize, BorshDeserialize, Serialize, Deserialize, Debug, PartialEq, Eq, Clone)] -#[cfg_attr( - any(test, feature = "arbitrary"), - derive(arbitrary::Arbitrary, proptest_derive::Arbitrary) -)] #[serde(rename_all = "camelCase")] #[borsh(crate = "borsh")] pub struct CompiledInstruction { diff --git a/sdk/program/src/message/legacy.rs b/sdk/program/src/message/legacy.rs index 1659bd0a2027f5..02f5c7b8a696a9 100644 --- a/sdk/program/src/message/legacy.rs +++ b/sdk/program/src/message/legacy.rs @@ -126,10 +126,6 @@ fn compile_instructions(ixs: &[Instruction], keys: &[Pubkey]) -> Vec for PubkeyError { Zeroable, )] #[cfg_attr(test, derive(Arbitrary))] -#[cfg_attr( - feature = "arbitrary", - derive(arbitrary::Arbitrary, proptest_derive::Arbitrary) -)] pub struct Pubkey(pub(crate) [u8; 32]); impl crate::sanitize::Sanitize for Pubkey {} diff --git a/sdk/src/transaction/mod.rs b/sdk/src/transaction/mod.rs index ddcad5d3a08c61..79a01e75325e1f 100644 --- a/sdk/src/transaction/mod.rs +++ b/sdk/src/transaction/mod.rs @@ -174,10 +174,6 @@ pub type Result = result::Result; derive(AbiExample), frozen_abi(digest = "FZtncnS1Xk8ghHfKiXE5oGiUbw2wJhmfXQuNgQR3K6Mc") )] -#[cfg_attr( - feature = "arbitrary", - derive(arbitrary::Arbitrary, proptest_derive::Arbitrary) -)] #[derive(BorshDeserialize, BorshSerialize, Debug, PartialEq, Default, Eq, Clone, Serialize, Deserialize)] pub struct Transaction { /// A set of signatures of a serialized [`Message`], signed by the first