Files
pezkuwi-subxt/templates/solochain/node/Cargo.toml
T
Kian Paimani 4c810609d6 Repot all templates into a single directory (#3460)
The first step towards
https://github.com/paritytech/polkadot-sdk/issues/3155

Brings all templates under the following structure

```
templates
|   parachain
|   |   polkadot-launch
|   |   runtime              --> parachain-template-runtime
|   |   pallets              --> pallet-parachain-template
|   |   node                 --> parachain-template-node
|   minimal
|   |   runtime              --> minimal-template-runtime
|   |   pallets              --> pallet-minimal-template
|   |   node                 --> minimal-template-node
|   solochain
|   |   runtime              --> solochain-template-runtime
|   |   pallets              --> pallet-template (the naming is not consistent here)
|   |   node                 --> solochain-template-node
```

The only note-worthy changes in this PR are: 

- More `Cargo.toml` fields are forwarded to use the one from the
workspace.
- parachain template now has weights and benchmarks
- adds a shell pallet to the minimal template
- remove a few unused deps 


A list of possible follow-ups: 

- [ ] Unify READMEs, create a parent README for all
- [ ] remove references to `docs.substrate.io` in templates
- [ ] make all templates use `#[derive_impl]`
- [ ] update and unify all licenses
- [ ] Remove polkadot launch, use
https://github.com/paritytech/polkadot-sdk/blob/35349df993ea2e7c4769914ef5d199e787b23d4c/cumulus/zombienet/examples/small_network.toml
instead.
2024-03-05 11:40:37 +00:00

93 lines
3.8 KiB
TOML

[package]
name = "solochain-template-node"
description = "A solochain node template built with Substrate, part of Polkadot Sdk."
version = "0.0.0"
license = "MIT-0"
authors.workspace = true
homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
build = "build.rs"
[lints]
workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
clap = { version = "4.5.1", features = ["derive"] }
futures = { version = "0.3.21", features = ["thread-pool"] }
serde_json = { workspace = true, default-features = true }
jsonrpsee = { version = "0.22", features = ["server"] }
# substrate client
sc-cli = { path = "../../../substrate/client/cli" }
sp-core = { path = "../../../substrate/primitives/core" }
sc-executor = { path = "../../../substrate/client/executor" }
sc-network = { path = "../../../substrate/client/network" }
sc-service = { path = "../../../substrate/client/service" }
sc-telemetry = { path = "../../../substrate/client/telemetry" }
sc-transaction-pool = { path = "../../../substrate/client/transaction-pool" }
sc-transaction-pool-api = { path = "../../../substrate/client/transaction-pool/api" }
sc-offchain = { path = "../../../substrate/client/offchain" }
sc-consensus-aura = { path = "../../../substrate/client/consensus/aura" }
sp-consensus-aura = { path = "../../../substrate/primitives/consensus/aura" }
sc-consensus = { path = "../../../substrate/client/consensus/common" }
sc-consensus-grandpa = { path = "../../../substrate/client/consensus/grandpa" }
sp-consensus-grandpa = { path = "../../../substrate/primitives/consensus/grandpa" }
sc-client-api = { path = "../../../substrate/client/api" }
sc-rpc-api = { path = "../../../substrate/client/rpc-api" }
sc-basic-authorship = { path = "../../../substrate/client/basic-authorship" }
# substrate primitives
sp-runtime = { path = "../../../substrate/primitives/runtime" }
sp-io = { path = "../../../substrate/primitives/io" }
sp-timestamp = { path = "../../../substrate/primitives/timestamp" }
sp-inherents = { path = "../../../substrate/primitives/inherents" }
sp-keyring = { path = "../../../substrate/primitives/keyring" }
sp-api = { path = "../../../substrate/primitives/api" }
sp-blockchain = { path = "../../../substrate/primitives/blockchain" }
sp-block-builder = { path = "../../../substrate/primitives/block-builder" }
# frame and pallets
frame-system = { path = "../../../substrate/frame/system" }
pallet-transaction-payment = { path = "../../../substrate/frame/transaction-payment", default-features = false }
pallet-transaction-payment-rpc = { path = "../../../substrate/frame/transaction-payment/rpc" }
substrate-frame-rpc-system = { path = "../../../substrate/utils/frame/rpc/system" }
# These dependencies are used for runtime benchmarking
frame-benchmarking-cli = { path = "../../../substrate/utils/frame/benchmarking-cli" }
# Local Dependencies
solochain-template-runtime = { path = "../runtime" }
# CLI-specific dependencies
try-runtime-cli = { path = "../../../substrate/utils/frame/try-runtime/cli", optional = true }
[build-dependencies]
substrate-build-script-utils = { path = "../../../substrate/utils/build-script-utils" }
[features]
default = []
# Dependencies that are only required if runtime benchmarking should be build.
runtime-benchmarks = [
"frame-benchmarking-cli/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-transaction-payment/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"solochain-template-runtime/runtime-benchmarks",
"sp-runtime/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 = [
"frame-system/try-runtime",
"pallet-transaction-payment/try-runtime",
"solochain-template-runtime/try-runtime",
"sp-runtime/try-runtime",
"try-runtime-cli/try-runtime",
]