Skip to content

Commit

Permalink
Setup Cargo workspace
Browse files Browse the repository at this point in the history
Add a workspace Cargo.toml and reference all external dependencies as
'git' and all internals as 'path'.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez committed Mar 15, 2023
1 parent 81ae0f3 commit ed63bf7
Show file tree
Hide file tree
Showing 18 changed files with 12,105 additions and 110 deletions.
11,968 changes: 11,968 additions & 0 deletions Cargo.lock

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[workspace.package]
authors = ["Polkadot Fellowship"]
edition = "2021"
version = "1.0.0"

[workspace]
members = [
"relay/common",
"relay/common/slot_range_helper",
"relay/runtimes/kusama",
"relay/runtimes/kusama/constants",
"relay/runtimes/metrics",
"relay/runtimes/parachains",
"relay/runtimes/polkadot",
"relay/runtimes/polkadot/constants",
"relay/runtimes/test-runtime",
"relay/runtimes/test-runtime/constants",
"system-parachains/common",
"system-parachains/common/pallets/collator-selection",
"system-parachains/runtimes/asset-hubs/asset-hub-kusama",
"system-parachains/runtimes/asset-hubs/asset-hub-polkadot",
"system-parachains/runtimes/asset-hubs/common",
"system-parachains/runtimes/asset-hubs/common/test-utils",
"system-parachains/runtimes/bridge-hubs/bridge-hub-kusama",
"system-parachains/runtimes/bridge-hubs/bridge-hub-polkadot",
"system-parachains/runtimes/collectives/collectives-polkadot",
]
10 changes: 5 additions & 5 deletions relay/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ frame-election-provider-support = { git = "https://github.com/paritytech/substra
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }

primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
libsecp256k1 = { version = "0.7.0", default-features = false }
runtime-parachains = { package = "polkadot-runtime-parachains", path = "../parachains", default-features = false }
runtime-parachains = { package = "polkadot-runtime-parachains", path = "../runtimes/parachains", default-features = false }

slot-range-helper = { path = "slot_range_helper", default-features = false }
xcm = { path = "../../xcm", default-features = false }
slot-range-helper = { path = "./slot_range_helper", default-features = false }
xcm = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }

[dev-dependencies]
hex-literal = "0.3.4"
Expand All @@ -58,7 +58,7 @@ pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "m
sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
serde_json = "1.0.81"
libsecp256k1 = "0.7.0"
test-helpers = { package = "polkadot-primitives-test-helpers", path = "../../primitives/test-helpers" }
test-helpers = { package = "polkadot-primitives-test-helpers", git = "https://github.com/paritytech/polkadot", branch = "master" }

[features]
default = ["std"]
Expand Down
14 changes: 7 additions & 7 deletions relay/runtimes/kusama/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "m
pallet-utility = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-whitelist = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-xcm = { path = "../../xcm/pallet-xcm", default-features = false }
pallet-xcm-benchmarks = { path = "../../xcm/pallet-xcm-benchmarks", default-features = false, optional = true }
pallet-xcm = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
pallet-xcm-benchmarks = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false, optional = true }
frame-election-provider-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }

frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
Expand All @@ -94,13 +94,13 @@ frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", b
pallet-election-provider-support-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
hex-literal = { version = "0.3.4", optional = true }

runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false }
runtime-common = { package = "polkadot-runtime-common", path = "../../common", default-features = false }
runtime-parachains = { package = "polkadot-runtime-parachains", path = "../parachains", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }

xcm = { package = "xcm", path = "../../xcm", default-features = false }
xcm-executor = { package = "xcm-executor", path = "../../xcm/xcm-executor", default-features = false }
xcm-builder = { package = "xcm-builder", path = "../../xcm/xcm-builder", default-features = false }
xcm = { package = "xcm", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
xcm-executor = { package = "xcm-executor", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
xcm-builder = { package = "xcm-builder", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }

[dev-dependencies]
hex-literal = "0.3.4"
Expand Down
4 changes: 2 additions & 2 deletions relay/runtimes/kusama/constants/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ edition.workspace = true
smallvec = "1.8.0"

frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../../primitives", default-features = false }
runtime-common = { package = "polkadot-runtime-common", path = "../../common", default-features = false }
primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
runtime-common = { package = "polkadot-runtime-common", path = "../../../common", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "master" }
sp-weights = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "master" }
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "master" }
Expand Down
2 changes: 1 addition & 1 deletion relay/runtimes/metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition.workspace = true
sp-std = { package = "sp-std", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false}
sp-tracing = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
parity-scale-codec = { version = "3.3.0", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }

bs58 = { version = "0.4.0", default-features = false, features = ["alloc"] }

