Files
pezkuwi-subxt/substrate/frame/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

100 lines
3.2 KiB
TOML

[package]
name = "frame"
version = "0.0.1-dev"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
license = "Apache-2.0"
homepage = "paritytech.github.io"
repository.workspace = true
description = "The single package to get you started with building frame pallets and runtimes"
publish = false
[lints]
workspace = true
[package.metadata.docs.rs]
# enable `experimental` feature for docs
features = ["experimental"]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
# external deps
parity-scale-codec = { version = "3.2.2", default-features = false, features = [
"derive",
] }
scale-info = { version = "2.6.0", default-features = false, features = [
"derive",
] }
# primitive deps, used for developing FRAME pallets.
sp-runtime = { default-features = false, path = "../primitives/runtime" }
sp-std = { default-features = false, path = "../primitives/std" }
sp-io = { default-features = false, path = "../primitives/io" }
sp-core = { default-features = false, path = "../primitives/core" }
sp-arithmetic = { default-features = false, path = "../primitives/arithmetic" }
# frame deps, for developing FRAME pallets.
frame-support = { default-features = false, path = "support" }
frame-system = { default-features = false, path = "system" }
# primitive types used for developing FRAME runtimes.
sp-version = { default-features = false, path = "../primitives/version", optional = true }
sp-api = { default-features = false, path = "../primitives/api", optional = true }
sp-block-builder = { default-features = false, path = "../primitives/block-builder", optional = true }
sp-transaction-pool = { default-features = false, path = "../primitives/transaction-pool", optional = true }
sp-offchain = { default-features = false, path = "../primitives/offchain", optional = true }
sp-session = { default-features = false, path = "../primitives/session", optional = true }
sp-consensus-aura = { default-features = false, path = "../primitives/consensus/aura", optional = true }
sp-consensus-grandpa = { default-features = false, path = "../primitives/consensus/grandpa", optional = true }
sp-inherents = { default-features = false, path = "../primitives/inherents", optional = true }
frame-executive = { default-features = false, path = "../frame/executive", optional = true }
frame-system-rpc-runtime-api = { default-features = false, path = "../frame/system/rpc/runtime-api", optional = true }
docify = "0.2.7"
log = { workspace = true }
[dev-dependencies]
pallet-examples = { path = "./examples" }
[features]
default = ["runtime", "std"]
experimental = ["frame-support/experimental"]
runtime = [
"sp-api",
"sp-block-builder",
"sp-consensus-aura",
"sp-consensus-grandpa",
"sp-inherents",
"sp-offchain",
"sp-session",
"sp-transaction-pool",
"sp-version",
"frame-executive",
"frame-system-rpc-runtime-api",
]
std = [
"frame-executive?/std",
"frame-support/std",
"frame-system-rpc-runtime-api?/std",
"frame-system/std",
"log/std",
"parity-scale-codec/std",
"scale-info/std",
"sp-api?/std",
"sp-arithmetic/std",
"sp-block-builder?/std",
"sp-consensus-aura?/std",
"sp-consensus-grandpa?/std",
"sp-core/std",
"sp-inherents?/std",
"sp-io/std",
"sp-offchain?/std",
"sp-runtime/std",
"sp-session?/std",
"sp-std/std",
"sp-transaction-pool?/std",
"sp-version?/std",
]