Cargo Features
[dependencies]
sp-weights = { version = "31.0.0", default-features = false, features = ["std", "full-metadata-docs", "serde", "json-schema"] }
- default = std
-
The
std
feature is set by default wheneversp-weights
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of bounded-collections, parity-scale-codec, scale-info, serde, sp-arithmetic, and sp-debug-derive
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - full-metadata-docs
-
By default some types have documentation,
full-metadata-docs
allows to add documentation to more types in the metadata.Enables docs of scale-info
- serde std
-
Serde support without relying on std features.
Enables serde, serde of sp-arithmetic, serde of bounded-collections and scale-info
- json-schema
-
Enables schemars