From 4c791472cabcd76bcbbb56f21e59dcb11549ae7e Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Fri, 20 Jan 2023 12:14:20 +0300 Subject: [PATCH] No wildcard patterns in Cargo.toml (#1789) * dependabot doesn't support wildcard patterns in cargo.toml and we want dependabot * spelling for "fresh" crates * and fmt * spelling again --- Cargo.toml | 56 +++++++++++++++++++++++++---- bin/runtime-common/src/integrity.rs | 4 +-- bin/runtime-common/src/messages.rs | 6 ++-- bin/runtime-common/src/mock.rs | 8 ++--- 4 files changed, 59 insertions(+), 15 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1090a0fe5ba..5e06145e079 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,10 +2,54 @@ resolver = "2" members = [ - "bin/*/node", - "bin/*/runtime", - "fuzz/*", - "modules/*", - "primitives/*", - "relays/*", + "bin/millau/node", + "bin/millau/runtime", + "bin/rialto/node", + "bin/rialto/runtime", + "bin/rialto-parachain/node", + "bin/rialto-parachain/runtime", + "bin/runtime-common", + "fuzz/storage-proof", + "modules/beefy", + "modules/grandpa", + "modules/messages", + "modules/parachains", + "modules/relayers", + "modules/shift-session-manager", + "primitives/beefy", + "primitives/chain-bridge-hub-cumulus", + "primitives/chain-bridge-hub-rococo", + "primitives/chain-bridge-hub-wococo", + "primitives/chain-kusama", + "primitives/chain-millau", + "primitives/chain-polkadot", + "primitives/chain-rialto", + "primitives/chain-rialto-parachain", + "primitives/chain-rococo", + "primitives/chain-westend", + "primitives/chain-wococo", + "primitives/header-chain", + "primitives/messages", + "primitives/parachains", + "primitives/polkadot-core", + "primitives/relayers", + "primitives/runtime", + "primitives/test-utils", + "relays/bin-substrate", + "relays/client-bridge-hub-rococo", + "relays/client-bridge-hub-wococo", + "relays/client-kusama", + "relays/client-millau", + "relays/client-polkadot", + "relays/client-rialto", + "relays/client-rialto-parachain", + "relays/client-rococo", + "relays/client-substrate", + "relays/client-westend", + "relays/client-wococo", + "relays/finality", + "relays/lib-substrate-relay", + "relays/messages", + "relays/parachains", + "relays/utils", ] diff --git a/bin/runtime-common/src/integrity.rs b/bin/runtime-common/src/integrity.rs index 45387b5a168..11c6cb90a83 100644 --- a/bin/runtime-common/src/integrity.rs +++ b/bin/runtime-common/src/integrity.rs @@ -101,8 +101,8 @@ macro_rules! assert_bridge_messages_pallet_types( /// Macro that combines four other macro calls - `assert_chain_types`, `assert_bridge_types`, /// `assert_bridge_grandpa_pallet_types` and `assert_bridge_messages_pallet_types`. It may be used -/// at the chain that is implemeting complete standard messages bridge (i.e. with bridge GRANDPA and -/// messages pallets deployed). +/// at the chain that is implementing complete standard messages bridge (i.e. with bridge GRANDPA +/// and messages pallets deployed). #[macro_export] macro_rules! assert_complete_bridge_types( ( diff --git a/bin/runtime-common/src/messages.rs b/bin/runtime-common/src/messages.rs index 0d38e4b0d25..8c97198393d 100644 --- a/bin/runtime-common/src/messages.rs +++ b/bin/runtime-common/src/messages.rs @@ -163,13 +163,13 @@ pub mod source { #[derive(RuntimeDebug)] pub struct FromThisChainMessageVerifier(PhantomData); - /// The error message returned from LaneMessageVerifier when outbound lane is disabled. + /// The error message returned from `LaneMessageVerifier` when outbound lane is disabled. pub const MESSAGE_REJECTED_BY_OUTBOUND_LANE: &str = "The outbound message lane has rejected the message."; - /// The error message returned from LaneMessageVerifier when too many pending messages at the + /// The error message returned from `LaneMessageVerifier` when too many pending messages at the /// lane. pub const TOO_MANY_PENDING_MESSAGES: &str = "Too many pending messages at the lane."; - /// The error message returned from LaneMessageVerifier when call origin is mismatch. + /// The error message returned from `LaneMessageVerifier` when call origin is mismatch. pub const BAD_ORIGIN: &str = "Unable to match the source origin to expected target origin."; impl LaneMessageVerifier>, FromThisChainMessagePayload> diff --git a/bin/runtime-common/src/mock.rs b/bin/runtime-common/src/mock.rs index d4b177510bf..51b03447c63 100644 --- a/bin/runtime-common/src/mock.rs +++ b/bin/runtime-common/src/mock.rs @@ -245,8 +245,8 @@ impl pallet_bridge_relayers::Config for TestRuntime { type WeightInfo = (); } -/// Bridge that is deployed on ThisChain and allows sending/receiving messages to/from -/// BridgedChain. +/// Bridge that is deployed on `ThisChain` and allows sending/receiving messages to/from +/// `BridgedChain`. #[derive(Debug, PartialEq, Eq)] pub struct OnThisChainBridge; @@ -260,8 +260,8 @@ impl MessageBridge for OnThisChainBridge { type BridgedHeaderChain = pallet_bridge_grandpa::GrandpaChainHeaders; } -/// Bridge that is deployed on BridgedChain and allows sending/receiving messages to/from -/// ThisChain; +/// Bridge that is deployed on `BridgedChain` and allows sending/receiving messages to/from +/// `ThisChain`. #[derive(Debug, PartialEq, Eq)] pub struct OnBridgedChainBridge;