Cargo Features

[dependencies]
scale-info = { version = "2.11.5", 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

bitvec:

The standard library includes the allocator.

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. These features may have been created by mistake, and this functionality may be removed in the future.

bitvec bit-vec?
scale-info-derive derive? docs?
serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

schemars schema?