fix: Resolve cargo clippy errors and add CI workflow plan
## Changes
### Clippy Fixes
- Fixed deprecated `cargo_bin` usage in 27 test files (added #![allow(deprecated)])
- Fixed uninlined_format_args in zombienet-sdk-tests
- Fixed subxt API changes in revive/rpc/tests.rs (fetch signature, StorageValue)
- Fixed dead_code warnings in validator-pool and identity-kyc mocks
- Fixed field name `i` -> `_i` in tasks example
### CI Infrastructure
- Added .claude/WORKFLOW_PLAN.md for tracking CI fix progress
- Updated lychee.toml and taplo.toml configs
### Files Modified
- 27 test files with deprecated cargo_bin fix
- bizinikiwi/pezframe/revive/rpc/src/tests.rs (subxt API)
- pezkuwi/pezpallets/validator-pool/src/{mock,tests}.rs
- pezcumulus/teyrchains/pezpallets/identity-kyc/src/mock.rs
- bizinikiwi/pezframe/examples/tasks/src/tests.rs
## Status
- cargo clippy: PASSING
- Next: cargo fmt, zepter, workspace checks
This commit is contained in:
@@ -21,7 +21,6 @@ codec = { workspace = true }
|
||||
docify = { workspace = true }
|
||||
hash-db = { optional = true, workspace = true, default-features = true }
|
||||
log = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
pezsp-api-proc-macro = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-externalities = { optional = true, workspace = true }
|
||||
@@ -31,6 +30,7 @@ pezsp-runtime-interface = { workspace = true }
|
||||
pezsp-state-machine = { optional = true, workspace = true }
|
||||
pezsp-trie = { optional = true, workspace = true }
|
||||
pezsp-version = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
thiserror = { optional = true, workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -39,22 +39,22 @@ pezsp-test-primitives = { workspace = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"hash-db",
|
||||
"log/std",
|
||||
"scale-info/std",
|
||||
"pezsp-api-proc-macro/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-externalities",
|
||||
"pezsp-externalities?/std",
|
||||
"pezsp-metadata-ir?/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-state-machine/std",
|
||||
"pezsp-test-primitives/std",
|
||||
"pezsp-trie/std",
|
||||
"pezsp-version/std",
|
||||
"thiserror",
|
||||
"codec/std",
|
||||
"hash-db",
|
||||
"log/std",
|
||||
"pezsp-api-proc-macro/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-externalities",
|
||||
"pezsp-externalities?/std",
|
||||
"pezsp-metadata-ir?/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-state-machine/std",
|
||||
"pezsp-test-primitives/std",
|
||||
"pezsp-trie/std",
|
||||
"pezsp-version/std",
|
||||
"scale-info/std",
|
||||
"thiserror",
|
||||
]
|
||||
# Special feature to disable logging completely.
|
||||
#
|
||||
@@ -68,10 +68,10 @@ disable-logging = ["log/max_level_off"]
|
||||
no-metadata-docs = ["pezsp-api-proc-macro/no-metadata-docs"]
|
||||
frame-metadata = ["pezsp-metadata-ir"]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-runtime-interface/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine?/runtime-benchmarks",
|
||||
"pezsp-test-primitives/runtime-benchmarks",
|
||||
"pezsp-trie?/runtime-benchmarks",
|
||||
"pezsp-version/runtime-benchmarks",
|
||||
"pezsp-runtime-interface/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine?/runtime-benchmarks",
|
||||
"pezsp-test-primitives/runtime-benchmarks",
|
||||
"pezsp-trie?/runtime-benchmarks",
|
||||
"pezsp-version/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -26,11 +26,11 @@ proc-macro-crate = { workspace = true }
|
||||
proc-macro2 = { workspace = true }
|
||||
quote = { workspace = true }
|
||||
syn = { features = [
|
||||
"extra-traits",
|
||||
"fold",
|
||||
"full",
|
||||
"visit",
|
||||
"visit-mut",
|
||||
"extra-traits",
|
||||
"fold",
|
||||
"full",
|
||||
"visit",
|
||||
"visit-mut",
|
||||
], workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
@@ -21,10 +21,9 @@ name = "bench"
|
||||
harness = false
|
||||
|
||||
[dependencies]
|
||||
bizinikiwi-test-runtime-client = { workspace = true }
|
||||
codec = { workspace = true, default-features = true }
|
||||
rustversion = { workspace = true }
|
||||
pezsc-block-builder = { workspace = true, default-features = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
pezsp-api = { workspace = true, default-features = true }
|
||||
pezsp-consensus = { workspace = true, default-features = true }
|
||||
pezsp-externalities = { workspace = true, default-features = true }
|
||||
@@ -33,7 +32,8 @@ pezsp-runtime = { workspace = true, default-features = true }
|
||||
pezsp-state-machine = { workspace = true, default-features = true }
|
||||
pezsp-tracing = { workspace = true, default-features = true }
|
||||
pezsp-version = { workspace = true, default-features = true }
|
||||
bizinikiwi-test-runtime-client = { workspace = true }
|
||||
rustversion = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
trybuild = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -47,11 +47,11 @@ static_assertions = { workspace = true, default-features = true }
|
||||
enable-pezstaging-api = []
|
||||
disable-ui-tests = []
|
||||
runtime-benchmarks = [
|
||||
"pezsc-block-builder/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"pezsp-version/runtime-benchmarks",
|
||||
"bizinikiwi-test-runtime-client/runtime-benchmarks",
|
||||
"bizinikiwi-test-runtime-client/runtime-benchmarks",
|
||||
"pezsc-block-builder/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"pezsp-version/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -18,34 +18,34 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { optional = true, features = ["alloc", "derive"], workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { optional = true, features = ["alloc", "derive"], workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"full_crypto",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"codec/std",
|
||||
"full_crypto",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = ["dep:serde", "scale-info/serde", "pezsp-core/serde"]
|
||||
serde = ["dep:serde", "pezsp-core/serde", "scale-info/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 = [
|
||||
"pezsp-core/full_crypto",
|
||||
"pezsp-io/disable_oom",
|
||||
# Don't add `panic_handler` and `alloc_error_handler` since they are expected to be provided
|
||||
# by the user anyway.
|
||||
"pezsp-io/disable_panic_handler",
|
||||
"pezsp-core/full_crypto",
|
||||
"pezsp-io/disable_oom",
|
||||
# Don't add `panic_handler` and `alloc_error_handler` since they are expected to be provided
|
||||
# by the user anyway.
|
||||
"pezsp-io/disable_panic_handler",
|
||||
]
|
||||
|
||||
# This feature adds BLS crypto primitives.
|
||||
@@ -57,6 +57,6 @@ bls-experimental = ["pezsp-core/bls-experimental", "pezsp-io/bls-experimental"]
|
||||
# It should not be used in production since the implementation and interface may still
|
||||
# be subject to significant changes.
|
||||
bandersnatch-experimental = [
|
||||
"pezsp-core/bandersnatch-experimental",
|
||||
"pezsp-io/bandersnatch-experimental",
|
||||
"pezsp-core/bandersnatch-experimental",
|
||||
"pezsp-io/bandersnatch-experimental",
|
||||
]
|
||||
|
||||
@@ -17,16 +17,16 @@ workspace = true
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
bizinikiwi-test-runtime-client = { workspace = true }
|
||||
pezsp-api = { workspace = true, default-features = true }
|
||||
pezsp-application-crypto = { workspace = true, default-features = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-keystore = { workspace = true }
|
||||
pezsp-tracing = { workspace = true, default-features = true }
|
||||
bizinikiwi-test-runtime-client = { workspace = true }
|
||||
|
||||
[features]
|
||||
bls-experimental = ["bizinikiwi-test-runtime-client/bls-experimental"]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"bizinikiwi-test-runtime-client/runtime-benchmarks",
|
||||
"bizinikiwi-test-runtime-client/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -31,18 +31,18 @@ static_assertions = { workspace = true, default-features = true }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = { workspace = true, default-features = true }
|
||||
pezsp-crypto-hashing = { workspace = true, default-features = true }
|
||||
primitive-types = { workspace = true, default-features = true }
|
||||
rand = { workspace = true, default-features = true }
|
||||
pezsp-crypto-hashing = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"num-traits/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-crypto-hashing/std",
|
||||
"codec/std",
|
||||
"num-traits/std",
|
||||
"pezsp-crypto-hashing/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
# Serde support without relying on std features.
|
||||
serde = ["dep:serde", "scale-info/serde"]
|
||||
|
||||
@@ -72,11 +72,8 @@ fn main() {
|
||||
if check_digit_lengths(&u, &v, 4) {
|
||||
let expected = ue.unwrap().checked_sub(ve.unwrap());
|
||||
let t = u.clone().sub(&v);
|
||||
if expected.is_none() {
|
||||
assert!(t.is_err())
|
||||
} else {
|
||||
if let Some(expected) = expected {
|
||||
let t = t.unwrap();
|
||||
let expected = expected.unwrap();
|
||||
assert_eq!(
|
||||
u128::try_from(t.clone()).unwrap(),
|
||||
expected,
|
||||
@@ -86,6 +83,8 @@ fn main() {
|
||||
t,
|
||||
expected,
|
||||
);
|
||||
} else {
|
||||
assert!(t.is_err())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1695,15 +1695,15 @@ macro_rules! implement_fixed {
|
||||
|
||||
// Max - 1.
|
||||
let b = $name::from_inner(inner_max - 1);
|
||||
assert_eq!(a.const_checked_mul((b / 2.into())), Some(b));
|
||||
assert_eq!(a.const_checked_mul(b / 2.into()), Some(b));
|
||||
|
||||
// Max.
|
||||
let c = $name::from_inner(inner_max);
|
||||
assert_eq!(a.const_checked_mul((c / 2.into())), Some(b));
|
||||
assert_eq!(a.const_checked_mul(c / 2.into()), Some(b));
|
||||
|
||||
// Max + 1 => None.
|
||||
let e = $name::from_inner(1);
|
||||
assert_eq!(a.const_checked_mul((c / 2.into() + e)), None);
|
||||
assert_eq!(a.const_checked_mul(c / 2.into() + e), None);
|
||||
|
||||
if $name::SIGNED {
|
||||
// Min + 1.
|
||||
|
||||
@@ -1616,7 +1616,7 @@ macro_rules! implement_per_thing {
|
||||
<$type>::max_value(),
|
||||
super::Rounding::NearestPrefDown,
|
||||
),
|
||||
<$upper_type>::from((<$type>::max_value() - 1)),
|
||||
<$upper_type>::from(<$type>::max_value() - 1),
|
||||
);
|
||||
// (max % 2) * max / 2 == max / 2
|
||||
assert_eq!(
|
||||
|
||||
@@ -18,26 +18,26 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-application-crypto = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-runtime/std",
|
||||
"codec/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
]
|
||||
serde = [
|
||||
"scale-info/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -25,7 +25,7 @@ pezsp-runtime = { workspace = true }
|
||||
default = ["std"]
|
||||
std = ["pezsp-api/std", "pezsp-inherents/std", "pezsp-runtime/std"]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -20,20 +20,20 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
futures = { workspace = true }
|
||||
parking_lot = { workspace = true, default-features = true }
|
||||
schnellru = { workspace = true }
|
||||
pezsp-api = { workspace = true, default-features = true }
|
||||
pezsp-consensus = { workspace = true, default-features = true }
|
||||
pezsp-core = { workspace = true, default-features = true }
|
||||
pezsp-database = { workspace = true, default-features = true }
|
||||
pezsp-runtime = { workspace = true, default-features = true }
|
||||
pezsp-state-machine = { workspace = true, default-features = true }
|
||||
schnellru = { workspace = true }
|
||||
thiserror = { workspace = true }
|
||||
tracing = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -19,39 +19,39 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
async-trait = { optional = true, workspace = true }
|
||||
codec = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-application-crypto = { workspace = true }
|
||||
pezsp-consensus-slots = { workspace = true }
|
||||
pezsp-inherents = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
pezsp-timestamp = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-consensus-slots/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-timestamp/std",
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-consensus-slots/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-timestamp/std",
|
||||
"scale-info/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"scale-info/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-consensus-slots/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-consensus-slots/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus-slots/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-timestamp/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus-slots/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-timestamp/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -19,8 +19,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
async-trait = { optional = true, workspace = true }
|
||||
codec = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-application-crypto = { workspace = true }
|
||||
pezsp-consensus-slots = { workspace = true }
|
||||
@@ -28,36 +26,38 @@ pezsp-core = { workspace = true }
|
||||
pezsp-inherents = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
pezsp-timestamp = { optional = true, workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-consensus-slots/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-timestamp/std",
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-consensus-slots/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-timestamp/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"dep:serde",
|
||||
"scale-info/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-consensus-slots/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"dep:serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-consensus-slots/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus-slots/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-timestamp?/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus-slots/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-timestamp?/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -17,8 +17,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { optional = true, features = ["alloc", "derive"], workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-application-crypto = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
@@ -28,6 +26,8 @@ pezsp-keystore = { workspace = true }
|
||||
pezsp-mmr-primitives = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
pezsp-weights = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { optional = true, features = ["alloc", "derive"], workspace = true }
|
||||
strum = { features = ["derive"], workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -37,39 +37,39 @@ w3f-bls = { features = ["std"], workspace = true, default-features = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-crypto-hashing/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-keystore/std",
|
||||
"pezsp-mmr-primitives/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-weights/std",
|
||||
"strum/std",
|
||||
"codec/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-crypto-hashing/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-keystore/std",
|
||||
"pezsp-mmr-primitives/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-weights/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"strum/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"dep:serde",
|
||||
"scale-info/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"dep:serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
|
||||
# This feature adds BLS crypto primitives. It should not be used in production since
|
||||
# the BLS implementation and interface may still be subject to significant change.
|
||||
bls-experimental = [
|
||||
"pezsp-application-crypto/bls-experimental",
|
||||
"pezsp-core/bls-experimental",
|
||||
"pezsp-application-crypto/bls-experimental",
|
||||
"pezsp-core/bls-experimental",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-mmr-primitives/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-mmr-primitives/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -352,10 +352,6 @@ mod tests {
|
||||
type TestVersionedFinalityProof = VersionedFinalityProof<u128, EcdsaSignature>;
|
||||
|
||||
// Types for commitment supporting aggregatable bls signature
|
||||
#[cfg(feature = "bls-experimental")]
|
||||
#[derive(Clone, Debug, PartialEq, codec::Encode, codec::Decode)]
|
||||
struct BlsAggregatableSignature(BlsSignature);
|
||||
|
||||
#[cfg(feature = "bls-experimental")]
|
||||
#[derive(Clone, Debug, PartialEq, codec::Encode, codec::Decode)]
|
||||
struct EcdsaBlsSignaturePair(EcdsaSignature, BlsSignature);
|
||||
|
||||
@@ -31,7 +31,7 @@ futures = { workspace = true }
|
||||
[features]
|
||||
default = []
|
||||
runtime-benchmarks = [
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -20,38 +20,38 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
finality-grandpa = { features = ["derive-codec"], workspace = true }
|
||||
log = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-application-crypto = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-keystore = { optional = true, workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"finality-grandpa/std",
|
||||
"log/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-keystore/std",
|
||||
"pezsp-runtime/std",
|
||||
"codec/std",
|
||||
"finality-grandpa/std",
|
||||
"log/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-keystore/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"dep:serde",
|
||||
"scale-info/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"dep:serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -26,6 +26,6 @@ pezsp-runtime = { workspace = true }
|
||||
default = ["std"]
|
||||
std = ["codec/std", "pezsp-api/std", "pezsp-core/std", "pezsp-runtime/std"]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -22,40 +22,40 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["derive"], optional = true, workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-application-crypto = { features = [
|
||||
"bandersnatch-experimental",
|
||||
"bandersnatch-experimental",
|
||||
], workspace = true }
|
||||
pezsp-consensus-slots = { workspace = true }
|
||||
pezsp-core = { features = ["bandersnatch-experimental"], workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["derive"], optional = true, workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-consensus-slots/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-runtime/std",
|
||||
"codec/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-consensus-slots/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"dep:serde",
|
||||
"scale-info/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-consensus-slots/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"dep:serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-consensus-slots/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus-slots/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-consensus-slots/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -18,13 +18,13 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["derive", "max-encoded-len"], workspace = true }
|
||||
pezsp-timestamp = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
pezsp-timestamp = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["codec/std", "scale-info/std", "serde/std", "pezsp-timestamp/std"]
|
||||
std = ["codec/std", "pezsp-timestamp/std", "scale-info/std", "serde/std"]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = ["dep:serde", "scale-info/serde"]
|
||||
|
||||
@@ -25,6 +25,7 @@ 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 }
|
||||
@@ -36,19 +37,18 @@ itertools = { optional = true, workspace = true }
|
||||
log = { workspace = true }
|
||||
parking_lot = { optional = true, workspace = true, default-features = true }
|
||||
paste = { workspace = true, default-features = 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 }
|
||||
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 }
|
||||
bizinikiwi-bip39 = { workspace = true }
|
||||
thiserror = { optional = true, workspace = true }
|
||||
tracing = { optional = true, workspace = true, default-features = true }
|
||||
zeroize = { workspace = true }
|
||||
@@ -59,14 +59,14 @@ blake2 = { optional = true, workspace = true }
|
||||
ed25519-zebra = { workspace = true }
|
||||
libsecp256k1 = { features = ["static-context"], workspace = true }
|
||||
merlin = { workspace = true }
|
||||
schnorrkel = { features = ["preaudit_deprecated"], 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",
|
||||
"alloc",
|
||||
"recovery",
|
||||
], optional = true, workspace = true }
|
||||
|
||||
# bls crypto
|
||||
@@ -75,8 +75,8 @@ w3f-bls = { optional = true, workspace = true }
|
||||
|
||||
# bandersnatch crypto
|
||||
ark-vrf = { optional = true, workspace = true, features = [
|
||||
"bandersnatch",
|
||||
"ring",
|
||||
"bandersnatch",
|
||||
"ring",
|
||||
] }
|
||||
|
||||
[target.'cfg(not(bizinikiwi_runtime))'.dependencies]
|
||||
@@ -92,62 +92,62 @@ serde_json = { workspace = true, default-features = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"ark-vrf?/std",
|
||||
"bip39/rand",
|
||||
"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",
|
||||
"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",
|
||||
"pezsp-crypto-hashing/std",
|
||||
"pezsp-debug-derive/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-std/std",
|
||||
"pezsp-storage/std",
|
||||
"ss58-registry/std",
|
||||
"bizinikiwi-bip39/std",
|
||||
"thiserror",
|
||||
"tracing",
|
||||
"w3f-bls?/std",
|
||||
"zeroize/alloc",
|
||||
"zeroize/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 = [
|
||||
"blake2",
|
||||
"bounded-collections/serde",
|
||||
"bs58/alloc",
|
||||
"dep:serde",
|
||||
"impl-serde",
|
||||
"k256/serde",
|
||||
"primitive-types/serde_no_std",
|
||||
"scale-info/serde",
|
||||
"pezsp-storage/serde",
|
||||
"blake2",
|
||||
"bounded-collections/serde",
|
||||
"bs58/alloc",
|
||||
"dep:serde",
|
||||
"impl-serde",
|
||||
"k256/serde",
|
||||
"pezsp-storage/serde",
|
||||
"primitive-types/serde_no_std",
|
||||
"scale-info/serde",
|
||||
]
|
||||
|
||||
# This feature enables all crypto primitives for `no_std` builds like microcontrollers
|
||||
|
||||
@@ -389,7 +389,7 @@ fn ss58hash(data: &[u8]) -> Vec<u8> {
|
||||
/// Default prefix number
|
||||
#[cfg(feature = "serde")]
|
||||
static DEFAULT_VERSION: core::sync::atomic::AtomicU16 = core::sync::atomic::AtomicU16::new(
|
||||
from_known_address_format(Ss58AddressFormatRegistry::PezkuwichainAccount),
|
||||
from_known_address_format(Ss58AddressFormatRegistry::BizinikiwiAccount),
|
||||
);
|
||||
|
||||
/// Returns default SS58 format used by the current active process.
|
||||
|
||||
@@ -519,8 +519,6 @@ macro_rules! generate_feature_enabled_macro {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
generate_feature_enabled_macro!(if_test, test, $);
|
||||
generate_feature_enabled_macro!(if_not_test, not(test), $);
|
||||
|
||||
|
||||
@@ -33,20 +33,20 @@ pezsp-runtime-interface = { optional = true, workspace = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"ark-bls12-377-ext?/std",
|
||||
"ark-bls12-377?/std",
|
||||
"ark-bls12-381-ext?/std",
|
||||
"ark-bls12-381?/std",
|
||||
"ark-bw6-761-ext?/std",
|
||||
"ark-bw6-761?/std",
|
||||
"ark-ec?/parallel",
|
||||
"ark-ec?/std",
|
||||
"ark-ed-on-bls12-377-ext?/std",
|
||||
"ark-ed-on-bls12-377?/std",
|
||||
"ark-ed-on-bls12-381-bandersnatch-ext?/std",
|
||||
"ark-ed-on-bls12-381-bandersnatch?/std",
|
||||
"ark-scale?/std",
|
||||
"pezsp-runtime-interface?/std",
|
||||
"ark-bls12-377-ext?/std",
|
||||
"ark-bls12-377?/std",
|
||||
"ark-bls12-381-ext?/std",
|
||||
"ark-bls12-381?/std",
|
||||
"ark-bw6-761-ext?/std",
|
||||
"ark-bw6-761?/std",
|
||||
"ark-ec?/parallel",
|
||||
"ark-ec?/std",
|
||||
"ark-ed-on-bls12-377-ext?/std",
|
||||
"ark-ed-on-bls12-377?/std",
|
||||
"ark-ed-on-bls12-381-bandersnatch-ext?/std",
|
||||
"ark-ed-on-bls12-381-bandersnatch?/std",
|
||||
"ark-scale?/std",
|
||||
"pezsp-runtime-interface?/std",
|
||||
]
|
||||
common = ["ark-ec", "ark-scale", "pezsp-runtime-interface"]
|
||||
bls12-377 = ["ark-bls12-377", "ark-bls12-377-ext", "common"]
|
||||
@@ -54,14 +54,14 @@ bls12-381 = ["ark-bls12-381", "ark-bls12-381-ext", "common"]
|
||||
bw6-761 = ["ark-bw6-761", "ark-bw6-761-ext", "common"]
|
||||
ed-on-bls12-377 = ["ark-ed-on-bls12-377", "ark-ed-on-bls12-377-ext", "common"]
|
||||
ed-on-bls12-381-bandersnatch = [
|
||||
"ark-ed-on-bls12-381-bandersnatch",
|
||||
"ark-ed-on-bls12-381-bandersnatch-ext",
|
||||
"common",
|
||||
"ark-ed-on-bls12-381-bandersnatch",
|
||||
"ark-ed-on-bls12-381-bandersnatch-ext",
|
||||
"common",
|
||||
]
|
||||
all-curves = [
|
||||
"bls12-377",
|
||||
"bls12-381",
|
||||
"bw6-761",
|
||||
"ed-on-bls12-377",
|
||||
"ed-on-bls12-381-bandersnatch",
|
||||
"bls12-377",
|
||||
"bls12-381",
|
||||
"bw6-761",
|
||||
"ed-on-bls12-377",
|
||||
"ed-on-bls12-381-bandersnatch",
|
||||
]
|
||||
|
||||
@@ -37,10 +37,10 @@ pezsp-crypto-hashing-proc-macro = { workspace = true, default-features = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"blake2b_simd/std",
|
||||
"byteorder/std",
|
||||
"digest/std",
|
||||
"sha2/std",
|
||||
"sha3/std",
|
||||
"twox-hash/std",
|
||||
"blake2b_simd/std",
|
||||
"byteorder/std",
|
||||
"digest/std",
|
||||
"sha2/std",
|
||||
"sha3/std",
|
||||
"twox-hash/std",
|
||||
]
|
||||
|
||||
@@ -19,6 +19,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
quote = { workspace = true }
|
||||
pezsp-crypto-hashing = { workspace = true }
|
||||
quote = { workspace = true }
|
||||
syn = { features = ["full", "parsing"], workspace = true }
|
||||
|
||||
@@ -20,20 +20,20 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
codec = { features = ["bytes"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
serde_json = { features = ["alloc", "arbitrary_precision"], workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
serde_json = { features = ["alloc", "arbitrary_precision"], workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-runtime/std",
|
||||
"codec/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -20,8 +20,8 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
async-trait = { optional = true, workspace = true }
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
impl-trait-for-tuples = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
pezsp-runtime = { optional = true, workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
thiserror = { optional = true, workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -30,10 +30,10 @@ futures = { workspace = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"pezsp-runtime/std",
|
||||
"thiserror",
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"thiserror",
|
||||
]
|
||||
runtime-benchmarks = ["pezsp-runtime?/runtime-benchmarks"]
|
||||
|
||||
@@ -20,10 +20,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
bytes = { workspace = true }
|
||||
codec = { features = ["bytes"], workspace = true }
|
||||
secp256k1 = { features = [
|
||||
"global-context",
|
||||
"recovery",
|
||||
], optional = true, workspace = true, default-features = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-crypto-hashing = { workspace = true }
|
||||
pezsp-externalities = { workspace = true }
|
||||
@@ -32,6 +28,10 @@ pezsp-runtime-interface = { workspace = true }
|
||||
pezsp-state-machine = { optional = true, workspace = true }
|
||||
pezsp-tracing = { workspace = true }
|
||||
pezsp-trie = { optional = true, workspace = true }
|
||||
secp256k1 = { features = [
|
||||
"global-context",
|
||||
"recovery",
|
||||
], optional = true, workspace = true, default-features = true }
|
||||
tracing = { workspace = true }
|
||||
tracing-core = { workspace = true }
|
||||
|
||||
@@ -41,11 +41,11 @@ pezsp-trie = { workspace = true, default-features = false }
|
||||
pezsp-state-machine = { workspace = true, default-features = false }
|
||||
log = { workspace = true, default-features = true }
|
||||
libsecp256k1 = { workspace = true, default-features = false, features = [
|
||||
"static-context",
|
||||
"static-context",
|
||||
] }
|
||||
secp256k1 = { workspace = true, default-features = false, features = [
|
||||
"alloc",
|
||||
"recovery",
|
||||
"alloc",
|
||||
"recovery",
|
||||
] }
|
||||
|
||||
# Required for backwards compatibility reason, but only used for verifying when `UseDalekExt` is set.
|
||||
@@ -62,23 +62,23 @@ rustversion = { workspace = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"bytes/std",
|
||||
"codec/std",
|
||||
"ed25519-dalek/std",
|
||||
"libsecp256k1/std",
|
||||
"log/std",
|
||||
"secp256k1/global-context",
|
||||
"secp256k1/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-crypto-hashing/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-keystore/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
"pezsp-state-machine/std",
|
||||
"pezsp-tracing/std",
|
||||
"pezsp-trie/std",
|
||||
"tracing-core/std",
|
||||
"tracing/std",
|
||||
"bytes/std",
|
||||
"codec/std",
|
||||
"ed25519-dalek/std",
|
||||
"libsecp256k1/std",
|
||||
"log/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-crypto-hashing/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-keystore/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
"pezsp-state-machine/std",
|
||||
"pezsp-tracing/std",
|
||||
"pezsp-trie/std",
|
||||
"secp256k1/global-context",
|
||||
"secp256k1/std",
|
||||
"tracing-core/std",
|
||||
"tracing/std",
|
||||
]
|
||||
|
||||
with-tracing = ["pezsp-tracing/with-tracing"]
|
||||
@@ -114,19 +114,19 @@ improved_panic_error_reporting = []
|
||||
# It should not be used in production since the implementation and interface may still
|
||||
# be subject to significant changes.
|
||||
bls-experimental = [
|
||||
"pezsp-core/bls-experimental",
|
||||
"pezsp-keystore/bls-experimental",
|
||||
"pezsp-core/bls-experimental",
|
||||
"pezsp-keystore/bls-experimental",
|
||||
]
|
||||
|
||||
# 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 = [
|
||||
"pezsp-core/bandersnatch-experimental",
|
||||
"pezsp-keystore/bandersnatch-experimental",
|
||||
"pezsp-core/bandersnatch-experimental",
|
||||
"pezsp-keystore/bandersnatch-experimental",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-runtime-interface/runtime-benchmarks",
|
||||
"pezsp-state-machine?/runtime-benchmarks",
|
||||
"pezsp-trie?/runtime-benchmarks",
|
||||
"pezsp-runtime-interface/runtime-benchmarks",
|
||||
"pezsp-state-machine?/runtime-benchmarks",
|
||||
"pezsp-trie?/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -24,10 +24,10 @@ pezsp-externalities = { workspace = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"dep:parking_lot",
|
||||
"pezsp-core/std",
|
||||
"pezsp-externalities/std",
|
||||
"codec/std",
|
||||
"dep:parking_lot",
|
||||
"pezsp-core/std",
|
||||
"pezsp-externalities/std",
|
||||
]
|
||||
|
||||
# This feature adds BLS crypto primitives.
|
||||
|
||||
@@ -19,12 +19,12 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
codec = { workspace = true }
|
||||
log = { workspace = true }
|
||||
mmr-lib = { workspace = true, default-features = false }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-debug-derive = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
thiserror = { optional = true, workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -33,26 +33,26 @@ array-bytes = { workspace = true, default-features = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"dep:thiserror",
|
||||
"log/std",
|
||||
"mmr-lib/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-debug-derive/std",
|
||||
"pezsp-runtime/std",
|
||||
"codec/std",
|
||||
"dep:thiserror",
|
||||
"log/std",
|
||||
"mmr-lib/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-debug-derive/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"dep:serde",
|
||||
"scale-info/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"dep:serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -4,8 +4,8 @@ name = "pezsp-mixnet"
|
||||
version = "0.4.0"
|
||||
license = "Apache-2.0"
|
||||
authors = [
|
||||
"Kurdistan Tech Institute <info@pezkuwichain.io>",
|
||||
"Parity Technologies <admin@parity.io>",
|
||||
"Kurdistan Tech Institute <info@pezkuwichain.io>",
|
||||
"Parity Technologies <admin@parity.io>",
|
||||
]
|
||||
edition.workspace = true
|
||||
homepage.workspace = true
|
||||
@@ -21,16 +21,16 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-application-crypto = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"codec/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"scale-info/std",
|
||||
]
|
||||
runtime-benchmarks = ["pezsp-api/runtime-benchmarks"]
|
||||
|
||||
@@ -18,11 +18,11 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
pezsp-arithmetic = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
bizinikiwi-test-utils = { workspace = true }
|
||||
@@ -31,20 +31,20 @@ bizinikiwi-test-utils = { workspace = true }
|
||||
default = ["std"]
|
||||
bench = []
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-arithmetic/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-runtime/std",
|
||||
"codec/std",
|
||||
"pezsp-arithmetic/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"dep:serde",
|
||||
"scale-info/serde",
|
||||
"pezsp-arithmetic/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"dep:serde",
|
||||
"pezsp-arithmetic/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"]
|
||||
|
||||
@@ -35,15 +35,15 @@ path = "src/phragmen_pjr.rs"
|
||||
[dependencies]
|
||||
clap = { features = ["derive"], workspace = true }
|
||||
honggfuzz = { workspace = true }
|
||||
rand = { features = [
|
||||
"small_rng",
|
||||
"std",
|
||||
], workspace = true, default-features = true }
|
||||
pezsp-npos-elections = { workspace = true, default-features = true }
|
||||
pezsp-runtime = { workspace = true, default-features = true }
|
||||
rand = { features = [
|
||||
"small_rng",
|
||||
"std",
|
||||
], workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-npos-elections/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-npos-elections/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -25,6 +25,6 @@ pezsp-runtime = { workspace = true }
|
||||
default = ["std"]
|
||||
std = ["pezsp-api/std", "pezsp-core/std", "pezsp-runtime/std"]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -17,9 +17,9 @@ workspace = true
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
pezsp-core = { workspace = true, default-features = true }
|
||||
rustc-hash = { workspace = true }
|
||||
serde = { features = ["derive"], workspace = true, default-features = true }
|
||||
pezsp-core = { workspace = true, default-features = true }
|
||||
|
||||
[dev-dependencies]
|
||||
serde_json = { workspace = true, default-features = true }
|
||||
|
||||
@@ -32,25 +32,25 @@ static_assertions = { workspace = true, default-features = true }
|
||||
polkavm-derive = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
rustversion = { workspace = true }
|
||||
pezsp-io = { workspace = true, default-features = true }
|
||||
pezsp-runtime-interface-test-wasm = { workspace = true }
|
||||
pezsp-state-machine = { workspace = true, default-features = true }
|
||||
rustversion = { workspace = true }
|
||||
trybuild = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"bytes/std",
|
||||
"codec/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime-interface-test-wasm/std",
|
||||
"pezsp-state-machine/std",
|
||||
"pezsp-std/std",
|
||||
"pezsp-storage/std",
|
||||
"pezsp-tracing/std",
|
||||
"pezsp-wasm-interface/std",
|
||||
"bytes/std",
|
||||
"codec/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime-interface-test-wasm/std",
|
||||
"pezsp-state-machine/std",
|
||||
"pezsp-std/std",
|
||||
"pezsp-storage/std",
|
||||
"pezsp-tracing/std",
|
||||
"pezsp-wasm-interface/std",
|
||||
]
|
||||
|
||||
# ATTENTION
|
||||
@@ -61,6 +61,6 @@ std = [
|
||||
# check is changed into a runtime check.
|
||||
disable_target_static_assertions = []
|
||||
runtime-benchmarks = [
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -28,8 +28,8 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
]
|
||||
|
||||
@@ -29,9 +29,9 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"bytes/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"bytes/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
]
|
||||
|
||||
@@ -30,9 +30,9 @@ tracing-core = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"pezsc-executor/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-runtime-interface/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"pezsc-executor/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-runtime-interface/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -27,9 +27,6 @@ impl-trait-for-tuples = { workspace = true }
|
||||
log = { workspace = true }
|
||||
num-traits = { workspace = true }
|
||||
paste = { workspace = true, default-features = true }
|
||||
rand = { optional = true, workspace = true, default-features = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
pezsp-application-crypto = { workspace = true }
|
||||
pezsp-arithmetic = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
@@ -37,64 +34,67 @@ pezsp-io = { workspace = true }
|
||||
pezsp-std = { workspace = true }
|
||||
pezsp-trie = { workspace = true }
|
||||
pezsp-weights = { workspace = true }
|
||||
rand = { optional = true, workspace = true, default-features = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
tracing = { workspace = true, features = ["log"], default-features = false }
|
||||
|
||||
simple-mermaid = { workspace = true, optional = true }
|
||||
tuplex = { workspace = true, default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
rand = { workspace = true, default-features = true }
|
||||
serde_json = { workspace = true, default-features = true }
|
||||
bizinikiwi-test-runtime-client = { workspace = true }
|
||||
pezsp-api = { workspace = true, default-features = true }
|
||||
pezsp-state-machine = { workspace = true, default-features = true }
|
||||
pezsp-tracing = { workspace = true, default-features = true }
|
||||
bizinikiwi-test-runtime-client = { workspace = true }
|
||||
rand = { workspace = true, default-features = true }
|
||||
serde_json = { workspace = true, default-features = true }
|
||||
zstd = { workspace = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"binary-merkle-tree/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"pezsp-trie/runtime-benchmarks",
|
||||
"bizinikiwi-test-runtime-client/runtime-benchmarks",
|
||||
"binary-merkle-tree/runtime-benchmarks",
|
||||
"bizinikiwi-test-runtime-client/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"pezsp-trie/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = []
|
||||
default = ["std"]
|
||||
std = [
|
||||
"binary-merkle-tree/std",
|
||||
"bytes/std",
|
||||
"codec/std",
|
||||
"either/std",
|
||||
"either/use_std",
|
||||
"hash256-std-hasher/std",
|
||||
"log/std",
|
||||
"num-traits/std",
|
||||
"rand",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"simple-mermaid",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-arithmetic/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-state-machine/std",
|
||||
"pezsp-std/std",
|
||||
"pezsp-tracing/std",
|
||||
"pezsp-trie/std",
|
||||
"pezsp-weights/std",
|
||||
"tracing/std",
|
||||
"tuplex/std",
|
||||
"binary-merkle-tree/std",
|
||||
"bytes/std",
|
||||
"codec/std",
|
||||
"either/std",
|
||||
"either/use_std",
|
||||
"hash256-std-hasher/std",
|
||||
"log/std",
|
||||
"num-traits/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-arithmetic/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-state-machine/std",
|
||||
"pezsp-std/std",
|
||||
"pezsp-tracing/std",
|
||||
"pezsp-trie/std",
|
||||
"pezsp-weights/std",
|
||||
"rand",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"simple-mermaid",
|
||||
"tracing/std",
|
||||
"tuplex/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"dep:serde",
|
||||
"scale-info/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-arithmetic/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-weights/serde",
|
||||
"dep:serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-arithmetic/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-weights/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
|
||||
@@ -18,26 +18,26 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-keystore = { optional = true, workspace = true }
|
||||
pezsp-runtime = { optional = true, workspace = true }
|
||||
pezsp-staking = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-keystore/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-staking/std",
|
||||
"codec/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-keystore/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-staking/std",
|
||||
"scale-info/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime?/runtime-benchmarks",
|
||||
"pezsp-staking/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime?/runtime-benchmarks",
|
||||
"pezsp-staking/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -28,10 +28,10 @@ pezsp-runtime = { workspace = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-runtime/std",
|
||||
"codec/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"]
|
||||
|
||||
@@ -22,12 +22,12 @@ codec = { workspace = true }
|
||||
hash-db = { workspace = true }
|
||||
log = { workspace = true }
|
||||
parking_lot = { optional = true, workspace = true, default-features = true }
|
||||
rand = { optional = true, workspace = true, default-features = true }
|
||||
smallvec = { workspace = true, default-features = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-externalities = { workspace = true }
|
||||
pezsp-panic-handler = { optional = true, workspace = true, default-features = true }
|
||||
pezsp-trie = { workspace = true }
|
||||
rand = { optional = true, workspace = true, default-features = true }
|
||||
smallvec = { workspace = true, default-features = true }
|
||||
thiserror = { optional = true, workspace = true }
|
||||
tracing = { optional = true, workspace = true, default-features = true }
|
||||
trie-db = { workspace = true }
|
||||
@@ -36,29 +36,29 @@ trie-db = { workspace = true }
|
||||
arbitrary = { features = ["derive"], workspace = true }
|
||||
array-bytes = { workspace = true, default-features = true }
|
||||
assert_matches = { workspace = true }
|
||||
pezsp-runtime = { workspace = true, default-features = true }
|
||||
pretty_assertions = { workspace = true }
|
||||
rand = { workspace = true, default-features = true }
|
||||
pezsp-runtime = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
fuzzing = ["arbitrary"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"hash-db/std",
|
||||
"log/std",
|
||||
"parking_lot",
|
||||
"rand",
|
||||
"pezsp-core/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-panic-handler",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-trie/std",
|
||||
"thiserror",
|
||||
"tracing",
|
||||
"trie-db/std",
|
||||
"codec/std",
|
||||
"hash-db/std",
|
||||
"log/std",
|
||||
"parking_lot",
|
||||
"pezsp-core/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-panic-handler",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-trie/std",
|
||||
"rand",
|
||||
"thiserror",
|
||||
"tracing",
|
||||
"trie-db/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-trie/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-trie/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -18,7 +18,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
pezsp-api = { workspace = true }
|
||||
pezsp-application-crypto = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
@@ -26,6 +25,7 @@ pezsp-crypto-hashing = { workspace = true }
|
||||
pezsp-externalities = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
pezsp-runtime-interface = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
thiserror = { optional = true, workspace = true }
|
||||
|
||||
# ECIES dependencies
|
||||
@@ -34,44 +34,44 @@ curve25519-dalek = { optional = true, workspace = true }
|
||||
ed25519-dalek = { optional = true, workspace = true, default-features = true }
|
||||
hkdf = { optional = true, workspace = true }
|
||||
rand = { features = [
|
||||
"small_rng",
|
||||
"small_rng",
|
||||
], optional = true, workspace = true, default-features = true }
|
||||
sha2 = { optional = true, workspace = true, default-features = true }
|
||||
x25519-dalek = { optional = true, features = [
|
||||
"static_secrets",
|
||||
"static_secrets",
|
||||
], workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"aes-gcm",
|
||||
"aes-gcm?/std",
|
||||
"codec/std",
|
||||
"curve25519-dalek",
|
||||
"ed25519-dalek",
|
||||
"hkdf",
|
||||
"hkdf?/std",
|
||||
"rand",
|
||||
"scale-info/std",
|
||||
"sha2",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-crypto-hashing/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
"pezsp-runtime/std",
|
||||
"thiserror",
|
||||
"x25519-dalek",
|
||||
"aes-gcm",
|
||||
"aes-gcm?/std",
|
||||
"codec/std",
|
||||
"curve25519-dalek",
|
||||
"ed25519-dalek",
|
||||
"hkdf",
|
||||
"hkdf?/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-crypto-hashing/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-runtime-interface/std",
|
||||
"pezsp-runtime/std",
|
||||
"rand",
|
||||
"scale-info/std",
|
||||
"sha2",
|
||||
"thiserror",
|
||||
"x25519-dalek",
|
||||
]
|
||||
serde = [
|
||||
"scale-info/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime-interface/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime-interface/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -19,13 +19,13 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
impl-serde = { optional = true, workspace = true }
|
||||
pezsp-debug-derive = { workspace = true }
|
||||
ref-cast = { workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
pezsp-debug-derive = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["codec/std", "impl-serde/std", "serde/std", "pezsp-debug-derive/std"]
|
||||
std = ["codec/std", "impl-serde/std", "pezsp-debug-derive/std", "serde/std"]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = ["dep:serde", "impl-serde"]
|
||||
|
||||
@@ -18,28 +18,28 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["derive"], optional = true, workspace = true }
|
||||
pezsp-application-crypto = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["derive"], optional = true, workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-runtime/std",
|
||||
"codec/std",
|
||||
"pezsp-application-crypto/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"dep:serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
"dep:serde",
|
||||
"pezsp-application-crypto/serde",
|
||||
"pezsp-core/serde",
|
||||
"pezsp-runtime/serde",
|
||||
]
|
||||
runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"]
|
||||
|
||||
@@ -26,13 +26,13 @@ thiserror = { optional = true, workspace = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-runtime/std",
|
||||
"thiserror",
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-runtime/std",
|
||||
"thiserror",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -27,19 +27,19 @@ regex = { workspace = true, optional = true }
|
||||
tracing = { workspace = true }
|
||||
tracing-core = { workspace = true }
|
||||
tracing-subscriber = { workspace = true, optional = true, features = [
|
||||
"env-filter",
|
||||
"time",
|
||||
"tracing-log",
|
||||
"env-filter",
|
||||
"time",
|
||||
"tracing-log",
|
||||
] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
with-tracing = ["codec/derive", "codec/full"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"regex",
|
||||
"tracing-core/std",
|
||||
"tracing-subscriber",
|
||||
"tracing/std",
|
||||
"with-tracing",
|
||||
"codec/std",
|
||||
"regex",
|
||||
"tracing-core/std",
|
||||
"tracing-subscriber",
|
||||
"tracing/std",
|
||||
"with-tracing",
|
||||
]
|
||||
|
||||
@@ -24,6 +24,6 @@ pezsp-runtime = { workspace = true }
|
||||
default = ["std"]
|
||||
std = ["pezsp-api/std", "pezsp-runtime/std"]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -19,25 +19,25 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
async-trait = { optional = true, workspace = true }
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
pezsp-core = { optional = true, workspace = true }
|
||||
pezsp-inherents = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
pezsp-trie = { optional = true, workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-trie/std",
|
||||
"async-trait",
|
||||
"codec/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-trie/std",
|
||||
"scale-info/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-trie?/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-trie?/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -29,12 +29,12 @@ hashbrown = { workspace = true }
|
||||
memory-db = { workspace = true }
|
||||
nohash-hasher = { optional = true, workspace = true }
|
||||
parking_lot = { optional = true, workspace = true, default-features = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-externalities = { workspace = true }
|
||||
prometheus-endpoint = { optional = true, workspace = true, default-features = true }
|
||||
rand = { optional = true, workspace = true, default-features = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
schnellru = { optional = true, workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-externalities = { workspace = true }
|
||||
thiserror = { optional = true, workspace = true }
|
||||
tracing = { optional = true, workspace = true, default-features = true }
|
||||
trie-db = { workspace = true }
|
||||
@@ -50,23 +50,23 @@ trie-standardmap = { workspace = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"ahash",
|
||||
"codec/std",
|
||||
"foldhash/std",
|
||||
"hash-db/std",
|
||||
"memory-db/std",
|
||||
"nohash-hasher",
|
||||
"parking_lot",
|
||||
"prometheus-endpoint",
|
||||
"rand",
|
||||
"scale-info/std",
|
||||
"schnellru",
|
||||
"pezsp-core/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-runtime/std",
|
||||
"thiserror",
|
||||
"tracing",
|
||||
"trie-db/std",
|
||||
"trie-root/std",
|
||||
"ahash",
|
||||
"codec/std",
|
||||
"foldhash/std",
|
||||
"hash-db/std",
|
||||
"memory-db/std",
|
||||
"nohash-hasher",
|
||||
"parking_lot",
|
||||
"pezsp-core/std",
|
||||
"pezsp-externalities/std",
|
||||
"pezsp-runtime/std",
|
||||
"prometheus-endpoint",
|
||||
"rand",
|
||||
"scale-info/std",
|
||||
"schnellru",
|
||||
"thiserror",
|
||||
"tracing",
|
||||
"trie-db/std",
|
||||
"trie-root/std",
|
||||
]
|
||||
runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"]
|
||||
|
||||
@@ -20,30 +20,30 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
impl-serde = { optional = true, workspace = true }
|
||||
parity-wasm = { optional = true, workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
pezsp-crypto-hashing-proc-macro = { workspace = true, default-features = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
pezsp-std = { workspace = true }
|
||||
pezsp-version-proc-macro = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
|
||||
thiserror = { optional = true, workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"impl-serde/std",
|
||||
"parity-wasm",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-std/std",
|
||||
"thiserror",
|
||||
"codec/std",
|
||||
"impl-serde/std",
|
||||
"parity-wasm",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-std/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"thiserror",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = ["dep:serde", "impl-serde", "pezsp-runtime/serde"]
|
||||
runtime-benchmarks = [
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-version-proc-macro/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-version-proc-macro/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -29,6 +29,6 @@ std = [
|
||||
"anyhow?/std",
|
||||
"codec/std",
|
||||
"log/std",
|
||||
"wasmtime?/std"
|
||||
"wasmtime?/std",
|
||||
]
|
||||
wasmtime = ["anyhow", "dep:wasmtime"]
|
||||
|
||||
@@ -18,22 +18,22 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
bounded-collections = { workspace = true }
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
pezsp-arithmetic = { workspace = true }
|
||||
pezsp-debug-derive = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
schemars = { optional = true, workspace = true }
|
||||
serde = { optional = true, features = ["alloc", "derive"], workspace = true }
|
||||
smallvec = { workspace = true, default-features = true }
|
||||
pezsp-arithmetic = { workspace = true }
|
||||
pezsp-debug-derive = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"bounded-collections/std",
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"pezsp-arithmetic/std",
|
||||
"pezsp-debug-derive/std",
|
||||
"bounded-collections/std",
|
||||
"codec/std",
|
||||
"pezsp-arithmetic/std",
|
||||
"pezsp-debug-derive/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
]
|
||||
# By default some types have documentation, `full-metadata-docs` allows to add documentation to
|
||||
# more types in the metadata.
|
||||
@@ -41,10 +41,10 @@ full-metadata-docs = ["scale-info/docs"]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
serde = [
|
||||
"bounded-collections/serde",
|
||||
"dep:serde",
|
||||
"scale-info/serde",
|
||||
"pezsp-arithmetic/serde",
|
||||
"bounded-collections/serde",
|
||||
"dep:serde",
|
||||
"pezsp-arithmetic/serde",
|
||||
"scale-info/serde",
|
||||
]
|
||||
|
||||
json-schema = ["dep:schemars"]
|
||||
|
||||
Reference in New Issue
Block a user