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:
2025-12-22 16:36:14 +03:00
parent 8acf59c6aa
commit 65b7f5e640
1393 changed files with 17834 additions and 179151 deletions
+10 -5
View File
@@ -39,12 +39,17 @@ pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] }
[features]
default = ["std"]
std = ["log/std", "pezkuwi-sdk/std", "pezsp-runtime/std", "teyrchain-template-runtime/std"]
std = [
"log/std",
"pezkuwi-sdk/std",
"pezsp-runtime/std",
"teyrchain-template-runtime/std",
]
runtime-benchmarks = [
"pezkuwi-sdk/runtime-benchmarks",
"teyrchain-template-runtime/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
"teyrchain-template-runtime/runtime-benchmarks",
]
try-runtime = [
"pezkuwi-sdk/try-runtime",
"teyrchain-template-runtime/try-runtime",
"pezkuwi-sdk/try-runtime",
"teyrchain-template-runtime/try-runtime",
]
+1 -1
View File
@@ -1,7 +1,6 @@
use pezkuwi_sdk::*;
use log::info;
use pezsp_runtime;
use pezcumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions;
use pezframe_benchmarking_cli::{BenchmarkCmd, BIZINIKIWI_REFERENCE_HARDWARE};
use pezsc_cli::{
@@ -9,6 +8,7 @@ use pezsc_cli::{
KeystoreParams, NetworkParams, Result, RpcEndpoint, SharedParams,
};
use pezsc_service::config::{BasePath, PrometheusConfig};
use pezsp_runtime;
use teyrchain_template_runtime::Block;
use crate::{
+3 -3
View File
@@ -33,7 +33,9 @@ use pezcumulus_relay_chain_interface::{OverseerHandle, RelayChainInterface};
// Bizinikiwi Imports
use pezframe_benchmarking_cli::BIZINIKIWI_REFERENCE_HARDWARE;
use pezkuwi_sdk::pezsc_network::PeerId;
use pezkuwi_sdk::{
pezsc_network::PeerId, pezsp_api::ProvideRuntimeApi, pezsp_keystore::KeystorePtr,
};
use pezsc_client_api::Backend;
use pezsc_consensus::ImportQueue;
use pezsc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
@@ -41,8 +43,6 @@ use pezsc_network::{NetworkBackend, NetworkBlock};
use pezsc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
use pezsc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle};
use pezsc_transaction_pool_api::OffchainTransactionPoolFactory;
use pezkuwi_sdk::pezsp_api::ProvideRuntimeApi;
use pezkuwi_sdk::pezsp_keystore::KeystorePtr;
use prometheus_endpoint::Registry;
#[docify::export(wasm_executor)]
@@ -21,8 +21,8 @@ codec = { features = ["derive"], workspace = true }
scale-info = { features = ["derive"], workspace = true }
frame = { workspace = true, default-features = false, features = [
"experimental",
"runtime",
"experimental",
"runtime",
] }
[features]
+68 -62
View File
@@ -23,7 +23,7 @@ hex-literal = { optional = true, workspace = true, default-features = true }
log = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
serde_json = { workspace = true, default-features = false, features = [
"alloc",
"alloc",
] }
smallvec = { workspace = true, default-features = true }
@@ -34,86 +34,92 @@ pezpallet-teyrchain-template = { workspace = true }
pezsp-runtime = { workspace = true }
pezkuwi-sdk = { workspace = true, default-features = false, features = [
# Primitives needed for runtime
"pezsp-core",
"pezsp-consensus-aura",
"pezsp-version",
"pezsp-genesis-builder",
"pezsp-keyring",
"pezsp-api",
"pezsp-block-builder",
"pezsp-inherents",
"pezsp-transaction-pool",
"pezsp-offchain",
"pezsp-session",
"pezframe-support",
"pezframe-system",
"pezframe-executive",
# Primitives needed for runtime
"pezframe-executive",
"pezframe-support",
"pezframe-system",
"pezsp-api",
"pezsp-block-builder",
"pezsp-consensus-aura",
"pezsp-core",
"pezsp-genesis-builder",
"pezsp-inherents",
"pezsp-keyring",
"pezsp-offchain",
"pezsp-session",
"pezsp-transaction-pool",
"pezsp-version",
"pezpallet-aura",
"pezpallet-authorship",
"pezpallet-balances",
"pezpallet-message-queue",
"pezpallet-session",
"pezpallet-sudo",
"pezpallet-timestamp",
"pezpallet-transaction-payment",
"pezpallet-transaction-payment-rpc-runtime-api",
"pezpallet-aura",
"pezpallet-authorship",
"pezpallet-balances",
"pezpallet-message-queue",
"pezpallet-session",
"pezpallet-sudo",
"pezpallet-timestamp",
"pezpallet-transaction-payment",
"pezpallet-transaction-payment-rpc-runtime-api",
"pezpallet-xcm",
"pezkuwi-runtime-common",
"pezkuwi-teyrchain-primitives",
"pezstaging-xcm",
"pezstaging-xcm-builder",
"pezstaging-xcm-executor",
"pezkuwi-runtime-common",
"pezkuwi-teyrchain-primitives",
"pezpallet-xcm",
"pezstaging-xcm",
"pezstaging-xcm-builder",
"pezstaging-xcm-executor",
"pezcumulus-pezpallet-aura-ext",
"pezcumulus-pezpallet-session-benchmarking",
"pezcumulus-pezpallet-weight-reclaim",
"pezcumulus-pezpallet-xcm",
"pezcumulus-pezpallet-xcmp-queue",
"pezcumulus-primitives-aura",
"pezcumulus-primitives-core",
"pezcumulus-primitives-utility",
"pezpallet-collator-selection",
"pezstaging-teyrchain-info",
"teyrchains-common",
"pezcumulus-pezpallet-aura-ext",
"pezcumulus-pezpallet-session-benchmarking",
"pezcumulus-pezpallet-weight-reclaim",
"pezcumulus-pezpallet-xcm",
"pezcumulus-pezpallet-xcmp-queue",
"pezcumulus-primitives-aura",
"pezcumulus-primitives-core",
"pezcumulus-primitives-utility",
"pezpallet-collator-selection",
"pezstaging-teyrchain-info",
"teyrchains-common",
"runtime",
"runtime",
] }
# Pezcumulus
pezcumulus-pezpallet-teyrchain-system = { workspace = true }
# Try runtime
pezframe-try-runtime = { optional = true, workspace = true }
[build-dependencies]
docify = { workspace = true }
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
docify = { workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"log/std",
"pezpallet-teyrchain-template/std",
"pezkuwi-sdk/std",
"pezsp-runtime/std",
"scale-info/std",
"serde_json/std",
"bizinikiwi-wasm-builder",
"bizinikiwi-wasm-builder",
"codec/std",
"log/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezframe-try-runtime?/std",
"pezkuwi-sdk/std",
"pezpallet-teyrchain-template/std",
"pezsp-runtime/std",
"scale-info/std",
"serde_json/std",
]
runtime-benchmarks = [
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"hex-literal",
"pezpallet-teyrchain-template/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"hex-literal",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
"pezpallet-teyrchain-template/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
try-runtime = [
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezpallet-teyrchain-template/try-runtime",
"pezkuwi-sdk/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezframe-try-runtime",
"pezframe-try-runtime/try-runtime",
"pezkuwi-sdk/try-runtime",
"pezpallet-teyrchain-template/try-runtime",
]
# Enable the metadata hash generation.
@@ -70,7 +70,9 @@ fn local_testnet_genesis() -> Value {
(Sr25519Keyring::Alice.to_account_id(), Sr25519Keyring::Alice.public().into()),
(Sr25519Keyring::Bob.to_account_id(), Sr25519Keyring::Bob.public().into()),
],
Sr25519Keyring::well_known().map(|k: Sr25519Keyring| k.to_account_id()).collect(),
Sr25519Keyring::well_known()
.map(|k: Sr25519Keyring| k.to_account_id())
.collect(),
Sr25519Keyring::Alice.to_account_id(),
TEYRCHAIN_ID.into(),
)
@@ -83,7 +85,9 @@ fn development_config_genesis() -> Value {
(Sr25519Keyring::Alice.to_account_id(), Sr25519Keyring::Alice.public().into()),
(Sr25519Keyring::Bob.to_account_id(), Sr25519Keyring::Bob.public().into()),
],
Sr25519Keyring::well_known().map(|k: Sr25519Keyring| k.to_account_id()).collect(),
Sr25519Keyring::well_known()
.map(|k: Sr25519Keyring| k.to_account_id())
.collect(),
Sr25519Keyring::Alice.to_account_id(),
TEYRCHAIN_ID.into(),
)