Add libstd support to Rust BPF (#5788)

This commit is contained in:
Jack May
2019-09-04 16:00:11 -07:00
committed by GitHub
parent ceaf4781b0
commit 5fb2d7a98f
46 changed files with 62 additions and 271 deletions

View File

@ -1,6 +1,2 @@
[dependencies.compiler_builtins]
path = "../../../../sdk/bpf/dependencies/rust-bpf-sysroot/src/compiler-builtins"
features = ["c", "mem"]
[target.bpfel-unknown-unknown.dependencies]
alloc = { path = "../../../../sdk/bpf/dependencies/rust-bpf-sysroot/src/liballoc" }
[target.bpfel-unknown-unknown.dependencies.std]
features = []

View File

@ -1,7 +1,5 @@
//! @brief Solana Rust-based BPF program utility functions and types
#![no_std]
extern crate solana_sdk_bpf_utils;
pub fn uadd(x: u128, y: u128) -> u128 {