Cargo Features

[dependencies]
pezsp-runtime = { version = "31.0.1", default-features = false, features = ["std", "try-runtime", "runtime-benchmarks", "serde"] }
default = std

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

std default = rand, simple-mermaid

Enables std and use_std of either, std of bytes and parity-scale-codec and std of hash256-std-hasher, log, num-traits, pez-binary-merkle-tree, pezsp-application-crypto, pezsp-arithmetic, pezsp-core, pezsp-io, pezsp-std, pezsp-trie, pezsp-weights, scale-info, serde, tracing, tuplex, pezsp-state-machine, and pezsp-tracing

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

Affects pezsp-runtime::testing, pezsp-runtime::BuildStorage, pezsp-runtime::BuildModuleGenesisStorage, traits::BlockIdTo, traits::BlockNumberProvider.set_block_number

try-runtime

Affects traits::Checkable.unchecked_into_checked_i_know_what_i_am_doing

runtime-benchmarks

Enables runtime-benchmarks of pezsp-io, pezsp-state-machine, and pezsp-trie

Affects traits::BlockNumberProvider.set_block_number

serde std

Serde support without relying on std features.

Enables serde, serde of pezsp-application-crypto, pezsp-arithmetic, pezsp-core, pezsp-weights, and scale-info

Affects header::serialize_number, header::deserialize_number

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.

rand std

Enables rand ^0.8.5

simple-mermaid std

Enables simple-mermaid ^0.1.1