Cargo Features
[dependencies]
gp-core = { version = "7.0.0", default-features = false, features = ["std", "full_crypto"] }
- default = std
-
The
std
feature is set by default whenevergp-core
is added without
somewhere in the dependency tree.default-features = false - std default = array-bytes, base58, dyn-clonable, full_crypto, futures, impl-serde, lazy_static, parking_lot, rand, regex, serde, sp-externalities, substrate-bip39, thiserror, tiny-bip39
-
Enables thread-pool of futures, byteorder, rustc-hex, serde and std of primitive-types ^0.12.0, global-context and std of secp256k1 ^0.24.0, alloc of secrecy ^0.8.0, alloc of zeroize, std of scale-info and schnorrkel ^0.9.1, std of blake2, bounded-collections ^0.1.4, parity-scale-codec, and ed25519-zebra ^3.1.0, std of gp-allocator, sp-core-hashing ^5.0.0, sp-debug-derive ^5.0.0, gp-runtime-interface ^7.0.1, sp-std ^5.0.0, sp-storage ^7.0.0, and ss58-registry, std of hash-db, hash256-std-hasher, libsecp256k1, log, and optional merlin ^2.0
Affects
crypto::Ss58Codec.from_ss58check
,crypto::Ss58Codec.from_ss58check_with_version
,crypto::Ss58Codec.from_string
,crypto::Ss58Codec.to_ss58check_with_version
,crypto::Ss58Codec.to_ss58check
,crypto::Ss58Codec.from_string_with_version
,crypto::Derive.derive
,crypto::default_ss58_version
,crypto::unwrap_or_default_ss58_version
,crypto::set_default_ss58_version
,crypto::SecretUri
,crypto::Pair.generate
,crypto::Pair.generate_with_phrase
,crypto::Pair.from_phrase
,crypto::Pair.from_string_with_seed
,crypto::Pair.from_string
,hexdisplay::ascii_format
,gp-core::traits
,offchain::storage
,offchain::testing
… - full_crypto std = array-bytes, blake2, ed25519-zebra, libsecp256k1, merlin, schnorrkel, secp256k1, sp-core-hashing
-
This feature enables all crypto primitives for
no_std
builds like microcontrollers or Intel SGX. For the regular wasm runtime builds this should not be used.Enables disable_target_static_assertions of gp-runtime-interface ^7.0.1
Affects
crypto::JUNCTION_ID_LEN
,crypto::SecretStringError
,crypto::DeriveJunction
,crypto::PublicError
,crypto::Ss58Codec
,crypto::Pair
,ecdsa::DeriveError
,ecdsa::Pair
,ed25519::Pair
,ed25519::DeriveError
,gp-core::hashing
,sr25519::Pair
…
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
- impl-serde std
-
Enables impl-serde ^0.4.0
- base58 std
- rand std
- substrate-bip39 std
-
Enables substrate-bip39 ^0.4.4
- tiny-bip39 std
-
Enables tiny-bip39 ^1.0.0
- regex std
- lazy_static std
- parking_lot std
- sp-externalities std
-
Enables gp-externalities
- futures std
- dyn-clonable std
- thiserror std
-
Enables thiserror ^1.0.30
- array-bytes full_crypto? std
-
Enables array-bytes ^4.1
full crypto
- ed25519-zebra full_crypto? std
-
Enables ed25519-zebra ^3.1.0
- blake2 full_crypto? std
- schnorrkel full_crypto? std
-
Enables schnorrkel ^0.9.1
- libsecp256k1 full_crypto? std
- merlin full_crypto?
-
Enables merlin ^2.0
- secp256k1 full_crypto? std
-
Enables secp256k1 ^0.24.0
- sp-core-hashing full_crypto? std
-
Enables sp-core-hashing ^5.0.0