Skip to content

Commit

Permalink
🔥 Remove fuzzing flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan committed Jul 5, 2024
1 parent 9451ff1 commit f73ee5c
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
incremented upon a breaking change and the patch version will be incremented for features.

## [dev] - Unreleased
- del/remove unnecessary fuzzing feature as trident is mainly fuzzer ([#176](https://github.com/Ackee-Blockchain/trident/pull/176))
- feat/fuzzing moved to separate crate trident-fuzz ([#175](https://github.com/Ackee-Blockchain/trident/pull/175))
- feat/unify dependencies provided by the Trident ([#172](https://github.com/Ackee-Blockchain/trident/pull/172))
- fix/in case of fuzzing failure throw error instead of only printing message ([#167](https://github.com/Ackee-Blockchain/trident/pull/167))
Expand Down
9 changes: 3 additions & 6 deletions crates/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ license-file = "../../LICENSE"
readme = "../../README.md"
description = "The trident_client crate helps you build and deploy an Anchor program to a local cluster and run a test suite against it."

[features]
fuzzing = ["dep:solana-program-test", "dep:honggfuzz", "quinn-proto/arbitrary"]

[build-dependencies]
anyhow = { version = "1.0.45", features = ["std"], default-features = false }

Expand Down Expand Up @@ -39,11 +36,11 @@ solana-transaction-status = { workspace = true }
solana-account-decoder = { workspace = true }
spl-token = { workspace = true }
spl-associated-token-account = { workspace = true }
solana-program-test = { workspace = true, optional = true }
solana-program-test = { workspace = true }


# HONGGFUZZ
honggfuzz = { version = "0.5.55", optional = true }
honggfuzz = { version = "0.5.55" }
# ARBITRARY
arbitrary = { version = "1.3.0", features = ["derive"] }

Expand All @@ -69,7 +66,7 @@ toml = { version = "0.5.8", features = ["preserve_order"] }
log = "0.4"
rstest = "0.18.1"
proc-macro2 = { version = "1.0.66", default-features = false }
quinn-proto = { version = "0.10.6", optional = true }
quinn-proto = { version = "0.10.6", features = ["arbitrary"] }
pathdiff = "0.2.1"
indicatif = "0.17.8"
regex = "1.10.3"
1 change: 0 additions & 1 deletion crates/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//! Trident could be useful for writing Rust dApps, too.

/// Aimed for the fuzz tests
#[cfg(feature = "fuzzing")]
pub mod fuzzing {
/// anchor_lang
pub use anchor_lang;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ assert_matches = "1.4.0"

[dependencies.trident-client]
version = "0.6.0"
features=["fuzzing"]
1 change: 0 additions & 1 deletion crates/fuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pub mod accounts_storage;
pub mod data_builder;
pub mod error;
pub mod fuzzing_stats;
// #[cfg(feature = "fuzzing")]
pub mod program_test_client_blocking;
pub mod snapshot;
pub type AccountId = u8;
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ assert_matches = "1.4.0"

[dependencies.trident-client]
path = "../../../../../crates/client"
features = ["fuzzing"]

[dependencies.arbitrary-custom-types-4]
path = "../../programs/arbitrary-custom-types-4"
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ anchor-spl = "0.29.0"

[dependencies.trident-client]
path = "../../../../../crates/client"
features = ["fuzzing"]

[dependencies.arbitrary-limit-inputs-5]
path = "../../programs/arbitrary-limit-inputs-5"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ assert_matches = "1.4.0"

[dependencies.trident-client]
path = "../../../../../crates/client"
features = ["fuzzing"]

[dependencies.hello_world]
path = "../../programs/hello_world"
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ anchor-spl = "0.29.0"

[dependencies.trident-client]
path = "../../../../../crates/client"
features = ["fuzzing"]

[dependencies.incorrect-integer-arithmetic-3]
path = "../../programs/incorrect-integer-arithmetic-3"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ assert_matches = "1.4.0"

[dependencies.trident-client]
path = "../../../../../crates/client"
features = ["fuzzing"]

[dependencies.incorrect-ix-sequence-1]
path = "../../programs/incorrect-ix-sequence-1"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ assert_matches = "1.4.0"

[dependencies.trident-client]
path = "../../../../../crates/client"
features = ["fuzzing"]

[dependencies.unauthorized-access-2]
path = "../../programs/unauthorized-access-2"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ assert_matches = "1.4.0"

[dependencies.trident-client]
path = "../../../../../crates/client"
features = ["fuzzing"]

[dependencies.unchecked-arithmetic-0]
path = "../../programs/unchecked-arithmetic-0"

0 comments on commit f73ee5c

Please sign in to comment.