fix(ci): resolve all quick-checks failures
- Remove missing cli crate from workspace members - Fix TOML array syntax errors in pvf and benchmarking-cli Cargo.toml - Fix Rust import ordering with cargo fmt - Fix feature propagation with zepter (try-runtime, runtime-benchmarks, std)
This commit is contained in:
@@ -23,11 +23,7 @@ array-bytes = { workspace = true, default-features = true }
|
||||
pezsp-core = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
debug = ["array-bytes", "log"]
|
||||
default = ["debug", "std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"hash-db/std",
|
||||
"log/std",
|
||||
]
|
||||
debug = [ "array-bytes", "log" ]
|
||||
default = [ "debug", "std" ]
|
||||
std = [ "codec/std", "hash-db/std", "log/std" ]
|
||||
runtime-benchmarks = []
|
||||
|
||||
@@ -416,7 +416,7 @@ where
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use pezsp_core::{H256, KeccakHasher};
|
||||
use pezsp_core::{KeccakHasher, H256};
|
||||
|
||||
#[test]
|
||||
fn should_generate_empty_root() {
|
||||
|
||||
@@ -21,7 +21,7 @@ bip39 = { workspace = true, default-features = true }
|
||||
rustc-hex = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"hmac/std",
|
||||
"pbkdf2/std",
|
||||
|
||||
@@ -125,6 +125,6 @@ runtime-benchmarks = [
|
||||
"pezsp-transaction-pool/runtime-benchmarks",
|
||||
"pezsp-trie/runtime-benchmarks",
|
||||
"pezsp-version/runtime-benchmarks",
|
||||
# "zagros-runtime/runtime-benchmarks",
|
||||
# "zagros-runtime/runtime-benchmarks", # Not a dependency of this crate
|
||||
]
|
||||
rocksdb = ["pezsc-cli/rocksdb", "pezsc-client-db/rocksdb"]
|
||||
|
||||
@@ -26,7 +26,7 @@ pezsp-trie = { workspace = true }
|
||||
[build-dependencies]
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
no_std = []
|
||||
std = [
|
||||
"codec/std",
|
||||
|
||||
@@ -39,7 +39,8 @@ pub const WASM_BINARY: Option<&[u8]> = None;
|
||||
pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
|
||||
"#;
|
||||
|
||||
let mut file = std::fs::File::create(&wasm_binary_path).expect("Failed to create wasm_binary.rs");
|
||||
let mut file =
|
||||
std::fs::File::create(&wasm_binary_path).expect("Failed to create wasm_binary.rs");
|
||||
file.write_all(content.as_bytes()).expect("Failed to write wasm_binary.rs");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user