From ec401ce1d0c32ced9555411a34e9c67d86cbf72b Mon Sep 17 00:00:00 2001 From: Dan Shields <35669742+NukeManDan@users.noreply.github.com> Date: Tue, 16 Nov 2021 07:12:06 -0700 Subject: [PATCH] move to rust 2021 (#759) * move to rust 2021 * fix formatting, more moves --- client/cli/Cargo.toml | 2 +- client/collator/Cargo.toml | 2 +- client/consensus/aura/Cargo.toml | 2 +- client/consensus/common/Cargo.toml | 2 +- client/consensus/relay-chain/Cargo.toml | 2 +- client/network/Cargo.toml | 2 +- client/pov-recovery/Cargo.toml | 2 +- client/service/Cargo.toml | 2 +- pallets/asset-tx-payment/Cargo.toml | 2 +- pallets/aura-ext/Cargo.toml | 2 +- pallets/collator-selection/Cargo.toml | 2 +- pallets/dmp-queue/Cargo.toml | 2 +- pallets/parachain-system/Cargo.toml | 2 +- pallets/parachain-system/proc-macro/Cargo.toml | 2 +- pallets/session-benchmarking/Cargo.toml | 2 +- pallets/xcm/Cargo.toml | 2 +- pallets/xcmp-queue/Cargo.toml | 2 +- parachain-template/node/Cargo.toml | 2 +- parachain-template/pallets/template/Cargo.toml | 2 +- parachain-template/runtime/Cargo.toml | 2 +- polkadot-parachains/Cargo.toml | 2 +- polkadot-parachains/pallets/parachain-info/Cargo.toml | 2 +- polkadot-parachains/pallets/ping/Cargo.toml | 2 +- polkadot-parachains/parachains-common/Cargo.toml | 2 +- polkadot-parachains/rococo/Cargo.toml | 2 +- polkadot-parachains/shell/Cargo.toml | 2 +- polkadot-parachains/statemine/Cargo.toml | 2 +- polkadot-parachains/statemint/Cargo.toml | 2 +- polkadot-parachains/westmint/Cargo.toml | 2 +- primitives/core/Cargo.toml | 2 +- primitives/parachain-inherent/Cargo.toml | 2 +- primitives/timestamp/Cargo.toml | 2 +- primitives/utility/Cargo.toml | 2 +- test/client/Cargo.toml | 2 +- test/relay-sproof-builder/Cargo.toml | 2 +- test/relay-validation-worker-provider/Cargo.toml | 2 +- test/relay-validation-worker-provider/build.rs | 2 +- test/runtime/Cargo.toml | 2 +- test/service/Cargo.toml | 2 +- 39 files changed, 39 insertions(+), 39 deletions(-) diff --git a/client/cli/Cargo.toml b/client/cli/Cargo.toml index 90b866f64e..513a7db392 100644 --- a/client/cli/Cargo.toml +++ b/client/cli/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-client-cli" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] structopt = "0.3.3" diff --git a/client/collator/Cargo.toml b/client/collator/Cargo.toml index 6f65d48029..6f9fcadc6b 100644 --- a/client/collator/Cargo.toml +++ b/client/collator/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-client-collator" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Substrate dependencies diff --git a/client/consensus/aura/Cargo.toml b/client/consensus/aura/Cargo.toml index 35a0e47fd8..b013eb8821 100644 --- a/client/consensus/aura/Cargo.toml +++ b/client/consensus/aura/Cargo.toml @@ -3,7 +3,7 @@ name = "cumulus-client-consensus-aura" description = "AURA consensus algorithm for parachains" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Substrate dependencies diff --git a/client/consensus/common/Cargo.toml b/client/consensus/common/Cargo.toml index e8a66b3f25..6657966826 100644 --- a/client/consensus/common/Cargo.toml +++ b/client/consensus/common/Cargo.toml @@ -3,7 +3,7 @@ name = "cumulus-client-consensus-common" description = "Cumulus specific common consensus implementations" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Substrate deps diff --git a/client/consensus/relay-chain/Cargo.toml b/client/consensus/relay-chain/Cargo.toml index 5da2af5bf1..9f5f9995d7 100644 --- a/client/consensus/relay-chain/Cargo.toml +++ b/client/consensus/relay-chain/Cargo.toml @@ -3,7 +3,7 @@ name = "cumulus-client-consensus-relay-chain" description = "The relay-chain provided consensus algorithm" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Substrate deps diff --git a/client/network/Cargo.toml b/client/network/Cargo.toml index ecdf4c9704..637c7b00fb 100644 --- a/client/network/Cargo.toml +++ b/client/network/Cargo.toml @@ -3,7 +3,7 @@ name = "cumulus-client-network" version = "0.1.0" authors = ["Parity Technologies "] description = "Cumulus-specific networking protocol" -edition = "2018" +edition = "2021" [dependencies] # Substrate deps diff --git a/client/pov-recovery/Cargo.toml b/client/pov-recovery/Cargo.toml index 31b96d0e4b..b95693b1ee 100644 --- a/client/pov-recovery/Cargo.toml +++ b/client/pov-recovery/Cargo.toml @@ -3,7 +3,7 @@ name = "cumulus-client-pov-recovery" version = "0.1.0" authors = ["Parity Technologies "] description = "Cumulus-specific networking protocol" -edition = "2018" +edition = "2021" [dependencies] # Substrate deps diff --git a/client/service/Cargo.toml b/client/service/Cargo.toml index 051482ad34..de76a0d657 100644 --- a/client/service/Cargo.toml +++ b/client/service/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-client-service" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Cumulus dependencies diff --git a/pallets/asset-tx-payment/Cargo.toml b/pallets/asset-tx-payment/Cargo.toml index 5723776fd4..519e2a6a4b 100644 --- a/pallets/asset-tx-payment/Cargo.toml +++ b/pallets/asset-tx-payment/Cargo.toml @@ -2,7 +2,7 @@ name = "pallet-asset-tx-payment" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" license = "Apache-2.0" homepage = "https://substrate.io" repository = "https://github.com/paritytech/cumulus/" diff --git a/pallets/aura-ext/Cargo.toml b/pallets/aura-ext/Cargo.toml index 72b3366dab..294d5a7e92 100644 --- a/pallets/aura-ext/Cargo.toml +++ b/pallets/aura-ext/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-pallet-aura-ext" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" description = "AURA consensus extension pallet for parachains" [dependencies] diff --git a/pallets/collator-selection/Cargo.toml b/pallets/collator-selection/Cargo.toml index d486ee85df..406de74ce2 100644 --- a/pallets/collator-selection/Cargo.toml +++ b/pallets/collator-selection/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ['Anonymous'] description = 'Simple staking pallet with a fixed stake.' -edition = '2018' +edition = "2021" homepage = 'https://substrate.io' license = 'Apache-2.0' name = 'pallet-collator-selection' diff --git a/pallets/dmp-queue/Cargo.toml b/pallets/dmp-queue/Cargo.toml index 402fc658f5..13075e5504 100644 --- a/pallets/dmp-queue/Cargo.toml +++ b/pallets/dmp-queue/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-pallet-dmp-queue" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Other dependencies diff --git a/pallets/parachain-system/Cargo.toml b/pallets/parachain-system/Cargo.toml index feee0b090a..56e6205140 100644 --- a/pallets/parachain-system/Cargo.toml +++ b/pallets/parachain-system/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-pallet-parachain-system" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" description = "Base pallet for cumulus-based parachains" [dependencies] diff --git a/pallets/parachain-system/proc-macro/Cargo.toml b/pallets/parachain-system/proc-macro/Cargo.toml index c2f1b45115..fc575b1cf2 100644 --- a/pallets/parachain-system/proc-macro/Cargo.toml +++ b/pallets/parachain-system/proc-macro/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-pallet-parachain-system-proc-macro" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" description = "Proc macros provided by the parachain-system pallet" [lib] diff --git a/pallets/session-benchmarking/Cargo.toml b/pallets/session-benchmarking/Cargo.toml index 2591325282..52e8238263 100644 --- a/pallets/session-benchmarking/Cargo.toml +++ b/pallets/session-benchmarking/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-pallet-session-benchmarking" version = "3.0.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" license = "Apache-2.0" homepage = "https://substrate.io" repository = "https://github.com/paritytech/cumulus/" diff --git a/pallets/xcm/Cargo.toml b/pallets/xcm/Cargo.toml index e56b47a990..095bcb3c48 100644 --- a/pallets/xcm/Cargo.toml +++ b/pallets/xcm/Cargo.toml @@ -1,6 +1,6 @@ [package] authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" name = "cumulus-pallet-xcm" version = "0.1.0" diff --git a/pallets/xcmp-queue/Cargo.toml b/pallets/xcmp-queue/Cargo.toml index 0ee1751139..8d1d71103b 100644 --- a/pallets/xcmp-queue/Cargo.toml +++ b/pallets/xcmp-queue/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-pallet-xcmp-queue" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Other dependencies diff --git a/parachain-template/node/Cargo.toml b/parachain-template/node/Cargo.toml index 58e10bae35..cde7f16f4f 100644 --- a/parachain-template/node/Cargo.toml +++ b/parachain-template/node/Cargo.toml @@ -6,7 +6,7 @@ description = "A new Cumulus FRAME-based Substrate Node, ready for hacking toget license = "Unlicense" homepage = "https://substrate.io" repository = "https://github.com/paritytech/cumulus/" -edition = "2018" +edition = "2021" build = "build.rs" [package.metadata.docs.rs] diff --git a/parachain-template/pallets/template/Cargo.toml b/parachain-template/pallets/template/Cargo.toml index ce02d0798e..8356235ddb 100644 --- a/parachain-template/pallets/template/Cargo.toml +++ b/parachain-template/pallets/template/Cargo.toml @@ -6,7 +6,7 @@ version = "0.1.0" license = "Unlicense" homepage = "https://substrate.io" repository = "https://github.com/paritytech/substrate/" -edition = "2018" +edition = "2021" [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/parachain-template/runtime/Cargo.toml b/parachain-template/runtime/Cargo.toml index abac6fe3f9..c671e269ac 100644 --- a/parachain-template/runtime/Cargo.toml +++ b/parachain-template/runtime/Cargo.toml @@ -6,7 +6,7 @@ description = "A new Cumulus FRAME-based Substrate Runtime, ready for hacking to license = "Unlicense" homepage = "https://substrate.io" repository = "https://github.com/paritytech/cumulus/" -edition = "2018" +edition = "2021" [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/polkadot-parachains/Cargo.toml b/polkadot-parachains/Cargo.toml index 9b07a864a6..1809d2b157 100644 --- a/polkadot-parachains/Cargo.toml +++ b/polkadot-parachains/Cargo.toml @@ -3,7 +3,7 @@ name = "polkadot-collator" version = "5.0.0" authors = ["Parity Technologies "] build = "build.rs" -edition = "2018" +edition = "2021" [[bin]] name = "polkadot-collator" diff --git a/polkadot-parachains/pallets/parachain-info/Cargo.toml b/polkadot-parachains/pallets/parachain-info/Cargo.toml index c5add537a0..7ee0139a5b 100644 --- a/polkadot-parachains/pallets/parachain-info/Cargo.toml +++ b/polkadot-parachains/pallets/parachain-info/Cargo.toml @@ -1,6 +1,6 @@ [package] authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" name = "parachain-info" version = "0.1.0" diff --git a/polkadot-parachains/pallets/ping/Cargo.toml b/polkadot-parachains/pallets/ping/Cargo.toml index 28b08451ab..fb183c2b71 100644 --- a/polkadot-parachains/pallets/ping/Cargo.toml +++ b/polkadot-parachains/pallets/ping/Cargo.toml @@ -1,6 +1,6 @@ [package] authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" name = "cumulus-ping" version = "0.1.0" diff --git a/polkadot-parachains/parachains-common/Cargo.toml b/polkadot-parachains/parachains-common/Cargo.toml index b240106fc4..d27dcdac92 100644 --- a/polkadot-parachains/parachains-common/Cargo.toml +++ b/polkadot-parachains/parachains-common/Cargo.toml @@ -2,7 +2,7 @@ name = "parachains-common" version = "1.0.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" description = "Logic which is common to all parachain runtimes" [package.metadata.docs.rs] diff --git a/polkadot-parachains/rococo/Cargo.toml b/polkadot-parachains/rococo/Cargo.toml index 72cda0e06a..fc18da8cbb 100644 --- a/polkadot-parachains/rococo/Cargo.toml +++ b/polkadot-parachains/rococo/Cargo.toml @@ -2,7 +2,7 @@ name = 'rococo-runtime' version = '0.1.0' authors = ["Parity Technologies "] -edition = '2018' +edition = "2021" description = "Simple runtime used by the rococo parachain(s)" [dependencies] diff --git a/polkadot-parachains/shell/Cargo.toml b/polkadot-parachains/shell/Cargo.toml index 2a0edf2335..9f609d54a9 100644 --- a/polkadot-parachains/shell/Cargo.toml +++ b/polkadot-parachains/shell/Cargo.toml @@ -2,7 +2,7 @@ name = 'shell-runtime' version = '0.1.0' authors = ["Parity Technologies "] -edition = '2018' +edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive"] } diff --git a/polkadot-parachains/statemine/Cargo.toml b/polkadot-parachains/statemine/Cargo.toml index 63f2446a98..8d52784b19 100644 --- a/polkadot-parachains/statemine/Cargo.toml +++ b/polkadot-parachains/statemine/Cargo.toml @@ -2,7 +2,7 @@ name = 'statemine-runtime' version = '2.0.0' authors = ["Parity Technologies "] -edition = '2018' +edition = "2021" description = "Kusama variant of Statemint parachain runtime" [dependencies] diff --git a/polkadot-parachains/statemint/Cargo.toml b/polkadot-parachains/statemint/Cargo.toml index 89d796ff30..b278b0a48b 100644 --- a/polkadot-parachains/statemint/Cargo.toml +++ b/polkadot-parachains/statemint/Cargo.toml @@ -2,7 +2,7 @@ name = 'statemint-runtime' version = '1.0.0' authors = ["Parity Technologies "] -edition = '2018' +edition = "2021" description = "Statemint parachain runtime" [dependencies] diff --git a/polkadot-parachains/westmint/Cargo.toml b/polkadot-parachains/westmint/Cargo.toml index 57b570192c..19db5589a0 100644 --- a/polkadot-parachains/westmint/Cargo.toml +++ b/polkadot-parachains/westmint/Cargo.toml @@ -2,7 +2,7 @@ name = 'westmint-runtime' version = '1.0.0' authors = ["Parity Technologies "] -edition = '2018' +edition = "2021" description = "Westend variant of Statemint parachain runtime" [dependencies] diff --git a/primitives/core/Cargo.toml b/primitives/core/Cargo.toml index 95ac9d8c8e..659ccafdfd 100644 --- a/primitives/core/Cargo.toml +++ b/primitives/core/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-primitives-core" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Substrate dependencies diff --git a/primitives/parachain-inherent/Cargo.toml b/primitives/parachain-inherent/Cargo.toml index 494739e228..938d167964 100644 --- a/primitives/parachain-inherent/Cargo.toml +++ b/primitives/parachain-inherent/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-primitives-parachain-inherent" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Substrate dependencies diff --git a/primitives/timestamp/Cargo.toml b/primitives/timestamp/Cargo.toml index e3404261cb..9dd8a3b329 100644 --- a/primitives/timestamp/Cargo.toml +++ b/primitives/timestamp/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-primitives-timestamp" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" description = "Provides timestamp related functionality for parachains." [dependencies] diff --git a/primitives/utility/Cargo.toml b/primitives/utility/Cargo.toml index 446af89907..41cfa53a32 100644 --- a/primitives/utility/Cargo.toml +++ b/primitives/utility/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-primitives-utility" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] # Substrate dependencies diff --git a/test/client/Cargo.toml b/test/client/Cargo.toml index 2ae58f6775..198c551fb2 100644 --- a/test/client/Cargo.toml +++ b/test/client/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-test-client" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/test/relay-sproof-builder/Cargo.toml b/test/relay-sproof-builder/Cargo.toml index a951fddf1c..4a4f4ba68f 100644 --- a/test/relay-sproof-builder/Cargo.toml +++ b/test/relay-sproof-builder/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-test-relay-sproof-builder" version = '0.1.0' authors = ["Parity Technologies "] -edition = '2018' +edition = "2021" [dependencies] # Other dependencies diff --git a/test/relay-validation-worker-provider/Cargo.toml b/test/relay-validation-worker-provider/Cargo.toml index 9946a29b70..750b863bae 100644 --- a/test/relay-validation-worker-provider/Cargo.toml +++ b/test/relay-validation-worker-provider/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-test-relay-validation-worker-provider" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" build = "build.rs" [dependencies] diff --git a/test/relay-validation-worker-provider/build.rs b/test/relay-validation-worker-provider/build.rs index cb0a71681c..1b7a5dd098 100644 --- a/test/relay-validation-worker-provider/build.rs +++ b/test/relay-validation-worker-provider/build.rs @@ -65,7 +65,7 @@ fn create_project(out_dir: &Path) -> PathBuf { name = "{project_name}" version = "0.1.0" authors = ["Parity Technologies "] - edition = "2018" + edition = "2021" [dependencies] cumulus-test-relay-validation-worker-provider = {{ path = "{provider_path}" }} diff --git a/test/runtime/Cargo.toml b/test/runtime/Cargo.toml index f62ad76b51..1b1b8f5de1 100644 --- a/test/runtime/Cargo.toml +++ b/test/runtime/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-test-runtime" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive"] } diff --git a/test/service/Cargo.toml b/test/service/Cargo.toml index 56b68827e3..978d02ecfa 100644 --- a/test/service/Cargo.toml +++ b/test/service/Cargo.toml @@ -2,7 +2,7 @@ name = "cumulus-test-service" version = "0.1.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "2.3.0" }