merkle-tree: Use matches crate when targeting eBPF

This commit is contained in:
Trent Nelson
2021-04-02 19:23:25 -06:00
committed by Trent Nelson
parent ddc0a16cec
commit a44c32694f
3 changed files with 10 additions and 0 deletions

1
Cargo.lock generated
View File

@ -4792,6 +4792,7 @@ version = "1.7.0"
dependencies = [
"fast-math",
"hex",
"matches",
"solana-program 1.7.0",
]

View File

@ -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"

View File

@ -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;