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

merkle-tree: fix build when targeting bpf #16335

Merged
merged 3 commits into from
Apr 3, 2021
Merged

Conversation

t-nelson
Copy link
Contributor

@t-nelson t-nelson commented Apr 3, 2021

Problem

solana-merkle-tree build fails when targeting bpf and someone wants to use it in a program 😬

Summary of Changes

Add Xargo.toml
Get Hash from solana-program instead of solana-sdk
Get matches!() from the matches crate when targeting bpf (until we're targeting Rust 1.42.0+)

@t-nelson t-nelson requested a review from jackcmay April 3, 2021 02:44
@t-nelson t-nelson added v1.5 CI Pull Request is ready to enter CI labels Apr 3, 2021
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Apr 3, 2021
@codecov
Copy link

codecov bot commented Apr 3, 2021

Codecov Report

Merging #16335 (efe8ad0) into master (e488922) will increase coverage by 0.0%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #16335   +/-   ##
=======================================
  Coverage    80.1%    80.1%           
=======================================
  Files         411      411           
  Lines      110134   110134           
=======================================
+ Hits        88242    88257   +15     
+ Misses      21892    21877   -15     

@t-nelson t-nelson merged commit a44c326 into solana-labs:master Apr 3, 2021
@t-nelson t-nelson deleted the mt-bpf branch April 3, 2021 18:09
mergify bot added a commit that referenced this pull request Apr 5, 2021
* merkle-tree: Add Xargo.toml

(cherry picked from commit a1d9b53)

* merkle-tree: Get `Hash` et. al from program instead of sdk

(cherry picked from commit ddc0a16)

* merkle-tree: Use `matches` crate when targeting eBPF

(cherry picked from commit a44c326)

Co-authored-by: Trent Nelson <trent@solana.com>
mergify bot added a commit that referenced this pull request Apr 5, 2021
* merkle-tree: Add Xargo.toml

(cherry picked from commit a1d9b53)

* merkle-tree: Get `Hash` et. al from program instead of sdk

(cherry picked from commit ddc0a16)

* merkle-tree: Use `matches` crate when targeting eBPF

(cherry picked from commit a44c326)

Co-authored-by: Trent Nelson <trent@solana.com>
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants