Cargo Features
[dependencies]
scale-info = { version = "2.11.6", default-features = false, features = ["std", "derive", "docs", "decode", "bit-vec", "schema", "serde"] }
- default = std
-
The
std
feature is set by default wheneverscale-info
is added without
somewhere in the dependency tree.default-features = false - 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.