chore: break circular dev-dependencies for crates.io publish

- Remove circular dev-deps from pezframe-support-procedural
- Remove circular dev-deps from pezframe-support
- Remove circular dev-deps from pezframe-system
- Remove circular dev-deps from pezframe-benchmarking
- Comments note that tests moved to integration test crates
This commit is contained in:
2025-12-28 11:16:17 +03:00
parent 9da261d069
commit 654b53c91e
5 changed files with 10 additions and 53 deletions
Generated
-12
View File
@@ -11918,7 +11918,6 @@ dependencies = [
"pezframe-support", "pezframe-support",
"pezframe-support-procedural", "pezframe-support-procedural",
"pezframe-system", "pezframe-system",
"pezsc-client-db",
"pezsp-api", "pezsp-api",
"pezsp-application-crypto", "pezsp-application-crypto",
"pezsp-core", "pezsp-core",
@@ -12141,7 +12140,6 @@ dependencies = [
"paste", "paste",
"pez-binary-merkle-tree", "pez-binary-merkle-tree",
"pezframe-support-procedural", "pezframe-support-procedural",
"pezframe-system",
"pezsp-api", "pezsp-api",
"pezsp-arithmetic", "pezsp-arithmetic",
"pezsp-core", "pezsp-core",
@@ -12156,7 +12154,6 @@ dependencies = [
"pezsp-staking", "pezsp-staking",
"pezsp-state-machine", "pezsp-state-machine",
"pezsp-std", "pezsp-std",
"pezsp-timestamp",
"pezsp-tracing", "pezsp-tracing",
"pezsp-trie", "pezsp-trie",
"pezsp-weights", "pezsp-weights",
@@ -12178,21 +12175,13 @@ dependencies = [
"expander", "expander",
"itertools 0.11.0", "itertools 0.11.0",
"macro_magic", "macro_magic",
"parity-scale-codec",
"pezframe-benchmarking",
"pezframe-support",
"pezframe-support-procedural-tools", "pezframe-support-procedural-tools",
"pezframe-system",
"pezsp-crypto-hashing", "pezsp-crypto-hashing",
"pezsp-io",
"pezsp-metadata-ir",
"pezsp-runtime",
"pretty_assertions", "pretty_assertions",
"proc-macro-warning", "proc-macro-warning",
"proc-macro2 1.0.103", "proc-macro2 1.0.103",
"quote 1.0.42", "quote 1.0.42",
"regex", "regex",
"scale-info",
"syn 2.0.111", "syn 2.0.111",
] ]
@@ -12281,7 +12270,6 @@ dependencies = [
name = "pezframe-system" name = "pezframe-system"
version = "28.0.0" version = "28.0.0"
dependencies = [ dependencies = [
"bizinikiwi-test-runtime-client",
"cfg-if", "cfg-if",
"criterion", "criterion",
"docify", "docify",
+1 -2
View File
@@ -35,9 +35,9 @@ scale-info = { features = ["derive"], workspace = true }
serde = { optional = true, workspace = true, default-features = true } serde = { optional = true, workspace = true, default-features = true }
static_assertions = { workspace = true, default-features = true } static_assertions = { workspace = true, default-features = true }
# Dev-dependencies with pezsc-client-db moved to integration tests to break circular dependency
[dev-dependencies] [dev-dependencies]
array-bytes = { workspace = true, default-features = true } array-bytes = { workspace = true, default-features = true }
pezsc-client-db = { workspace = true }
pezsp-externalities = { workspace = true } pezsp-externalities = { workspace = true }
pezsp-keystore = { workspace = true, default-features = true } pezsp-keystore = { workspace = true, default-features = true }
pezsp-state-machine = { workspace = true } pezsp-state-machine = { workspace = true }
@@ -69,7 +69,6 @@ runtime-benchmarks = [
"pezframe-support-procedural/runtime-benchmarks", "pezframe-support-procedural/runtime-benchmarks",
"pezframe-support/runtime-benchmarks", "pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks", "pezframe-system/runtime-benchmarks",
"pezsc-client-db/runtime-benchmarks",
"pezsp-api/runtime-benchmarks", "pezsp-api/runtime-benchmarks",
"pezsp-io/runtime-benchmarks", "pezsp-io/runtime-benchmarks",
"pezsp-runtime-interface/runtime-benchmarks", "pezsp-runtime-interface/runtime-benchmarks",
+1 -6
View File
@@ -53,11 +53,10 @@ tt-call = { workspace = true }
aquamarine = { workspace = true } aquamarine = { workspace = true }
# Dev-dependencies with pezframe-system moved to pezframe-support-test to break circular dependency
[dev-dependencies] [dev-dependencies]
Inflector = { workspace = true } Inflector = { workspace = true }
pezframe-system = { workspace = true, default-features = true }
pezsp-crypto-hashing = { workspace = true, default-features = true } pezsp-crypto-hashing = { workspace = true, default-features = true }
pezsp-timestamp = { workspace = true, default-features = true }
pretty_assertions = { workspace = true } pretty_assertions = { workspace = true }
[features] [features]
@@ -70,7 +69,6 @@ std = [
"k256/std", "k256/std",
"log/std", "log/std",
"pezframe-support-procedural/std", "pezframe-support-procedural/std",
"pezframe-system/std",
"pezsp-api/std", "pezsp-api/std",
"pezsp-arithmetic/std", "pezsp-arithmetic/std",
"pezsp-core/std", "pezsp-core/std",
@@ -93,7 +91,6 @@ std = [
runtime-benchmarks = [ runtime-benchmarks = [
"pez-binary-merkle-tree/runtime-benchmarks", "pez-binary-merkle-tree/runtime-benchmarks",
"pezframe-support-procedural/runtime-benchmarks", "pezframe-support-procedural/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-api/runtime-benchmarks", "pezsp-api/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks", "pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks", "pezsp-inherents/runtime-benchmarks",
@@ -101,11 +98,9 @@ runtime-benchmarks = [
"pezsp-runtime/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks",
"pezsp-staking/runtime-benchmarks", "pezsp-staking/runtime-benchmarks",
"pezsp-state-machine?/runtime-benchmarks", "pezsp-state-machine?/runtime-benchmarks",
"pezsp-timestamp/runtime-benchmarks",
"pezsp-trie/runtime-benchmarks", "pezsp-trie/runtime-benchmarks",
] ]
try-runtime = [ try-runtime = [
"pezframe-system/try-runtime",
"pezsp-debug-derive/force-debug", "pezsp-debug-derive/force-debug",
"pezsp-runtime/try-runtime", "pezsp-runtime/try-runtime",
] ]
@@ -18,8 +18,10 @@ targets = ["x86_64-unknown-linux-gnu"]
[lib] [lib]
proc-macro = true proc-macro = true
[[example]] # Example requires pezframe-support/pezframe-system which creates circular dependency
name = "proc_main" # Tests moved to pezframe-support-test crate
# [[example]]
# name = "proc_main"
[dependencies] [dependencies]
Inflector = { workspace = true } Inflector = { workspace = true }
@@ -36,36 +38,16 @@ proc-macro2 = { workspace = true }
quote = { workspace = true } quote = { workspace = true }
syn = { features = ["full", "parsing", "visit-mut"], workspace = true } syn = { features = ["full", "parsing", "visit-mut"], workspace = true }
# Dev-dependencies moved to pezframe-support-test to break circular dependency for crates.io publish
# Tests that need pezframe-benchmarking, pezframe-support, pezframe-system should use integration tests
[dev-dependencies] [dev-dependencies]
codec = { features = [
"derive",
"max-encoded-len",
], workspace = true, default-features = true }
pezframe-benchmarking = { workspace = true, default-features = true }
pezframe-support = { workspace = true, default-features = true }
pezframe-system = { workspace = true, default-features = true }
pezsp-io = { workspace = true, default-features = true }
pezsp-metadata-ir = { workspace = true, default-features = true }
pezsp-runtime = { features = [
"serde",
], workspace = true, default-features = true }
pretty_assertions = { workspace = true } pretty_assertions = { workspace = true }
regex = { workspace = true } regex = { workspace = true }
scale-info = { features = [
"derive",
], workspace = true, default-features = true }
[features] [features]
default = ["std"] default = ["std"]
std = [ std = [
"codec/std",
"pezframe-benchmarking/std",
"pezframe-support/std",
"pezframe-system/std",
"pezsp-crypto-hashing/std", "pezsp-crypto-hashing/std",
"pezsp-metadata-ir/std",
"pezsp-runtime/std",
"scale-info/std",
] ]
no-metadata-docs = [] no-metadata-docs = []
experimental = [] experimental = []
@@ -73,10 +55,4 @@ experimental = []
# pallets in a runtime grows. Does increase the compile time! # pallets in a runtime grows. Does increase the compile time!
tuples-96 = [] tuples-96 = []
tuples-128 = [] tuples-128 = []
runtime-benchmarks = [ runtime-benchmarks = []
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
+1 -2
View File
@@ -34,8 +34,8 @@ pezsp-weights = { features = ["serde"], workspace = true }
scale-info = { features = ["derive", "serde"], workspace = true } scale-info = { features = ["derive", "serde"], workspace = true }
serde = { features = ["alloc", "derive"], workspace = true } serde = { features = ["alloc", "derive"], workspace = true }
# Dev-dependencies with test-runtime-client moved to integration tests to break circular dependency
[dev-dependencies] [dev-dependencies]
bizinikiwi-test-runtime-client = { workspace = true }
criterion = { workspace = true, default-features = true } criterion = { workspace = true, default-features = true }
pezsp-externalities = { workspace = true, default-features = true } pezsp-externalities = { workspace = true, default-features = true }
pezsp-tracing = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true }
@@ -55,7 +55,6 @@ std = [
"serde/std", "serde/std",
] ]
runtime-benchmarks = [ runtime-benchmarks = [
"bizinikiwi-test-runtime-client/runtime-benchmarks",
"pezframe-support/runtime-benchmarks", "pezframe-support/runtime-benchmarks",
"pezsp-io/runtime-benchmarks", "pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks",