diff --git a/Cargo.toml b/Cargo.toml index ff3f851..6a25deb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ default = ["std"] std = ["parity-wasm/std"] # Enable for no_std support # hashmap_core only works on no_std -no_std = ["hashmap_core"] +core = ["hashmap_core"] [dependencies] parity-wasm = { version = "0.31", default-features = false } diff --git a/README.md b/README.md index 9d29ee6..533bcbe 100644 --- a/README.md +++ b/README.md @@ -29,17 +29,17 @@ cargo test # `no_std` support This crate supports `no_std` environments. -Enable the `no_std` feature and disable default features: +Enable the `core` feature and disable default features: ```toml [dependencies] parity-wasm = { version = "0.31", default-features = false, - features = "no_std" + features = "core" } ``` -`no_std` requires the `core` and `alloc` libraries and a nightly compiler. +The `core` feature requires the `core` and `alloc` libraries and a nightly compiler. Also, code related to `std::error` is disabled. ## Contribution