[package]
name = "sp-core"
version = "35.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "Shareable Substrate types."
documentation = "https://docs.rs/sp-core"
[lints]
workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { features = ["derive", "max-encoded-len"], workspace = true }
scale-info = { features = ["derive"], workspace = true }
log = { workspace = true }
serde = { optional = true, features = ["alloc", "derive"], workspace = true }
bounded-collections = { workspace = true }
primitive-types = { features = ["codec", "scale-info"], workspace = true }
impl-serde = { optional = true, workspace = true }
hash-db = { workspace = true }
hash256-std-hasher = { workspace = true }
bs58 = { optional = true, workspace = true }
rand = { features = [
"small_rng",
], optional = true, workspace = true, default-features = true }
substrate-bip39.workspace = true
bip39 = { package = "parity-bip39", version = "2.0.1", default-features = false, features = [
"alloc",
] }
zeroize = { workspace = true }
secrecy = { features = ["alloc"], workspace = true }
parking_lot = { optional = true, workspace = true, default-features = true }
ss58-registry = { workspace = true }
sp-std.workspace = true
sp-debug-derive.workspace = true
sp-storage.workspace = true
sp-externalities = { optional = true, workspace = true }
futures = { optional = true, workspace = true }
dyn-clonable = { optional = true, workspace = true }
thiserror = { optional = true, workspace = true }
tracing = { optional = true, workspace = true, default-features = true }
bitflags = { workspace = true }
paste = { workspace = true, default-features = true }
itertools = { optional = true, workspace = true }
array-bytes = { workspace = true, default-features = true }
ed25519-zebra = { workspace = true }
blake2 = { optional = true, workspace = true }
libsecp256k1 = { features = ["static-context"], workspace = true }
schnorrkel = { features = ["preaudit_deprecated"], workspace = true }
merlin = { workspace = true }
sp-crypto-hashing.workspace = true
sp-runtime-interface.workspace = true
k256 = { features = ["alloc", "ecdsa"], workspace = true }
secp256k1 = { features = [
"alloc",
"recovery",
], optional = true, workspace = true }
w3f-bls = { optional = true, workspace = true }
[dev-dependencies]
criterion = { workspace = true, default-features = true }
serde_json = { workspace = true, default-features = true }
regex = { workspace = true }
[[bench]]
name = "bench"
harness = false
[lib]
bench = false
[features]
default = ["std"]
std = [
"bip39/rand",
"bip39/std",
"blake2/std",
"bounded-collections/std",
"bs58/std",
"codec/std",
"dyn-clonable",
"ed25519-zebra/std",
"full_crypto",
"futures",
"futures/thread-pool",
"hash-db/std",
"hash256-std-hasher/std",
"impl-serde/std",
"itertools",
"k256/std",
"libsecp256k1/std",
"log/std",
"merlin/std",
"parking_lot",
"primitive-types/byteorder",
"primitive-types/rustc-hex",
"primitive-types/serde",
"primitive-types/std",
"rand",
"scale-info/std",
"schnorrkel/std",
"secp256k1/global-context",
"secp256k1/std",
"serde/std",
"sp-crypto-hashing/std",
"sp-debug-derive/std",
"sp-externalities/std",
"sp-runtime-interface/std",
"sp-std/std",
"sp-storage/std",
"ss58-registry/std",
"substrate-bip39/std",
"thiserror",
"tracing",
"w3f-bls?/std",
"zeroize/alloc",
"zeroize/std",
]
serde = [
"blake2",
"bounded-collections/serde",
"bs58/alloc",
"dep:serde",
"impl-serde",
"k256/serde",
"primitive-types/serde_no_std",
"scale-info/serde",
"sp-storage/serde",
]
full_crypto = [
"blake2",
"sp-runtime-interface/disable_target_static_assertions",
]
bls-experimental = ["w3f-bls"]