Skip to content

Commit

Permalink
Use workspace dependencies (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav authored Nov 15, 2022
1 parent bcdb154 commit 872b949
Show file tree
Hide file tree
Showing 12 changed files with 74 additions and 48 deletions.
26 changes: 26 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,29 @@ members = [
"lib/*",
"substrate-minimal/*",
]

[workspace.dependencies]
# crates.io
array-bytes = { version = "4.1" }
clap = { version = "4.0" }
fxhash = { version = "0.2" }
once_cell = { version = "1.15" }
parity-scale-codec = { version = "3.2" }
reqwest = { version = "0.11" }
serde = { version = "1.0" }
serde_json = { version = "1.0" }
thiserror = { version = "1.0" }
tokio = { version = "1.21" }
tracing = { version = "0.1" }
# hack-ink
cmd-impl = { version = "0.9.0-rc16", path = "bin/subalfred/src/command/impl" }
subalfred-core = { version = "0.9.0-rc16", path = "lib/core" }
subalfred-util = { version = "0.9.0-rc16", path = "lib/util" }
subcryptor = { version = "0.9.0-rc16", path = "substrate-minimal/subcryptor" }
subhasher = { version = "0.9.0-rc16", path = "substrate-minimal/subhasher" }
submetadatan = { version = "0.9.0-rc16", path = "substrate-minimal/submetadatan" }
subrpcer = { version = "0.9.0-rc16", path = "substrate-minimal/subrpcer" }
subruntimer = { version = "0.9.0-rc16", path = "substrate-minimal/subruntimer" }
subspector = { version = "0.9.0-rc16", path = "substrate-minimal/subspector" }
substorager = { version = "0.9.0-rc16", path = "substrate-minimal/substorager" }
subversioner = { version = "0.9.0-rc16", path = "substrate-minimal/subversioner" }
18 changes: 9 additions & 9 deletions bin/subalfred/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ vergen = { version = "7.4" }
[dependencies]
# crates.io
anyhow = { version = "1.0" }
array-bytes = { version = "4.1" }
clap = { version = "4.0", features = ["cargo", "derive", "wrap_help"] }
array-bytes = { workspace = true }
clap = { workspace = true, features = ["cargo", "derive", "wrap_help"] }
color-eyre = { version = "0.6" }
serde_json = { version = "1.0" }
tokio = { version = "1.21", features = ["macros", "rt-multi-thread"] }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
tracing-subscriber = { version = "0.3" }
unescaper = { version = "0.1" }
# hack-ink
cmd-impl = { version = "0.9.0-rc16", path = "src/command/impl" }
subalfred-core = { version = "0.9.0-rc16", path = "../../lib/core", features = ["clap"] }
subhasher = { version = "0.9.0-rc16", path = "../../substrate-minimal/subhasher" }
subrpcer = { version = "0.9.0-rc16", path = "../../substrate-minimal/subrpcer" }
substorager = { version = "0.9.0-rc16", path = "../../substrate-minimal/substorager" }
cmd-impl = { workspace = true }
subalfred-core = { workspace = true, features = ["clap"] }
subhasher = { workspace = true }
subrpcer = { workspace = true }
substorager = { workspace = true }
40 changes: 20 additions & 20 deletions lib/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,31 @@ version = "0.9.0-rc16"

[dependencies]
# crates.io
array-bytes = { version = "4.1" }
array-bytes = { workspace = true }
async-trait = { version = "0.1" }
cargo_metadata = { version = "0.15" }
cargo_toml = { version = "0.13" }
clap = { version = "4.0", optional = true, features = ["derive", "wrap_help"] }
clap = { workspace = true, optional = true, features = ["derive", "wrap_help"] }
futures = { version = "0.3" }
fxhash = { version = "0.2" }
once_cell = { version = "1.15" }
parity-scale-codec = { version = "3.2" }
fxhash = { workspace = true }
once_cell = { workspace = true }
parity-scale-codec = { workspace = true }
regex = { version = "1.7" }
reqwest = { version = "0.11", features = ["json"] }
serde = { version = "1.0" }
serde_json = { version = "1.0" }
thiserror = { version = "1.0" }
tokio = { version = "1.21", features = ["fs", "macros", "rt-multi-thread"] }
reqwest = { workspace = true, features = ["json"] }
serde = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["fs", "macros", "rt-multi-thread"] }
tokio-stream = { version = "0.1" }
tokio-tungstenite = { version = "0.17", features = ["rustls-tls-native-roots"] }
tracing = { version = "0.1" }
tracing = { workspace = true }
# hack-ink
subalfred-util = { version = "0.9.0-rc16", path = "../util" }
subcryptor = { version = "0.9.0-rc16", path = "../../substrate-minimal/subcryptor" }
subhasher = { version = "0.9.0-rc16", path = "../../substrate-minimal/subhasher" }
submetadatan = { version = "0.9.0-rc16", path = "../../substrate-minimal/submetadatan" }
subrpcer = { version = "0.9.0-rc16", path = "../../substrate-minimal/subrpcer" }
subruntimer = { version = "0.9.0-rc16", path = "../../substrate-minimal/subruntimer", features = ["serde"] }
subspector = { version = "0.9.0-rc16", path = "../../substrate-minimal/subspector" }
substorager = { version = "0.9.0-rc16", path = "../../substrate-minimal/substorager" }
subversioner = { version = "0.9.0-rc16", path = "../../substrate-minimal/subversioner", features = ["serde"] }
subalfred-util = { workspace = true }
subcryptor = { workspace = true }
subhasher = { workspace = true }
submetadatan = { workspace = true }
subrpcer = { workspace = true }
subruntimer = { workspace = true, features = ["serde"] }
subspector = { workspace = true }
substorager = { workspace = true }
subversioner = { workspace = true, features = ["serde"] }
2 changes: 1 addition & 1 deletion lib/util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ repository = "https://github.com/hack-ink/subalfred"
version = "0.9.0-rc16"

[dev-dependencies]
tracing = { version = "0.1" }
tracing = { workspace = true }
tracing-test = { version = "0.2" }
4 changes: 2 additions & 2 deletions substrate-minimal/subcryptor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ version = "0.9.0-rc16"
# crates.io
base58 = { version = "0.2" }
blake2-rfc = { version = "0.2" }
parity-scale-codec = { version = "3.2", optional = true, features = ["derive"] }
parity-scale-codec = { workspace = true, optional = true, features = ["derive"] }
ss58-registry = { version = "1.34" }
thiserror = { version = "1.0" }
thiserror = { workspace = true }

[features]
codec = [
Expand Down
4 changes: 2 additions & 2 deletions substrate-minimal/subgrandpa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ version = "0.9.0-rc16"

[dependencies]
# crates.io
parity-scale-codec = { version = "3.2", optional = true, features = ["derive"] }
serde = { version = "1.0", optional = true, features = ["derive"] }
parity-scale-codec = { workspace = true, optional = true, features = ["derive"] }
serde = { workspace = true, optional = true, features = ["derive"] }

[features]
codec = [
Expand Down
2 changes: 1 addition & 1 deletion substrate-minimal/submetadatan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ version = "0.9.0-rc16"
# crates.io
frame-metadata = { version = "15.0" }
scale-info = { version = "2.3" }
thiserror = { version = "1.0" }
thiserror = { workspace = true }
10 changes: 5 additions & 5 deletions substrate-minimal/subrpcer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ version = "0.9.0-rc16"
# crates.io
# TODO: https://github.com/dtolnay/paste/issues/72
affix = { version = "0.1" }
once_cell = { version = "1.15", optional = true }
reqwest = { version = "0.11", optional = true, features = ["json"] }
serde = { version = "1.0" }
serde_json = { version = "1.0" }
tracing = { version = "0.1", optional = true }
once_cell = { workspace = true, optional = true }
reqwest = { workspace = true, optional = true, features = ["json"] }
serde = { workspace = true }
serde_json = { workspace = true }
tracing = { workspace = true, optional = true }
ureq = { version = "2.5", optional = true, features = ["json"] }

[features]
Expand Down
2 changes: 1 addition & 1 deletion substrate-minimal/subruntimer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ version = "0.9.0-rc16"

[dependencies]
# crates.io
serde = { version = "1.0", optional = true, features = ["derive"] }
serde = { workspace = true, optional = true, features = ["derive"] }
6 changes: 3 additions & 3 deletions substrate-minimal/subspector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ version = "0.9.0-rc16"

[dependencies]
# crates.io
fxhash = { version = "0.2" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
fxhash = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
6 changes: 3 additions & 3 deletions substrate-minimal/substorager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ version = "0.9.0-rc16"

[dependencies]
# crates.io
array-bytes = { version = "4.1" }
parity-scale-codec = { version = "3.2", optional = true, features = ["derive"] }
array-bytes = { workspace = true }
parity-scale-codec = { workspace = true, optional = true, features = ["derive"] }
# hack-ink
subhasher = { version = "0.9.0-rc16", path = "../subhasher" }
subhasher = { workspace = true }

[features]
codec = [
Expand Down
2 changes: 1 addition & 1 deletion substrate-minimal/subversioner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ version = "0.9.0-rc16"

[dependencies]
# crates.io
serde = { version = "1.0", optional = true, features = ["derive"] }
serde = { workspace = true, optional = true, features = ["derive"] }

0 comments on commit 872b949

Please sign in to comment.