mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 11:57:56 +00:00
6947b334b4
* wasm-builder: Enforce `runtime_version` wasm section This pr changes the `wasm-builder` to enforce the `runtime_version` wasm section. This wasm section is being created by the `sp_version::runtime_version` attribute macro. This attribute macro now exists since quite some time and `runtime_version` also is the only way for parachains to support reading the `RuntimeVersion` from the runtime. \# Disabling the check By default the `WasmBuilder` will now check for this wasm section and if not found, exit with an error. However, there are situations where you may want to disable this check (like for tests). In this case there exists the `disable_runtime_version_section_check` function. ``` WasmBuilder::new() ... ... ... .disable_runtime_version_section_check() .build() ``` By using this method you get back the old behavior. * Review comment * Fix * Fix issue with `enum-as-inner`
86 lines
4.4 KiB
TOML
86 lines
4.4 KiB
TOML
[package]
|
|
name = "node-template"
|
|
version = "4.0.0-dev"
|
|
description = "A fresh FRAME-based Substrate node, ready for hacking."
|
|
authors = ["Substrate DevHub <https://github.com/substrate-developer-hub>"]
|
|
homepage = "https://substrate.io/"
|
|
edition = "2021"
|
|
license = "MIT-0"
|
|
publish = false
|
|
repository = "https://github.com/substrate-developer-hub/substrate-node-template/"
|
|
build = "build.rs"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[[bin]]
|
|
name = "node-template"
|
|
|
|
[dependencies]
|
|
clap = { version = "4.2.5", features = ["derive"] }
|
|
futures = { version = "0.3.21", features = ["thread-pool"]}
|
|
|
|
sc-cli = { version = "0.10.0-dev", path = "../../../client/cli" }
|
|
sp-core = { version = "7.0.0", path = "../../../primitives/core" }
|
|
sc-executor = { version = "0.10.0-dev", path = "../../../client/executor" }
|
|
sc-network = { version = "0.10.0-dev", path = "../../../client/network" }
|
|
sc-service = { version = "0.10.0-dev", path = "../../../client/service" }
|
|
sc-telemetry = { version = "4.0.0-dev", path = "../../../client/telemetry" }
|
|
sc-keystore = { version = "4.0.0-dev", path = "../../../client/keystore" }
|
|
sc-transaction-pool = { version = "4.0.0-dev", path = "../../../client/transaction-pool" }
|
|
sc-transaction-pool-api = { version = "4.0.0-dev", path = "../../../client/transaction-pool/api" }
|
|
sc-statement-store = { version = "4.0.0-dev", path = "../../../client/statement-store" }
|
|
sc-consensus-aura = { version = "0.10.0-dev", path = "../../../client/consensus/aura" }
|
|
sp-consensus-aura = { version = "0.10.0-dev", path = "../../../primitives/consensus/aura" }
|
|
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
|
|
sc-consensus = { version = "0.10.0-dev", path = "../../../client/consensus/common" }
|
|
sc-consensus-grandpa = { version = "0.10.0-dev", path = "../../../client/consensus/grandpa" }
|
|
sp-consensus-grandpa = { version = "4.0.0-dev", path = "../../../primitives/consensus/grandpa" }
|
|
sc-client-api = { version = "4.0.0-dev", path = "../../../client/api" }
|
|
sp-runtime = { version = "7.0.0", path = "../../../primitives/runtime" }
|
|
sp-io = { version = "7.0.0", path = "../../../primitives/io" }
|
|
sp-timestamp = { version = "4.0.0-dev", path = "../../../primitives/timestamp" }
|
|
sp-inherents = { version = "4.0.0-dev", path = "../../../primitives/inherents" }
|
|
sp-keyring = { version = "7.0.0", path = "../../../primitives/keyring" }
|
|
frame-system = { version = "4.0.0-dev", path = "../../../frame/system" }
|
|
pallet-transaction-payment = { version = "4.0.0-dev", default-features = false, path = "../../../frame/transaction-payment" }
|
|
|
|
# These dependencies are used for the node template's RPCs
|
|
jsonrpsee = { version = "0.16.2", features = ["server"] }
|
|
sc-rpc = { version = "4.0.0-dev", path = "../../../client/rpc" }
|
|
sp-api = { version = "4.0.0-dev", path = "../../../primitives/api" }
|
|
sc-rpc-api = { version = "0.10.0-dev", path = "../../../client/rpc-api" }
|
|
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
|
|
sp-block-builder = { version = "4.0.0-dev", path = "../../../primitives/block-builder" }
|
|
sc-basic-authorship = { version = "0.10.0-dev", path = "../../../client/basic-authorship" }
|
|
substrate-frame-rpc-system = { version = "4.0.0-dev", path = "../../../utils/frame/rpc/system" }
|
|
pallet-transaction-payment-rpc = { version = "4.0.0-dev", path = "../../../frame/transaction-payment/rpc/" }
|
|
|
|
# These dependencies are used for runtime benchmarking
|
|
frame-benchmarking = { version = "4.0.0-dev", path = "../../../frame/benchmarking" }
|
|
frame-benchmarking-cli = { version = "4.0.0-dev", path = "../../../utils/frame/benchmarking-cli" }
|
|
|
|
# Local Dependencies
|
|
node-template-runtime = { version = "4.0.0-dev", path = "../runtime" }
|
|
|
|
# CLI-specific dependencies
|
|
try-runtime-cli = { version = "0.10.0-dev", optional = true, path = "../../../utils/frame/try-runtime/cli" }
|
|
|
|
# Workaround until https://github.com/bluejekyll/enum-as-inner/issues/98 is fixed.
|
|
enum-as-inner = "=0.5.1"
|
|
|
|
[build-dependencies]
|
|
substrate-build-script-utils = { version = "3.0.0", path = "../../../utils/build-script-utils" }
|
|
|
|
[features]
|
|
default = []
|
|
# Dependencies that are only required if runtime benchmarking should be build.
|
|
runtime-benchmarks = [
|
|
"node-template-runtime/runtime-benchmarks",
|
|
"frame-benchmarking/runtime-benchmarks",
|
|
"frame-benchmarking-cli/runtime-benchmarks",
|
|
]
|
|
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
|
|
# in the near future.
|
|
try-runtime = ["node-template-runtime/try-runtime", "try-runtime-cli/try-runtime"]
|