Skip to content

Commit 1d8bdb2

Browse files
Various nits and alignments for SP runtimes (polkadot-fellows#154)
There were several improvements and PRs that didn't apply to all runtimes, so this PR attempts to align those small differences. --------- Co-authored-by: joe petrowski <[email protected]>
1 parent 659f6e0 commit 1d8bdb2

File tree

17 files changed

+137
-128
lines changed

17 files changed

+137
-128
lines changed

Cargo.lock

Lines changed: 83 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

relay/kusama/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ try-runtime = [
347347
"sp-runtime/try-runtime",
348348
]
349349

350-
# A feature that should be enabled when the runtime should be build for on-chain
350+
# A feature that should be enabled when the runtime should be built for on-chain
351351
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
352-
# to make it smaller like logging for example.
352+
# to make it smaller, like logging for example.
353353
on-chain-release-build = [ "sp-api/disable-logging" ]
354354

355355
# Set timing constants (e.g. session period) to faster versions to speed up testing.

relay/polkadot/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ try-runtime = [
331331
"sp-runtime/try-runtime",
332332
]
333333

334-
# A feature that should be enabled when the runtime should be build for on-chain
334+
# A feature that should be enabled when the runtime should be built for on-chain
335335
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
336-
# to make it smaller like logging for example.
336+
# to make it smaller, like logging for example.
337337
on-chain-release-build = [ "sp-api/disable-logging" ]
338338

339339
# Set timing constants (e.g. session period) to faster versions to speed up testing.

system-parachains/asset-hubs/asset-hub-kusama/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ std = [
252252

253253
experimental = [ "pallet-aura/experimental" ]
254254

255-
# A feature that should be enabled when the runtime should be build for on-chain
255+
# A feature that should be enabled when the runtime should be built for on-chain
256256
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
257-
# to make it smaller like logging for example.
257+
# to make it smaller, like logging for example.
258258
on-chain-release-build = [ "sp-api/disable-logging" ]

system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -954,13 +954,9 @@ pub type Executive = frame_executive::Executive<
954954
Migrations,
955955
>;
956956

957-
#[cfg(feature = "runtime-benchmarks")]
958-
#[macro_use]
959-
extern crate frame_benchmarking;
960-
961957
#[cfg(feature = "runtime-benchmarks")]
962958
mod benches {
963-
define_benchmarks!(
959+
frame_benchmarking::define_benchmarks!(
964960
[frame_system, SystemBench::<Runtime>]
965961
[pallet_assets, Local]
966962
[pallet_assets, Foreign]

system-parachains/asset-hubs/asset-hub-polkadot/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ std = [
233233

234234
experimental = [ "pallet-aura/experimental" ]
235235

236-
# A feature that should be enabled when the runtime should be build for on-chain
236+
# A feature that should be enabled when the runtime should be built for on-chain
237237
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
238-
# to make it smaller like logging for example.
238+
# to make it smaller, like logging for example.
239239
on-chain-release-build = [ "sp-api/disable-logging" ]

system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -873,13 +873,9 @@ pub type Executive = frame_executive::Executive<
873873
Migrations,
874874
>;
875875

876-
#[cfg(feature = "runtime-benchmarks")]
877-
#[macro_use]
878-
extern crate frame_benchmarking;
879-
880876
#[cfg(feature = "runtime-benchmarks")]
881877
mod benches {
882-
define_benchmarks!(
878+
frame_benchmarking::define_benchmarks!(
883879
[frame_system, SystemBench::<Runtime>]
884880
[pallet_assets, Local]
885881
[pallet_assets, Foreign]

system-parachains/bridge-hubs/bridge-hub-kusama/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ try-runtime = [
241241

242242
experimental = [ "pallet-aura/experimental" ]
243243

244-
# A feature that should be enabled when the runtime should be build for on-chain
244+
# A feature that should be enabled when the runtime should be built for on-chain
245245
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
246-
# to make it smaller like logging for example.
246+
# to make it smaller, like logging for example.
247247
on-chain-release-build = [ "sp-api/disable-logging" ]

system-parachains/bridge-hubs/bridge-hub-kusama/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,13 +478,9 @@ construct_runtime!(
478478
}
479479
);
480480

481-
#[cfg(feature = "runtime-benchmarks")]
482-
#[macro_use]
483-
extern crate frame_benchmarking;
484-
485481
#[cfg(feature = "runtime-benchmarks")]
486482
mod benches {
487-
define_benchmarks!(
483+
frame_benchmarking::define_benchmarks!(
488484
[frame_system, SystemBench::<Runtime>]
489485
[pallet_balances, Balances]
490486
[pallet_multisig, Multisig]

system-parachains/bridge-hubs/bridge-hub-polkadot/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ try-runtime = [
240240

241241
experimental = [ "pallet-aura/experimental" ]
242242

243-
# A feature that should be enabled when the runtime should be build for on-chain
243+
# A feature that should be enabled when the runtime should be built for on-chain
244244
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
245-
# to make it smaller like logging for example.
245+
# to make it smaller, like logging for example.
246246
on-chain-release-build = [ "sp-api/disable-logging" ]

0 commit comments

Comments
 (0)