Skip to content

Commit

Permalink
🔥 Remove trident-fuzzing feature for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan committed Jul 11, 2024
1 parent 08ee486 commit c05b123
Show file tree
Hide file tree
Showing 9 changed files with 169 additions and 507 deletions.
4 changes: 4 additions & 0 deletions crates/client/src/templates/trident-tests/test_fuzz.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
use trident_client::fuzzing::*;
mod fuzz_instructions;

// TODO: In case of using file extension for AccountsSnapshots
// uncomment the line below
// mod accounts_snapshots;

const PROGRAM_NAME: &str = "###PROGRAM_NAME###";

struct MyFuzzData;
Expand Down
2 changes: 1 addition & 1 deletion crates/fuzz/src/trident_accounts_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ fn generate(accs: &TridentAccountsStruct) -> proc_macro2::TokenStream {
});

quote! {
#[cfg(feature = "trident-fuzzing")]
// #[cfg(feature = "trident-fuzzing")]
pub mod #module_name{
#[cfg(target_os = "solana")]
compile_error!("Do not use fuzzing with Production Code");
Expand Down
147 changes: 33 additions & 114 deletions examples/fuzz-tests/arbitrary-custom-types-4/Cargo.lock

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

3 changes: 1 addition & 2 deletions examples/fuzz-tests/arbitrary-limit-inputs-5/Cargo.lock

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

Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ crate-type = ["cdylib", "lib"]
name = "arbitrary_limit_inputs_5"

[features]
default = ["trident-fuzzing"]
default = []
cpi = ["no-entrypoint"]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"]
trident-fuzzing = ["trident-client"]

[dependencies]
anchor-lang = "0.30.1"
anchor-spl = "0.30.1"
trident-client = { path = "../../../../../crates/client", optional = true }
trident-client = { path = "../../../../../crates/client" }
Loading

0 comments on commit c05b123

Please sign in to comment.