Skip to content

Commit 6438534

Browse files
committed
Move all roles members dependency to workspace central
1 parent 48d78bc commit 6438534

File tree

9 files changed

+196
-744
lines changed

9 files changed

+196
-744
lines changed

Diff for: roles/Cargo.lock

+24-608
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: roles/Cargo.toml

+37-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[workspace]
2-
exclude = ["roles-utils/config-helpers"]
32
resolver="2"
43

54
members = [
@@ -20,3 +19,40 @@ opt-level = 1
2019
[profile.test]
2120
# Required by super_safe_lock
2221
opt-level = 1
22+
23+
[workspace.dependencies]
24+
stratum-common = { path = "../common" }
25+
binary_sv2 = { path = "../protocols/v2/binary-sv2" }
26+
buffer_sv2 = { path = "../utils/buffer" }
27+
codec_sv2 = { path = "../protocols/v2/codec-sv2", features = ["noise_sv2", "with_buffer_pool"] }
28+
framing_sv2 = { path = "../protocols/v2/framing-sv2" }
29+
const_sv2 = { path = "../protocols/v2/const-sv2" }
30+
noise_sv2 = { path = "../protocols/v2/noise-sv2" }
31+
network_helpers_sv2 = { path = "roles-utils/network-helpers", features=["with_buffer_pool"] }
32+
roles_logic_sv2 = { path = "../protocols/v2/roles-logic-sv2" }
33+
v1 = { path = "../protocols/v1", package="sv1_api" }
34+
error_handling = { path = "../utils/error-handling" }
35+
key-utils = { path = "../utils/key-utils" }
36+
config-helpers = { path = "roles-utils/config-helpers" }
37+
rpc_sv2 = { path = "roles-utils/rpc" }
38+
39+
async-channel = "1.5.1"
40+
async-recursion = "0.3.2"
41+
once_cell = "1.12.0"
42+
serde = { version = "1.0.89", default-features = false, features = ["derive", "alloc"] }
43+
serde_json = { version = "1.0.64", default-features = false, features = ["alloc"] }
44+
futures = "0.3.25"
45+
tokio = { version = "1", features = ["full"] }
46+
ext-config = { version = "0.14.0", features = ["toml"], package = "config" }
47+
tracing = { version = "0.1" }
48+
tracing-subscriber = { version = "0.3" }
49+
tokio-util = { version = "0.7.10", features = ["codec"] }
50+
rand = "0.8.4"
51+
primitive-types = "0.13.1"
52+
nohash-hasher = "0.2.0"
53+
hashbrown = { version = "0.11", default-features = false, features = ["ahash", "serde"] }
54+
hex = "0.4.3"
55+
sha2 = "0.10.6"
56+
num-bigint = "0.4.3"
57+
num-traits = "0.2.15"
58+
clap = { version = "^4.5.4", features = ["derive"] }

Diff for: roles/jd-client/Cargo.toml

+20-20
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ name = "jd_client"
1616
path = "src/lib/mod.rs"
1717

1818
[dependencies]
19-
stratum-common = { path = "../../common" }
20-
async-channel = "1.5.1"
21-
async-recursion = "0.3.2"
22-
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
23-
buffer_sv2 = { path = "../../utils/buffer" }
24-
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2", "with_buffer_pool"] }
25-
framing_sv2 = { path = "../../protocols/v2/framing-sv2" }
26-
network_helpers_sv2 = { path = "../roles-utils/network-helpers", features=["with_buffer_pool"] }
27-
roles_logic_sv2 = { path = "../../protocols/v2/roles-logic-sv2" }
28-
serde = { version = "1.0.89", default-features = false, features = ["derive", "alloc"] }
29-
futures = "0.3.25"
30-
tokio = { version = "1", features = ["full"] }
31-
ext-config = { version = "0.14.0", features = ["toml"], package = "config" }
32-
tracing = { version = "0.1" }
33-
tracing-subscriber = { version = "0.3" }
34-
error_handling = { path = "../../utils/error-handling" }
35-
nohash-hasher = "0.2.0"
36-
key-utils = { path = "../../utils/key-utils" }
37-
primitive-types = "0.13.1"
38-
config-helpers = { path = "../roles-utils/config-helpers" }
19+
stratum-common.workspace = true
20+
async-channel.workspace = true
21+
async-recursion.workspace = true
22+
binary_sv2.workspace = true
23+
buffer_sv2.workspace = true
24+
codec_sv2.workspace = true
25+
framing_sv2.workspace = true
26+
network_helpers_sv2.workspace = true
27+
roles_logic_sv2.workspace = true
28+
serde.workspace = true
29+
futures.workspace = true
30+
tokio.workspace = true
31+
ext-config.workspace = true
32+
tracing.workspace = true
33+
tracing-subscriber.workspace = true
34+
error_handling.workspace = true
35+
nohash-hasher.workspace = true
36+
key-utils.workspace = true
37+
primitive-types.workspace = true
38+
config-helpers.workspace = true

Diff for: roles/jd-server/Cargo.toml

+23-23
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,26 @@ name = "jd_server"
1717
path = "src/lib/mod.rs"
1818

1919
[dependencies]
20-
stratum-common = { version = "1.0.0", path = "../../common" }
21-
async-channel = "1.5.1"
22-
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
23-
buffer_sv2 = { path = "../../utils/buffer" }
24-
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2"] }
25-
const_sv2 = { path = "../../protocols/v2/const-sv2" }
26-
network_helpers_sv2 = { path = "../roles-utils/network-helpers" }
27-
noise_sv2 = { path = "../../protocols/v2/noise-sv2" }
28-
rand = "0.8.4"
29-
roles_logic_sv2 = { path = "../../protocols/v2/roles-logic-sv2" }
30-
tokio = { version = "1", features = ["full"] }
31-
ext-config = { version = "0.14.0", features = ["toml"], package = "config" }
32-
tracing = { version = "0.1" }
33-
tracing-subscriber = "0.3"
34-
error_handling = { path = "../../utils/error-handling" }
35-
nohash-hasher = "0.2.0"
36-
serde_json = { version = "1.0", default-features = false, features = ["alloc","raw_value"] }
37-
serde = { version = "1.0.89", features = ["derive", "alloc"], default-features = false }
38-
hashbrown = { version = "0.11", default-features = false, features = ["ahash", "serde"] }
39-
key-utils = { path = "../../utils/key-utils" }
40-
rpc_sv2 = { path = "../roles-utils/rpc" }
41-
hex = "0.4.3"
42-
config-helpers = { path = "../roles-utils/config-helpers" }
20+
stratum-common.workspace = true
21+
async-channel.workspace = true
22+
binary_sv2.workspace = true
23+
buffer_sv2.workspace = true
24+
codec_sv2.workspace = true
25+
const_sv2.workspace = true
26+
network_helpers_sv2.workspace = true
27+
noise_sv2.workspace = true
28+
rand.workspace = true
29+
roles_logic_sv2.workspace = true
30+
tokio.workspace = true
31+
ext-config.workspace = true
32+
tracing.workspace = true
33+
tracing-subscriber.workspace = true
34+
error_handling.workspace = true
35+
nohash-hasher.workspace = true
36+
serde_json.workspace = true
37+
serde.workspace = true
38+
hashbrown.workspace = true
39+
key-utils.workspace = true
40+
rpc_sv2.workspace = true
41+
hex.workspace = true
42+
config-helpers.workspace = true

Diff for: roles/mining-proxy/Cargo.toml

+18-18
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ name = "mining_proxy_sv2"
1717
path = "src/lib/mod.rs"
1818

1919
[dependencies]
20-
stratum-common = { path = "../../common" }
21-
async-channel = "1.8.0"
22-
async-recursion = "0.3.2"
23-
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
24-
buffer_sv2 = { path = "../../utils/buffer" }
25-
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2", "with_buffer_pool"] }
26-
const_sv2 = { path = "../../protocols/v2/const-sv2" }
27-
futures = "0.3.19"
28-
network_helpers_sv2 = { path = "../roles-utils/network-helpers", features = ["with_buffer_pool"] }
29-
once_cell = "1.12.0"
30-
roles_logic_sv2 = { path = "../../protocols/v2/roles-logic-sv2" }
31-
serde = { version = "1.0.89", features = ["derive", "alloc"], default-features = false }
32-
tokio = { version = "1", features = ["full"] }
33-
ext-config = { version = "0.14.0", features = ["toml"], package = "config" }
34-
tracing = {version = "0.1"}
35-
tracing-subscriber = {version = "0.3"}
36-
nohash-hasher = "0.2.0"
37-
key-utils = { path = "../../utils/key-utils" }
20+
stratum-common.workspace = true
21+
async-channel.workspace = true
22+
async-recursion.workspace = true
23+
binary_sv2.workspace = true
24+
buffer_sv2.workspace = true
25+
codec_sv2.workspace = true
26+
const_sv2.workspace = true
27+
futures.workspace = true
28+
network_helpers_sv2.workspace = true
29+
once_cell.workspace = true
30+
roles_logic_sv2.workspace = true
31+
serde.workspace = true
32+
tokio.workspace = true
33+
ext-config.workspace = true
34+
tracing.workspace = true
35+
tracing-subscriber.workspace = true
36+
nohash-hasher.workspace = true
37+
key-utils.workspace = true

Diff for: roles/pool/Cargo.toml

+20-20
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ name = "pool_sv2"
1717
path = "src/lib/mod.rs"
1818

1919
[dependencies]
20-
stratum-common = { path = "../../common" }
21-
async-channel = "1.5.1"
22-
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
23-
buffer_sv2 = { path = "../../utils/buffer" }
24-
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2"] }
25-
const_sv2 = { path = "../../protocols/v2/const-sv2" }
26-
network_helpers_sv2 = { path = "../roles-utils/network-helpers", features =["with_buffer_pool"] }
27-
noise_sv2 = { path = "../../protocols/v2/noise-sv2" }
28-
rand = "0.8.4"
29-
roles_logic_sv2 = { path = "../../protocols/v2/roles-logic-sv2" }
30-
serde = { version = "1.0.89", features = ["derive", "alloc"], default-features = false }
31-
tokio = { version = "1", features = ["full"] }
32-
ext-config = { version = "0.14.0", features = ["toml"], package = "config" }
33-
tracing = { version = "0.1" }
34-
tracing-subscriber = "0.3"
35-
async-recursion = "1.0.0"
36-
error_handling = { path = "../../utils/error-handling" }
37-
nohash-hasher = "0.2.0"
38-
key-utils = { path = "../../utils/key-utils" }
20+
stratum-common.workspace = true
21+
async-channel.workspace = true
22+
binary_sv2.workspace = true
23+
buffer_sv2.workspace = true
24+
codec_sv2.workspace = true
25+
const_sv2.workspace = true
26+
network_helpers_sv2.workspace = true
27+
noise_sv2.workspace = true
28+
rand.workspace = true
29+
roles_logic_sv2.workspace = true
30+
serde.workspace = true
31+
tokio.workspace = true
32+
ext-config.workspace = true
33+
tracing.workspace = true
34+
tracing-subscriber.workspace = true
35+
async-recursion.workspace = true
36+
error_handling.workspace = true
37+
nohash-hasher.workspace = true
38+
key-utils.workspace = true
3939

4040
[dev-dependencies]
41-
hex = "0.4.3"
41+
hex.workspace = true

Diff for: roles/test-utils/mining-device-sv1/Cargo.toml

+12-12
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ name = "mining_device_sv1"
1818
path = "src/lib.rs"
1919

2020
[dependencies]
21-
stratum-common = { path = "../../../common" }
22-
async-channel = "1.5.1"
23-
roles_logic_sv2 = { path = "../../../protocols/v2/roles-logic-sv2" }
24-
serde = { version = "1.0.89", default-features = false, features = ["derive", "alloc"] }
25-
serde_json = { version = "1.0.64", default-features = false, features = ["alloc"] }
26-
v1 = { path="../../../protocols/v1", package="sv1_api" }
27-
num-bigint = "0.4.3"
28-
num-traits = "0.2.15"
29-
tracing = "0.1.41"
30-
tracing-subscriber = "0.3.19"
31-
tokio = { version = "1.43.0", features = ["full"] }
32-
primitive-types = "0.13.1"
21+
stratum-common.workspace = true
22+
async-channel.workspace = true
23+
roles_logic_sv2.workspace = true
24+
serde.workspace = true
25+
serde_json.workspace = true
26+
v1.workspace = true
27+
num-bigint.workspace = true
28+
num-traits.workspace = true
29+
tracing.workspace = true
30+
tracing-subscriber.workspace = true
31+
tokio.workspace = true
32+
primitive-types.workspace = true

Diff for: roles/test-utils/mining-device/Cargo.toml

+18-18
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ path = "src/lib/mod.rs"
2020

2121

2222
[dependencies]
23-
stratum-common = { path = "../../../common" }
24-
codec_sv2 = { path = "../../../protocols/v2/codec-sv2", features=["noise_sv2"] }
25-
roles_logic_sv2 = { path = "../../../protocols/v2/roles-logic-sv2" }
26-
const_sv2 = { path = "../../../protocols/v2/const-sv2" }
27-
async-channel = "1.5.1"
28-
binary_sv2 = { path = "../../../protocols/v2/binary-sv2" }
29-
network_helpers_sv2 = { path = "../../roles-utils/network-helpers" }
30-
buffer_sv2 = { path = "../../../utils/buffer"}
31-
async-recursion = "0.3.2"
32-
rand = "0.8.4"
33-
futures = "0.3.5"
34-
key-utils = { path = "../../../utils/key-utils" }
35-
clap = { version = "^4.5.4", features = ["derive"] }
36-
tracing = { version = "0.1" }
37-
tracing-subscriber = "0.3"
38-
sha2 = "0.10.6"
39-
tokio = "^1.38.0"
40-
primitive-types = "0.13.1"
23+
stratum-common.workspace = true
24+
codec_sv2.workspace = true
25+
roles_logic_sv2.workspace = true
26+
const_sv2.workspace = true
27+
async-channel.workspace = true
28+
binary_sv2.workspace = true
29+
network_helpers_sv2.workspace = true
30+
buffer_sv2.workspace = true
31+
async-recursion.workspace = true
32+
rand.workspace = true
33+
futures.workspace = true
34+
key-utils.workspace = true
35+
clap.workspace = true
36+
tracing.workspace = true
37+
tracing-subscriber.workspace = true
38+
sha2.workspace = true
39+
tokio.workspace = true
40+
primitive-types.workspace = true

Diff for: roles/translator/Cargo.toml

+24-24
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,30 @@ name = "translator_sv2"
2020
path = "src/main.rs"
2121

2222
[dependencies]
23-
stratum-common = { path = "../../common" }
24-
async-channel = "1.5.1"
25-
async-recursion = "0.3.2"
26-
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
27-
buffer_sv2 = { path = "../../utils/buffer" }
28-
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2", "with_buffer_pool"] }
29-
framing_sv2 = { path = "../../protocols/v2/framing-sv2" }
30-
network_helpers_sv2 = { path = "../roles-utils/network-helpers", features=["with_buffer_pool"] }
31-
once_cell = "1.12.0"
32-
roles_logic_sv2 = { path = "../../protocols/v2/roles-logic-sv2" }
33-
serde = { version = "1.0.89", default-features = false, features = ["derive", "alloc"] }
34-
serde_json = { version = "1.0.64", default-features = false, features = ["alloc"] }
35-
futures = "0.3.25"
36-
tokio = { version = "1", features = ["full"] }
37-
ext-config = { version = "0.14.0", features = ["toml"], package = "config" }
38-
tracing = { version = "0.1" }
39-
tracing-subscriber = { version = "0.3" }
40-
v1 = { path = "../../protocols/v1", package="sv1_api" }
41-
error_handling = { path = "../../utils/error-handling" }
42-
key-utils = { path = "../../utils/key-utils" }
43-
tokio-util = { version = "0.7.10", features = ["codec"] }
44-
rand = "0.8.4"
45-
primitive-types = "0.13.1"
23+
stratum-common.workspace = true
24+
async-channel.workspace = true
25+
async-recursion.workspace = true
26+
binary_sv2.workspace = true
27+
buffer_sv2.workspace = true
28+
codec_sv2.workspace = true
29+
framing_sv2.workspace = true
30+
network_helpers_sv2.workspace = true
31+
once_cell.workspace = true
32+
roles_logic_sv2.workspace = true
33+
serde.workspace = true
34+
serde_json.workspace = true
35+
futures.workspace = true
36+
tokio.workspace = true
37+
ext-config.workspace = true
38+
tracing.workspace = true
39+
tracing-subscriber.workspace = true
40+
v1.workspace = true
41+
error_handling.workspace = true
42+
key-utils.workspace = true
43+
tokio-util.workspace = true
44+
rand.workspace = true
45+
primitive-types.workspace = true
4646

4747
[dev-dependencies]
48-
sha2 = "0.10.6"
48+
sha2.workspace = true
4949

0 commit comments

Comments
 (0)