merkle-tree: Use matches
crate when targeting eBPF
This commit is contained in:
committed by
Trent Nelson
parent
ddc0a16cec
commit
a44c32694f
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -4792,6 +4792,7 @@ version = "1.7.0"
|
||||
dependencies = [
|
||||
"fast-math",
|
||||
"hex",
|
||||
"matches",
|
||||
"solana-program 1.7.0",
|
||||
]
|
||||
|
||||
|
@ -13,6 +13,10 @@ edition = "2018"
|
||||
solana-program = { path = "../sdk/program", version = "=1.7.0" }
|
||||
fast-math = "0.1"
|
||||
|
||||
# This can go once the BPF toolchain target Rust 1.42.0+
|
||||
[target.bpfel-unknown-unknown.dependencies]
|
||||
matches = "0.1.8"
|
||||
|
||||
[dev-dependencies]
|
||||
hex = "0.4.2"
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
|
||||
#[cfg(target_arch = "bpf")]
|
||||
#[macro_use]
|
||||
extern crate matches;
|
||||
|
||||
pub mod merkle_tree;
|
||||
pub use merkle_tree::MerkleTree;
|
||||
|
Reference in New Issue
Block a user