Workspace dependencies (#68)

* init

* clean

* update cargo toml for pallet template

* clean

* save

* finish node
This commit is contained in:
Amar Singh
2023-12-20 10:37:56 -05:00
committed by GitHub
parent 0464aa5b91
commit b734abf5eb
9 changed files with 288 additions and 199 deletions
+17 -30
View File
@@ -1,59 +1,46 @@
[package]
name = "pallet-parachain-template"
authors = ["Anonymous"]
description = "FRAME pallet template for defining custom runtime logic."
name = "pallet-template"
description = "FRAME pallet template"
version = "0.1.0"
license = "Unlicense"
homepage = "https://substrate.io"
repository.workspace = true
edition.workspace = true
authors = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
edition = "2021"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", features = [
"derive",
], default-features = false }
scale-info = { version = "2.10.0", default-features = false, features = [
"derive",
] }
# parity-scale-codec = { version = "3.1.5", default-features = false }
# scale-info = { version = "2.1.2", default-features = false }
parity-scale-codec = { workspace = true, features = [ "derive" ] }
scale-info = { workspace = true }
# Substrate
frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false, optional = true }
frame-support = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
frame-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
[dev-dependencies]
serde = { version = "1.0.188" }
serde = { workspace = true }
# Substrate
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
[features]
default = ["std"]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
std = [
"codec/std",
"parity-scale-codec/std",
"frame-benchmarking/std",
"frame-support/std",
"frame-system/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"sp-runtime/try-runtime",
]
-1
View File
@@ -1 +0,0 @@
License: Unlicense
+1 -1
View File
@@ -1,4 +1,4 @@
//! Benchmarking setup for pallet-parachain-template
//! Benchmarking setup for pallet-template
use frame_benchmarking::{benchmarks, impl_benchmark_test_suite, whitelisted_caller};
use frame_system::RawOrigin;