rename the no_std feature to core
This commit is contained in:
parent
3b82da15df
commit
99eabd7e92
|
@ -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 }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue