-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Use workspace dependencies (#1725)
* fix: better workspace usage * compiling with cargo check * clean all Cargo.toml files * taplo fmt and minor fix * fix benchmarking issue --------- Co-authored-by: William Freudenberger <[email protected]>
- Loading branch information
Showing
40 changed files
with
1,125 additions
and
1,119 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
[package] | ||
authors = ["Centrifuge <[email protected]>"] | ||
description = "Generic mocks built with mock-builder for traits" | ||
edition = "2021" | ||
license = "LGPL-3.0" | ||
name = "cfg-mocks" | ||
repository = "https://github.com/centrifuge/centrifuge-chain" | ||
description = "Generic mocks built with mock-builder for traits" | ||
version = "0.0.1" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
documentation.workspace = true | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
parity-scale-codec = { default-features = false, version = "3.0.0", features = ["derive"] } | ||
scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } | ||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } | ||
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } | ||
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
frame-support = { workspace = true } | ||
frame-system = { workspace = true } | ||
parity-scale-codec = { workspace = true } | ||
scale-info = { workspace = true } | ||
sp-core = { workspace = true } | ||
sp-io = { workspace = true } | ||
sp-runtime = { workspace = true } | ||
sp-std = { workspace = true } | ||
|
||
cfg-primitives = { workspace = true } | ||
cfg-traits = { workspace = true } | ||
cfg-types = { workspace = true } | ||
|
||
cfg-primitives = { path = "../primitives", default-features = false } | ||
cfg-traits = { path = "../traits", default-features = false } | ||
cfg-types = { path = "../types", default-features = false } | ||
orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } | ||
orml-traits = { workspace = true } | ||
xcm = { workspace = true } | ||
|
||
mock-builder = { workspace = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,44 @@ | ||
[package] | ||
authors = ["Centrifuge <[email protected]>"] | ||
description = "Primitive types for Centrifuge" | ||
edition = "2021" | ||
license = "LGPL-3.0" | ||
name = "cfg-primitives" | ||
repository = "https://github.com/centrifuge/centrifuge-chain" | ||
description = "Primitive types for Centrifuge" | ||
version = "2.0.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
documentation.workspace = true | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } | ||
scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } | ||
serde = { version = "1.0.119" } | ||
parity-scale-codec = { workspace = true } | ||
scale-info = { workspace = true } | ||
serde = { workspace = true } | ||
|
||
# substrate primitives dependencies | ||
sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
sp-consensus-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
sp-arithmetic = { workspace = true } | ||
sp-consensus-aura = { workspace = true } | ||
sp-core = { workspace = true } | ||
sp-io = { workspace = true } | ||
sp-runtime = { workspace = true } | ||
sp-std = { workspace = true } | ||
|
||
# substrate frame dependencies | ||
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
pallet-collective = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
frame-support = { workspace = true } | ||
frame-system = { workspace = true } | ||
pallet-collective = { workspace = true } | ||
|
||
# cumulus primitives dependencies | ||
cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.43" } | ||
cumulus-primitives-core = { workspace = true } | ||
|
||
# XCM primitives dependencies | ||
xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } | ||
xcm-executor = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } | ||
xcm = { workspace = true } | ||
xcm-executor = { workspace = true } | ||
|
||
[features] | ||
default = ["std"] | ||
runtime-benchmarks = [ | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"pallet-collective/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
"xcm-executor/runtime-benchmarks", | ||
] | ||
std = [ | ||
"parity-scale-codec/std", | ||
"cumulus-primitives-core/std", | ||
|
@@ -61,6 +56,13 @@ std = [ | |
"xcm-executor/std", | ||
"xcm/std", | ||
] | ||
runtime-benchmarks = [ | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"pallet-collective/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
"xcm-executor/runtime-benchmarks", | ||
] | ||
try-runtime = [ | ||
"frame-support/try-runtime", | ||
"frame-system/try-runtime", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
[package] | ||
authors = ["Centrifuge <[email protected]>"] | ||
description = "Proofs" | ||
edition = "2021" | ||
license = "LGPL-3.0" | ||
name = "proofs" | ||
repository = "https://github.com/centrifuge/centrifuge-chain" | ||
description = "Proofs" | ||
version = "2.0.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
documentation.workspace = true | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } | ||
scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } | ||
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } | ||
parity-scale-codec = { workspace = true } | ||
scale-info = { workspace = true } | ||
sp-std = { workspace = true } | ||
|
||
[dev-dependencies] | ||
sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } | ||
sp-core = { workspace = true, default-features = true } | ||
|
||
[features] | ||
default = ["std"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.