Cargo Features

[dependencies]
scale-info = { version = "2.10.0", default-features = false, features = ["std", "derive", "docs", "decode", "bit-vec", "schema", "serde"] }
default = std

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

std default schema?

Enables std of optional bitvec and parity-scale-codec

derive = scale-info-derive
docs

Include rustdoc strings in the type metadata.

Enables docs of scale-info-derive

decode

Enables decoding and deserialization of portable scale-info type metadata.

Enables full of parity-scale-codec

bit-vec = bitvec

Enables type information for bitvec types, matching the name of the parity-scale-codec feature.

schema = schemars, std

Enables JSON Schema generation.

Affects form::JsonSchemaMaybe

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

scale-info-derive derive?
serde implicit feature

With derive and alloc

schemars schema?

With default (derive)