From 211a1234b6debba82f8403316eea1765775e1006 Mon Sep 17 00:00:00 2001 From: Jake Lang Date: Sat, 26 Jan 2019 22:30:18 -0500 Subject: [PATCH] Disable std by default --- Cargo.toml | 2 +- src/lib.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ecde4f4..5d17fcb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,5 +7,5 @@ repository = "https://github.com/ewasm/ewasm-rust-api" description = "ewasm API for Rust" [features] -default = [ "std" ] +default = [] std = [] diff --git a/src/lib.rs b/src/lib.rs index e2d1053..8f8ac70 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(not(feature = "std"), no_std)] + /// ewasm_api is a library used to interface with Ethereum's EEI in Ewasm, a set of enhancements to /// the Ethereum smart contract platform. /// ewasm_api exposes both a set of unsafe "native" functions representing the actual EEI