Cargo Features
[dependencies]
sp-version = { version = "37.0.0", default-features = false, features = ["std", "serde"] }
- default = std
-
The
std
feature is set by default wheneversp-version
is added without
somewhere in the dependency tree.default-features = false - std default = parity-wasm, thiserror
-
Enables std of parity-scale-codec, impl-serde ^0.4.0, scale-info, serde, sp-runtime, and sp-std
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
sp-version::embed
,sp-version::NativeVersion
,sp-version::GetNativeVersion
,sp-version::GetRuntimeVersionAt
… - serde std = impl-serde
-
Serde support without relying on std features.
Enables serde, serde of sp-runtime
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.
- impl-serde serde? std
-
Enables impl-serde ^0.4.0
- parity-wasm std
- thiserror std
-
Enables thiserror ^1.0.48