Cargo Features

[dependencies]
frame-metadata = { version = "17.0.0", default-features = false, features = ["legacy", "current", "unstable", "serde_full", "decode", "std"] }
default = current, std

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

legacy

Feature flag for pre-V14 versions.

Affects frame-metadata::decode_different, frame-metadata::v8, frame-metadata::v9, frame-metadata::v10, frame-metadata::v11, frame-metadata::v12, frame-metadata::v13

current default unstable? = scale-info

The current stable metadata versions.

Affects frame-metadata::v14, frame-metadata::v15

unstable = current

Unstable next metadata version.

Affects frame-metadata::v16

serde_full std = serde

Serde support without relying on std features

Enables serde of scale-info, alloc of serde

decode std

Scale decode support without relying on std features

Enables decode of scale-info

std default = decode, serde_full

Enables std of parity-scale-codec, scale-info, and serde

serde:

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

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.

scale-info current decode? serde_full? std
serde serde_full? std