From 99eabd7e9286dc62084ac81f6751c238b0a8cf59 Mon Sep 17 00:00:00 2001 From: Julius Rakow Date: Sat, 25 Aug 2018 14:18:52 +0200 Subject: [PATCH] rename the no_std feature to core --- Cargo.toml | 2 +- README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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