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

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