Expand Down
10 changes: 5 additions & 5 deletions relay/runtimes/parachains/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch =
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
frame-system = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }

xcm = { package = "xcm", path = "../../xcm", default-features = false }
xcm-executor = { package = "xcm-executor", path = "../../xcm/xcm-executor", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
xcm = { package = "xcm", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
xcm-executor = { package = "xcm-executor", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }

rand = { version = "0.8.5", default-features = false }
rand_chacha = { version = "0.3.1", default-features = false }
static_assertions = { version = "1.1.0", optional = true }
polkadot-parachain = { path = "../../parachain", default-features = false }
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
polkadot-runtime-metrics = { path = "../metrics", default-features = false}

[dev-dependencies]
Expand All @@ -54,7 +54,7 @@ hex-literal = "0.3.4"
keyring = { package = "sp-keyring", git = "https://github.com/paritytech/substrate", branch = "master" }
frame-support-test = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
test-helpers = { package = "polkadot-primitives-test-helpers", path = "../../primitives/test-helpers"}
test-helpers = { package = "polkadot-primitives-test-helpers", git = "https://github.com/paritytech/polkadot", branch = "master" }
sp-tracing = { git = "https://github.com/paritytech/substrate", branch = "master" }
thousands = "0.2.0"
assert_matches = "1"
Expand Down
12 changes: 6 additions & 6 deletions relay/runtimes/polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "m
pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-utility = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
frame-election-provider-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-xcm = { path = "../../xcm/pallet-xcm", default-features = false }
pallet-xcm = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }

frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
frame-try-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
Expand All @@ -86,13 +86,13 @@ pallet-session-benchmarking = { git = "https://github.com/paritytech/substrate",
pallet-nomination-pools-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
hex-literal = { version = "0.3.4", optional = true }

runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false }
runtime-common = { package = "polkadot-runtime-common", path = "../../common", default-features = false }
runtime-parachains = { package = "polkadot-runtime-parachains", path = "../parachains", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }

xcm = { package = "xcm", path = "../../xcm", default-features = false }
xcm-executor = { package = "xcm-executor", path = "../../xcm/xcm-executor", default-features = false }
xcm-builder = { package = "xcm-builder", path = "../../xcm/xcm-builder", default-features = false }
xcm = { package = "xcm", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
xcm-executor = { package = "xcm-executor", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
xcm-builder = { package = "xcm-builder", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }

[dev-dependencies]
hex-literal = "0.3.4"
Expand Down
4 changes: 2 additions & 2 deletions relay/runtimes/polkadot/constants/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ edition.workspace = true
smallvec = "1.8.0"

frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../../primitives", default-features = false }
runtime-common = { package = "polkadot-runtime-common", path = "../../common", default-features = false }
primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
runtime-common = { package = "polkadot-runtime-common", path = "../../../common", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "master" }
sp-weights = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "master" }
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "master" }
Expand Down
14 changes: 7 additions & 7 deletions relay/runtimes/test-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "
pallet-sudo = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }

runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
pallet-xcm = { path = "../../xcm/pallet-xcm", default-features = false }
polkadot-parachain = { path = "../../parachain", default-features = false }
runtime-common = { package = "polkadot-runtime-common", path = "../../common", default-features = false }
primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
pallet-xcm = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
polkadot-runtime-parachains = { path = "../parachains", default-features = false }
xcm-builder = { path = "../../xcm/xcm-builder", default-features = false }
xcm-executor = { path = "../../xcm/xcm-executor", default-features = false }
xcm = { path = "../../xcm", default-features = false }
xcm-builder = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
xcm-executor = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
xcm = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }

[dev-dependencies]
hex-literal = "0.3.4"
Expand Down
4 changes: 2 additions & 2 deletions relay/runtimes/test-runtime/constants/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ edition.workspace = true
smallvec = "1.8.0"

frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../../primitives", default-features = false }
runtime-common = { package = "polkadot-runtime-common", path = "../../common", default-features = false }
primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
runtime-common = { package = "polkadot-runtime-common", path = "../../../common", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "master" }
sp-weights = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "master" }
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "master" }
Expand Down
4 changes: 2 additions & 2 deletions system-parachains/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ xcm-builder = { git = "https://github.com/paritytech/polkadot", default-features
xcm-executor = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }

# Cumulus
pallet-collator-selection = { path = "../../pallets/collator-selection", default-features = false }
cumulus-primitives-utility = { path = "../../primitives/utility", default-features = false }
pallet-collator-selection = { path = "./pallets/collator-selection", default-features = false }
cumulus-primitives-utility = { git = "https://github.com/paritytech/cumulus", branch = "master", default-features = false }

[dev-dependencies]
pallet-authorship = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
Expand Down
Loading

0 comments on commit ed63bf7

Please sign in to comment.