Cargo Features
[dependencies]
primitive-types = { version = "0.13.1", default-features = false, features = ["std", "rand", "byteorder", "rustc-hex", "serde", "json-schema", "serde_no_std", "codec", "scale-info", "rlp", "fp-conversion", "num-traits", "arbitrary"] }
- default = rand, std
-
These default features are set whenever
primitive-types
is added without
somewhere in the dependency tree.default-features = false - std default fp-conversion? serde?
-
Enables std of fixed-hash, optional impl-codec, and uint
- rand default
-
Enables rand of fixed-hash
- byteorder
-
Enables byteorder of fixed-hash
- rustc-hex
-
Enables rustc-hex of fixed-hash
- serde = impl-serde, std
-
Enables std of impl-serde
- json-schema
-
Enables schemars
- serde_no_std = impl-serde
- codec scale-info? = impl-codec
- scale-info = codec, scale-info-crate
- rlp = impl-rlp
- fp-conversion = std
- num-traits = impl-num-traits
- arbitrary
-
Enables arbitrary of fixed-hash and uint
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.