Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ bitflags = { version = "2.8.0" }
blake3 = "1.5.5"
borsh = { version = "1.5.5", features = ["derive", "unstable__schema"] }
borsh0-10 = { package = "borsh", version = "0.10.3" }
boxcar = "0.2.12"
bs58 = { version = "0.5.1", default-features = false }
bv = "0.11.1"
bytemuck = "1.21.0"
Expand All @@ -152,6 +153,7 @@ console_error_panic_hook = "0.1.7"
console_log = "0.2.2"
criterion = "0.5.1"
curve25519-dalek = { version = "4.1.3", features = ["digest", "rand_core"] }
dashmap = { version = "5.5.3", features = ["serde"] }
derivation-path = { version = "0.2.0", default-features = false }
digest = "0.10.7"
ed25519-dalek = "=1.0.1"
Expand Down
2 changes: 2 additions & 0 deletions frozen-abi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ default = []
frozen-abi = []

[dependencies]
boxcar = { workspace = true }
bs58 = { workspace = true, features = ["alloc"] }
bv = { workspace = true, features = ["serde"] }
bytes = { workspace = true }
dashmap = { workspace = true }
log = { workspace = true, features = ["std"] }
serde = { workspace = true, features = ["rc"] }
serde_derive = { workspace = true }
Expand Down
25 changes: 25 additions & 0 deletions frozen-abi/src/abi_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,3 +619,28 @@ impl<T: AbiExample> AbiExample for std::sync::OnceLock<T> {
Self::from(T::example())
}
}

#[cfg(not(target_os = "solana"))]
impl<
T: std::cmp::Eq + std::hash::Hash + AbiExample,
S: AbiExample,
H: std::hash::BuildHasher + Default + std::clone::Clone,
> AbiExample for dashmap::DashMap<T, S, H>
{
fn example() -> Self {
info!("AbiExample for (DashMap<T, S, H>): {}", type_name::<Self>());
let map = dashmap::DashMap::default();
map.insert(T::example(), S::example());
map
}
}

#[cfg(not(target_os = "solana"))]
impl<T: AbiExample> AbiExample for boxcar::Vec<T> {
fn example() -> Self {
info!("AbiExample for (boxcar::Vec): {}", type_name::<Self>());
let vec = boxcar::Vec::new();
vec.push(T::example());
vec
}
}