FAZ 1 Complete: Workspace compile fixes, warning cleanup, version bumps

- Fixed is_using_frame_crate() macro to check for pezframe/pezkuwi_sdk
- Removed disable_pezframe_system_supertrait_check temporary bypasses
- Feature-gated storage-benchmark and teyrchain-benchmarks code
- Fixed dead_code warnings with underscore prefix (_Header)
- Removed unused imports and shadowing use statements
- Version bumps: procedural-tools 10.0.1, benchmarking-cli 32.0.1,
  docs 0.0.2, minimal-runtime 0.0.1, yet-another-teyrchain 0.6.1, umbrella 0.1.2
- Updated MAINNET_ROADMAP.md with FAZ 1 completion status
This commit is contained in:
2026-01-02 11:41:09 +03:00
parent 76ba7dbf2f
commit cf463fe8ee
520 changed files with 4113 additions and 4524 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ xcm-builder = { workspace = true }
[dev-dependencies]
array-bytes = { workspace = true, default-features = true }
assert_matches = { workspace = true }
pezpallet-contracts-fixtures = { workspace = true }
# pezpallet-contracts-fixtures = { workspace = true } # Commented for crates.io publish (test-only crate)
pretty_assertions = { workspace = true }
wat = { workspace = true }
@@ -102,7 +102,7 @@ runtime-benchmarks = [
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-contracts-fixtures/runtime-benchmarks",
# "pezpallet-contracts-fixtures/runtime-benchmarks", # Commented for crates.io publish
"pezpallet-insecure-randomness-collective-flip/runtime-benchmarks",
"pezpallet-proxy/runtime-benchmarks",
"pezpallet-timestamp/runtime-benchmarks",
@@ -1,6 +1,6 @@
[package]
name = "pezpallet-contracts-fixtures"
publish = false
publish = true
version = "1.0.0"
authors.workspace = true
edition.workspace = true
@@ -9,6 +9,7 @@ description = "Fixtures for testing contracts pezpallet."
documentation.workspace = true
repository = { workspace = true }
homepage = { workspace = true }
include = ["build.rs", "contracts/**", "src/**", "Cargo.toml"]
[lints]
workspace = true
@@ -120,7 +120,29 @@ fn create_cargo_toml<'a>(
output_dir: &Path,
) -> Result<()> {
let root_toml: toml::Value = toml::from_str(&fs::read_to_string(root_cargo_toml)?)?;
let mut cargo_toml: toml::Value = toml::from_str(include_str!("./build/Cargo.toml"))?;
// Template embedded to avoid include_str! path issues during crates.io publish
const CARGO_TOML_TEMPLATE: &str = r#"[package]
name = "contracts"
version = "0.6.3"
edition = "2021"
description = "Pezkuwi SDK component: contracts"
repository = "https://github.com/pezkuwichain/pezkuwi-sdk"
homepage = "https://pezkuwi.io"
authors = ["Pezkuwi Chain <admin@pezkuwi.io>"]
license = "Apache-2.0"
[[bin]]
[dependencies]
common = { package = 'pezpallet-contracts-fixtures-common', path = "" }
polkavm-derive = { version = "" }
uapi = { package = 'pezpallet-contracts-uapi', path = "", default-features = false }
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
"#;
let mut cargo_toml: toml::Value = toml::from_str(CARGO_TOML_TEMPLATE)?;
let mut set_dep = |name, path| -> Result<()> {
cargo_toml["dependencies"][name]["path"] = toml::Value::String(
fixtures_dir.join(path).canonicalize()?.to_str().unwrap().to_string(),
@@ -270,7 +292,13 @@ fn main() -> Result<()> {
let fixtures_dir: PathBuf = env::var("CARGO_MANIFEST_DIR")?.into();
let contracts_dir = fixtures_dir.join("contracts");
let out_dir: PathBuf = env::var("OUT_DIR")?.into();
let workspace_root = find_workspace_root(&fixtures_dir).expect("workspace root exists; qed");
// During crates.io package verification, workspace root may not exist.
// In that case, skip contract compilation (contracts are pre-compiled in src/).
let Some(workspace_root) = find_workspace_root(&fixtures_dir) else {
eprintln!("Note: Workspace root not found, skipping contract compilation (expected during crates.io verification)");
return Ok(());
};
let root_cargo_toml = workspace_root.join("Cargo.toml");
let entries = collect_entries(&contracts_dir, &out_dir);