Cargo Features
[dependencies]
substrate-primitives = { version = "1.0.0", default-features = false, features = ["std"] }
- default = std
-
The
std
feature is set by default wheneversubstrate-primitives
is added without
somewhere in the dependency tree.default-features = false - std default = base58, blake2-rfc, hex, hex-literal, impl-serde, rand, regex, ring, schnorrkel, serde, sha2, substrate-bip39, tiny-bip39, twox-hash, untrusted, wasmi
-
Enables byteorder, heapsize, libc, rustc-hex, serde and std of primitive-types ^0.2, std of sr-std and rustc-hex, std of byteorder, hash-db ^0.12, hash256-std-hasher ^0.12, and parity-codec ^3.2
Affects
crypto::JUNCTION_ID_LEN
,crypto::SecretStringError
,crypto::DeriveJunction
,crypto::PublicError
,crypto::Ss58Codec
,crypto::Derive
,crypto::Pair
,ed25519::Pair
,ed25519::LocalizedSignature
,ed25519::PublicError
,ed25519::DeriveError
,substrate-primitives::hashing
,substrate-primitives::hexdisplay
,substrate-primitives::NativeOrEncoded
,substrate-primitives::NeverNativeValue
,sr25519::Pair
,sr25519::LocalizedSignature
…
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.
- serde std
- twox-hash std
-
Enables twox-hash ^1.1.0
- impl-serde std
-
Enables impl-serde ^0.1
- wasmi std
-
Enables wasmi ^0.4.3
- ring std
-
Enables ring ^0.14
- untrusted std
-
Enables untrusted ^0.6
- hex-literal std
-
Enables hex-literal ^0.1
- base58 std
-
Enables base58 ^0.1
- blake2-rfc std
- schnorrkel std
- rand std
-
Enables rand ^0.6
- sha2 std
-
Enables sha2 ^0.8
- substrate-bip39 std
-
Enables substrate-bip39 ^0.2.2
- tiny-bip39 std
-
Enables tiny-bip39 ^0.6.0
- hex std
-
Enables hex ^0.3
- regex std