Skip to content

Commit f7ee7cf

Browse files
committed
Disable std by default
1 parent 761e7bb commit f7ee7cf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ repository = "https://github.com/ewasm/ewasm-rust-api"
77
description = "ewasm API for Rust"
88

99
[features]
10-
default = [ "std" ]
10+
default = []
1111
std = []

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
#![cfg_attr(not(feature = "std"), no_std)]
2+
13
#[cfg(not(feature = "std"))]
24
pub mod convert;
5+
36
/// ewasm_api is a library used to interface with Ethereum's EEI in Ewasm, a set of enhancements to
47
/// the Ethereum smart contract platform.
58
/// ewasm_api exposes both a set of unsafe "native" functions representing the actual EEI

0 commit comments

Comments
 (0)