Files
pezkuwi-sdk/bizinikiwi/primitives/core/Cargo.toml
T
pezkuwichain ea341084f0 fix: comprehensive feature propagation and dep:serde fixes
- Fix serde optional dependency issues by adding dep:serde to serde features (24 crates)
- Run zepter to propagate runtime-benchmarks, std, try-runtime, serde, experimental, with-tracing, tuples-96 features
- Regenerate umbrella crate with proper feature propagation
- Format all TOML files with taplo

This resolves check-umbrella and check-zepter CI failures.
2026-01-04 20:37:14 +03:00

180 lines
5.0 KiB
TOML

[package]
name = "pezsp-core"
version = "28.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "Shareable Bizinikiwi types."
documentation.workspace = true
[lints]
workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[lib]
bench = false
[[bench]]
name = "bench"
harness = false
[dependencies]
bip39 = { workspace = true, default-features = false, features = ["alloc"] }
bitflags = { workspace = true }
bizinikiwi-bip39 = { workspace = true }
bounded-collections = { workspace = true, features = ["scale-codec"] }
bs58 = { optional = true, workspace = true }
codec = { features = ["derive", "max-encoded-len"], workspace = true }
futures = { optional = true, workspace = true }
hash-db = { workspace = true }
hash256-std-hasher = { workspace = true }
impl-serde = { optional = true, workspace = true }
itertools = { optional = true, workspace = true }
log = { workspace = true }
parking_lot = { optional = true, workspace = true, default-features = true }
paste = { workspace = true, default-features = true }
pezsp-debug-derive = { workspace = true }
pezsp-externalities = { optional = true, workspace = true }
pezsp-std = { workspace = true }
pezsp-storage = { workspace = true }
primitive-types = { features = ["codec", "scale-info"], workspace = true }
rand = { features = [
"small_rng",
], optional = true, workspace = true, default-features = true }
scale-info = { features = ["derive"], workspace = true }
secrecy = { features = ["alloc"], workspace = true }
serde = { optional = true, features = ["alloc", "derive"], workspace = true }
ss58-registry = { workspace = true }
thiserror = { optional = true, workspace = true }
tracing = { optional = true, workspace = true, default-features = true }
zeroize = { workspace = true }
# full crypto
array-bytes = { workspace = true, default-features = true }
blake2 = { optional = true, workspace = true }
ed25519-zebra = { workspace = true }
libsecp256k1 = { features = ["static-context"], workspace = true }
merlin = { workspace = true }
pezsp-crypto-hashing = { workspace = true }
schnorrkel = { features = ["preaudit_deprecated"], workspace = true }
# k256 crate, better portability, intended to be used in bizinikiwi-runtimes (no-std)
k256 = { features = ["alloc", "ecdsa"], workspace = true }
# secp256k1 crate, better performance, intended to be used on host side (std)
secp256k1 = { features = [
"alloc",
"recovery",
], optional = true, workspace = true }
# bls crypto
sha2 = { optional = true, workspace = true }
w3f-bls = { optional = true, workspace = true }
# bandersnatch crypto
ark-vrf = { optional = true, workspace = true, features = [
"bandersnatch",
"ring",
] }
[target.'cfg(not(bizinikiwi_runtime))'.dependencies]
pezsp-externalities = { workspace = true, default-features = false }
futures = { version = "0.3.30", default-features = false, features = ["alloc"] }
dyn-clone = "1.0.17"
[dev-dependencies]
criterion = { workspace = true, default-features = true }
regex = { workspace = true }
serde_json = { workspace = true, default-features = true }
[features]
default = ["std"]
std = [
"ark-vrf?/std",
"bip39/rand",
"bip39/std",
"bizinikiwi-bip39/std",
"blake2/std",
"bounded-collections/std",
"bs58/std",
"codec/std",
"ed25519-zebra/std",
"full_crypto",
"futures/std",
"futures/thread-pool",
"hash-db/std",
"hash256-std-hasher/std",
"impl-serde/std",
"itertools",
"k256/std",
"libsecp256k1/std",
"log/std",
"merlin/std",
"parking_lot",
"pezsp-crypto-hashing/std",
"pezsp-debug-derive/std",
"pezsp-externalities/std",
"pezsp-std/std",
"pezsp-storage/std",
"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",
"sha2?/std",
"ss58-registry/std",
"thiserror",
"tracing",
"w3f-bls?/std",
"zeroize/alloc",
"zeroize/std",
]
# Serde support without relying on std features.
serde = [
"array-bytes/serde",
"bip39/serde",
"blake2",
"bounded-collections/serde",
"bs58/alloc",
"codec/serde",
"dep:serde",
"ed25519-zebra/serde",
"impl-serde",
"k256/serde",
"log/serde",
"parking_lot?/serde",
"pezsp-storage/serde",
"primitive-types/serde",
"primitive-types/serde_no_std",
"rand?/serde",
"scale-info/serde",
"schnorrkel/serde",
"secp256k1?/serde",
"secrecy/serde",
"zeroize/serde",
]
# 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.
full_crypto = ["blake2"]
# This feature adds BLS crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bls-experimental = ["sha2", "w3f-bls"]
# This feature adds Bandersnatch crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bandersnatch-experimental = ["ark-vrf"]
experimental = []