Cargo Features
[dependencies]
entropy-shared = { version = "0.3.0", default-features = false, features = ["std", "wasm", "wasm-no-std", "user-native", "user-wasm"] }
- default = std
-
The
std
feature is set by default wheneverentropy-shared
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of parity-scale-codec, scale-info, serde, sp-runtime ^32.0.0, and sp-std ^12.0.0
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - wasm
-
Enables std of parity-scale-codec, scale-info, serde, and sp-std ^12.0.0
- wasm-no-std = sp-runtime
- user-native
-
Enables native of subxt ^0.35.3
subxt:
Enable this for native (ie non web/wasm builds).
Exactly 1 of "web" and "native" is expected.Affects
entropy-shared::user
… - user-wasm
-
Enables web of subxt ^0.35.3
subxt:
Enable this for web/wasm builds.
Exactly 1 of "web" and "native" is expected.Affects
entropy-shared::user
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- sp-runtime std wasm-no-std?
-
Enables sp-runtime ^32.0.0