rename the no_std feature to core

This commit is contained in:
Julius Rakow 2018-08-25 14:18:52 +02:00
parent 3b82da15df
commit 99eabd7e92
No known key found for this signature in database
GPG Key ID: 9AABD9B859435A93
2 changed files with 4 additions and 4 deletions

View File

@ -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 }

View File

@ -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