mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 11:01:01 +00:00
bdf186870d
This PR does not make any functional changes to the code. Rather, it restructures the dependency graph. Before this PR, the crate `polkadot-parachain-primitives` depended directly on the crate `frame-support`. This is wrong in principal because a parachain does not necessarily have anything to do with frame. This dependency was only for the `Weight` type which was just a re-export from `sp-weights` anyway. So this PR changes the dependency to be directly on the much lighter `sp-weights`. --------- Co-authored-by: Joshy Orndorff <git-user-email.h0ly5@simplelogin.com> Co-authored-by: command-bot <>
41 lines
1.6 KiB
TOML
41 lines
1.6 KiB
TOML
[package]
|
|
name = "polkadot-parachain-primitives"
|
|
description = "Types and utilities for creating and working with parachains"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
version = "1.0.0"
|
|
|
|
[dependencies]
|
|
# note: special care is taken to avoid inclusion of `sp-io` externals when compiling
|
|
# this crate for WASM. This is critical to avoid forcing all parachain WASM into implementing
|
|
# various unnecessary Substrate-specific endpoints.
|
|
parity-scale-codec = { version = "3.6.1", default-features = false, features = [ "derive" ] }
|
|
scale-info = { version = "2.10.0", default-features = false, features = ["derive", "serde"] }
|
|
sp-std = { path = "../../substrate/primitives/std", default-features = false }
|
|
sp-runtime = { path = "../../substrate/primitives/runtime", default-features = false, features = ["serde"] }
|
|
sp-core = { path = "../../substrate/primitives/core", default-features = false, features = ["serde"] }
|
|
sp-weights = { path = "../../substrate/primitives/weights", default-features = false }
|
|
polkadot-core-primitives = { path = "../core-primitives", default-features = false }
|
|
derive_more = "0.99.11"
|
|
bounded-collections = { version = "0.1.8", default-features = false, features = ["serde"] }
|
|
|
|
# all optional crates.
|
|
serde = { version = "1.0.188", default-features = false, features = ["derive", "alloc"] }
|
|
|
|
[features]
|
|
default = [ "std" ]
|
|
wasm-api = []
|
|
std = [
|
|
"bounded-collections/std",
|
|
"parity-scale-codec/std",
|
|
"polkadot-core-primitives/std",
|
|
"scale-info/std",
|
|
"serde/std",
|
|
"sp-core/std",
|
|
"sp-runtime/std",
|
|
"sp-std/std",
|
|
"sp-weights/std",
|
|
]
|
|
runtime-benchmarks = [ "sp-runtime/runtime-benchmarks" ]
|