Cargo Features

[dependencies]
frame-decode = { version = "0.5.0", default-features = false, features = ["std", "error-tracing", "legacy"] }
default = error-tracing, legacy, std

These default features are set whenever frame-decode is added without default-features = false somewhere in the dependency tree.

std default

Require std environment.

Enables std of frame-metadata, parity-scale-codec, scale-decode, scale-info, optional scale-info-legacy, optional scale-value, and sp-crypto-hashing

error-tracing default

When decoding fails, return a detailed trace of what went wrong.
This requires scale-value so can be disabled to avoid the extra dep(s).

Enables scale-value

legacy default

Enable decoding of historic metadata.

Enables scale-info-legacy, legacy of frame-metadata

Affects frame-decode::storage.decode_storage_key_legacy, frame-decode::storage.decode_storage_value_legacy, type_registry_from_metadata::type_registry_from_metadata, type_registry_from_metadata::type_registry_from_metadata_any, type_registry_from_metadata::ToTypeRegistry, utils::as_decoded