Split out Rust BPF no-std stuff (#4968)

This commit is contained in:
Jack May
2019-07-08 20:28:05 -08:00
committed by GitHub
parent 49250f62aa
commit f9a2254688
35 changed files with 164 additions and 217 deletions

View File

@ -15,5 +15,4 @@ edition = "2018"
solana-sdk-bpf-utils = { path = "../../../../sdk/bpf/rust/rust-utils", version = "0.17.0" }
[workspace]
members = []
members = []

View File

@ -7,3 +7,14 @@ extern crate solana_sdk_bpf_utils;
pub fn work(x: u128, y: u128) -> u128 {
x + y
}
#[cfg(test)]
mod test {
extern crate std;
use super::*;
#[test]
fn test_work() {
assert_eq!(3, work(1, 2));
}
}