Cargo Features

primitive-types = { version = "0.12.2", default-features = false, features = ["std", "byteorder", "rustc-hex", "serde", "json-schema", "serde_no_std", "codec", "scale-info", "rlp", "fp-conversion", "num-traits", "arbitrary"] }
default = std

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

std default fp-conversion? serde?

Enables std of fixed-hash, optional impl-codec, and uint


Enables byteorder of fixed-hash


Enables rustc-hex of fixed-hash

serde = impl-serde, std

Enables std of impl-serde


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

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.

impl-serde serde? serde_no_std?
impl-codec codec?
impl-num-traits num-traits?
impl-rlp rlp?
scale-info-crate scale-info?

Enables scale-info