Skip to content

Commit e0928eb

Browse files
jakelangaxic
authored andcommitted
Disable std by default
1 parent 7e7ac2a commit e0928eb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ description = "ewasm API for Rust"
88
edition = "2018"
99

1010
[features]
11-
default = [ "std" ]
11+
default = []
1212
std = []
1313
debug = []

src/lib.rs

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

0 commit comments

Comments
 (0)