Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
merkle-tree: Use matches crate when targeting eBPF
Browse files Browse the repository at this point in the history
(cherry picked from commit a44c326)
  • Loading branch information
t-nelson committed Apr 5, 2021
1 parent d61a067 commit 141f1b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions merkle-tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ edition = "2018"
solana-program = { path = "../sdk/program", version = "=1.6.5" }
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"

Expand Down
5 changes: 5 additions & 0 deletions merkle-tree/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 141f1b2

Please sign in to comment.