Cargo Features

[dependencies]
sp-version = { version = "33.0.0", default-features = false, features = ["std", "serde"] }
default = std

The std feature is set by default whenever sp-version is added without default-features = false somewhere in the dependency tree.

std default = parity-wasm, thiserror

Enables std of parity-scale-codec, impl-serde, 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
parity-wasm std
thiserror std