Skip to content

Commit

Permalink
✨ Separate fuzz test template generator, update generator logic and u…
Browse files Browse the repository at this point in the history
…pdate tests
  • Loading branch information
lukacan committed Jan 8, 2025
1 parent 375b99f commit 8e934b7
Show file tree
Hide file tree
Showing 56 changed files with 11,183 additions and 7,027 deletions.
151 changes: 79 additions & 72 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[workspace]
members = ["crates/cli", "crates/client", "crates/config", "crates/fuzz"]
members = [
"crates/cli",
"crates/client",
"crates/config",
"crates/fuzz",
"crates/template",
]
exclude = ["examples/"]
resolver = "1"

Expand Down
7 changes: 2 additions & 5 deletions crates/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,21 @@ description = "The trident_client crate helps you build and deploy an Anchor pro
# Trident
trident-fuzz = { path = "../fuzz", version = "0.2.1" }
trident-config = { path = "../config", version = "0.0.1" }
trident-template = { path = "../template", version = "0.0.1" }

trident-idl-spec = { git = "https://github.com/Ackee-Blockchain/trident-idl-spec", version = "0.0.1" }

# Misc
tokio = { version = "1", features = ["full"] }
serde_json = "1"
serde = { version = "1", default-features = false }
bincode = "1"
fehler = "1"
thiserror = "1"
anyhow = "1"
cargo_metadata = "0.18"
syn = { version = "2", features = ["visit", "full"] }
quote = "1"
toml = { version = "0.8", features = ["preserve_order"] }
convert_case = "0.6"
pathdiff = "0.2"
rand = "0.8"
sha2 = "0.10.0"

[dev-dependencies]
pretty_assertions = "1.1.0"
1 change: 0 additions & 1 deletion crates/client/src/idl_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ pub fn load_idls(dir_path: PathBuf) -> Result<Vec<Idl>, Box<dyn Error>> {
// Continue to the next file on failure
}
}
// }
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
mod cleaner;
mod commander;
mod idl_loader;
mod source_code_generators;
// mod source_code_generators;
mod test_generator;
mod utils;
mod versions_config;
Expand All @@ -16,7 +16,7 @@ pub mod ___private {
pub use super::commander::Commander;
pub use super::commander::Error;
pub use super::idl_loader::*;
pub use super::source_code_generators::*;
// pub use super::source_code_generators::*;
pub use super::test_generator::TestGenerator;
}

Expand Down
159 changes: 0 additions & 159 deletions crates/client/src/source_code_generators/custom_types.rs

This file was deleted.

67 changes: 0 additions & 67 deletions crates/client/src/source_code_generators/fuzz_accounts.rs

This file was deleted.

Loading

0 comments on commit 8e934b7

Please sign in to comment.