Skip to content

Commit

Permalink
Move dependencies to workspace (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmikolajczyk41 authored Aug 21, 2023
1 parent 87fc99b commit f61431b
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 58 deletions.
44 changes: 44 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,51 @@ members = [
[workspace.package]
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
description = "Substrate's programmatic testing framework."
edition = "2021"
license = "Apache-2.0"
homepage = "https://github.com/paritytech/try-runtime-cli"
repository = "https://github.com/paritytech/try-runtime-cli/"

[workspace.dependencies]
assert_cmd = { version = "2.0.10" }
async-trait = { version = "0.1.57" }
clap = { version = "4.0.9" }
env_logger = { version = "0.10.0" }
hex = { version = "0.4.3", default-features = false }
log = { version = "0.4.17" }
parity-scale-codec = { version = "3.6.1" }
regex = { version = "1.7.3" }
serde = { version = "1.0.136" }
serde_json = { version = "1.0.85" }
tempfile = { version = "3.1.0" }
tokio = { version = "1.27.0" }
zstd = { version = "0.11.2", default-features = false }

# Substrate
frame-remote-externalities = { git = "https://github.com/paritytech/substrate", branch = "master" }
frame-try-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" }

sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" }

sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-externalities = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-weights = { git = "https://github.com/paritytech/substrate", branch = "master" }

substrate-rpc-client = { git = "https://github.com/paritytech/substrate", branch = "master" }
substrate-cli-test-utils = { git = "https://github.com/paritytech/substrate", branch = "master" }

node-primitives = { git = "https://github.com/paritytech/substrate", branch = "master" }
node-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }

# Local
try-runtime-core = { path = "core" }
26 changes: 11 additions & 15 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
name = "try-runtime-cli"
version.workspace = true
authors.workspace = true
description.workspace = true
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
description = "Substrate's programmatic testing framework."

[[bin]]
name = "try-runtime"
Expand All @@ -16,19 +16,15 @@ path = "main.rs"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
# Crates.io
clap = { version = "4.0.9", features = ["derive"] }
env_logger = "0.10.0"
parity-scale-codec = { version = "3.6.1", features = ["derive"] }
tokio = { version = "1.25.0", features = ["full"] }
clap = { workspace = true, features = ["derive"] }
env_logger = { workspace = true }
parity-scale-codec = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["full"] }

# Substrate
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-executor = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
node-executor = { workspace = true }
node-primitives = { workspace = true }

node-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }
node-primitives = { git = "https://github.com/paritytech/substrate", branch = "master" }

# Local
try-runtime-core = { path = "../core", features = ["cli"] }
try-runtime-core = { workspace = true, features = ["cli"] }
77 changes: 34 additions & 43 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,51 @@
name = "try-runtime-core"
version.workspace = true
authors.workspace = true
description.workspace = true
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
description = "Substrate's programmatic testing framework."

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
# Crates.io
async-trait = "0.1.57"
clap = { version = "4.0.9", features = ["derive"], optional = true }
hex = { version = "0.4.3", default-features = false }
log = "0.4.17"
parity-scale-codec = { version = "3.6.1", features = ["derive"] }
serde = "1.0.136"
serde_json = "1.0.85"
zstd = { version = "0.11.2", default-features = false }

# Substrate
frame-remote-externalities = { git = "https://github.com/paritytech/substrate", branch = "master" }
frame-try-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", features=["try-runtime"] }

sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }

sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-externalities = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-weights = { git = "https://github.com/paritytech/substrate", branch = "master" }

substrate-rpc-client = { git = "https://github.com/paritytech/substrate", branch = "master" }
async-trait = { workspace = true }
clap = { workspace = true, features = ["derive"], optional = true }
hex = { workspace = true }
log = { workspace = true }
parity-scale-codec = { workspace = true, features = ["derive"] }
serde = { workspace = true }
serde_json = { workspace = true }
zstd = { workspace = true }

frame-remote-externalities = { workspace = true }
frame-try-runtime = { workspace = true, features=["try-runtime"] }
sc-cli = { workspace = true }
sc-executor = { workspace = true }
sp-api = { workspace = true }
sp-version = { workspace = true }
sp-core = { workspace = true }
sp-externalities = { workspace = true }
sp-io = { workspace = true }
sp-keystore = { workspace = true }
sp-runtime = { workspace = true }
sp-rpc = { workspace = true }
sp-state-machine = { workspace = true }
sp-weights = { workspace = true }
substrate-rpc-client = { workspace = true }

[dev-dependencies]
# Crates.io
assert_cmd = "2.0.10"
regex = "1.7.3"
tempfile = "3.1.0"
tokio = "1.27.0"

# Substrate
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" }

node-primitives = { git = "https://github.com/paritytech/substrate", branch = "master" }
node-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }

substrate-cli-test-utils = { git = "https://github.com/paritytech/substrate", branch = "master", features = ["try-runtime"]}
assert_cmd = { workspace = true }
regex = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true }

sc-service = { workspace = true }
node-primitives = { workspace = true }
node-executor = { workspace = true }
substrate-cli-test-utils = { workspace = true, features = ["try-runtime"] }

[features]
cli = ["clap"]
Expand Down

0 comments on commit f61431b

Please sign in to comment.