Skip to content

Commit

Permalink
No wildcard patterns in Cargo.toml (#1789)
Browse files Browse the repository at this point in the history
* dependabot doesn't support wildcard patterns in cargo.toml and we want dependabot

* spelling for "fresh" crates

* and fmt

* spelling again
  • Loading branch information
svyatonik authored Jan 20, 2023
1 parent 3363231 commit 4c79147
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 15 deletions.
56 changes: 50 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
4 changes: 2 additions & 2 deletions bin/runtime-common/src/integrity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
(
Expand Down
6 changes: 3 additions & 3 deletions bin/runtime-common/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ pub mod source {
#[derive(RuntimeDebug)]
pub struct FromThisChainMessageVerifier<B>(PhantomData<B>);

/// 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<B> LaneMessageVerifier<OriginOf<ThisChain<B>>, FromThisChainMessagePayload>
Expand Down
8 changes: 4 additions & 4 deletions bin/runtime-common/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -260,8 +260,8 @@ impl MessageBridge for OnThisChainBridge {
type BridgedHeaderChain = pallet_bridge_grandpa::GrandpaChainHeaders<TestRuntime, ()>;
}

/// 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;

Expand Down

0 comments on commit 4c79147

Please sign in to comment.