Skip to content

Commit 7024e9a

Browse files
authored
chore(dep): reth db workspace (#4782)
1 parent dae31fa commit 7024e9a

File tree

11 files changed

+18
-17
lines changed

11 files changed

+18
-17
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/reth/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ normal = [
2020
# reth
2121
reth-config = { path = "../../crates/config" }
2222
reth-primitives = { workspace = true, features = ["arbitrary"] }
23-
reth-db = { path = "../../crates/storage/db", features = ["mdbx", "test-utils"] }
23+
reth-db = { workspace = true, features = ["mdbx", "test-utils"] }
2424
# TODO: Temporary use of the test-utils feature
2525
reth-provider = { workspace = true, features = ["test-utils"] }
2626
reth-revm = { path = "../../crates/revm" }

crates/blockchain-tree/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ normal = [
1717
# reth
1818
reth-primitives.workspace = true
1919
reth-interfaces.workspace = true
20-
reth-db = { path = "../storage/db" }
20+
reth-db.workspace = true
2121
reth-provider.workspace = true
2222
reth-stages = { path = "../stages" }
2323

@@ -35,7 +35,7 @@ aquamarine.workspace = true
3535
linked_hash_set = "0.1.4"
3636

3737
[dev-dependencies]
38-
reth-db = { path = "../storage/db", features = ["test-utils"] }
38+
reth-db = { workspace = true, features = ["test-utils"] }
3939
reth-interfaces = { workspace = true, features = ["test-utils"] }
4040
reth-primitives = { workspace = true , features = ["test-utils"] }
4141
reth-provider = { workspace = true, features = ["test-utils"] }

crates/consensus/beacon/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ reth-consensus-common = { path = "../common" }
1313
reth-primitives.workspace = true
1414
reth-interfaces.workspace = true
1515
reth-stages = { path = "../../stages" }
16-
reth-db = { path = "../../storage/db" }
16+
reth-db.workspace = true
1717
reth-provider.workspace = true
1818
reth-rpc-types.workspace = true
1919
reth-tasks.workspace = true
@@ -40,7 +40,7 @@ reth-payload-builder = { workspace = true, features = ["test-utils"] }
4040
reth-interfaces = { workspace = true, features = ["test-utils"] }
4141
reth-stages = { path = "../../stages", features = ["test-utils"] }
4242
reth-blockchain-tree = { path = "../../blockchain-tree", features = ["test-utils"] }
43-
reth-db = { path = "../../storage/db", features = ["test-utils"] }
43+
reth-db = { workspace = true, features = ["test-utils"] }
4444
reth-provider = { workspace = true, features = ["test-utils"] }
4545
reth-tracing = { path = "../../tracing" }
4646
reth-revm = { path = "../../revm" }

crates/interfaces/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ parking_lot.workspace = true
4141
clap = { version = "4", features = ["derive"], optional = true }
4242

4343
[dev-dependencies]
44-
reth-db = { path = "../storage/db", features = ["test-utils"] }
44+
reth-db = { workspace = true, features = ["test-utils"] }
4545
tokio = { workspace = true, features = ["full"] }
4646
tokio-stream = { workspace = true, features = ["sync"] }
4747
arbitrary = { workspace = true, features = ["derive"] }

crates/net/downloaders/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description = "Implementations of various block downloaders"
1212
# reth
1313
reth-interfaces.workspace = true
1414
reth-primitives.workspace = true
15-
reth-db = { path = "../../storage/db" }
15+
reth-db.workspace = true
1616
reth-tasks.workspace = true
1717

1818
# async
@@ -38,7 +38,7 @@ tempfile = { version = "3.3", optional = true }
3838
itertools = { workspace = true, optional = true }
3939

4040
[dev-dependencies]
41-
reth-db = { path = "../../storage/db", features = ["test-utils"] }
41+
reth-db = { workspace = true, features = ["test-utils"] }
4242
reth-interfaces = { workspace = true, features = ["test-utils"] }
4343
reth-tracing = { path = "../../tracing" }
4444

crates/stages/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ normal = [
1818
# reth
1919
reth-primitives.workspace = true
2020
reth-interfaces.workspace = true
21-
reth-db = { path = "../storage/db" }
21+
reth-db.workspace = true
2222
reth-codecs = { path = "../storage/codecs" }
2323
reth-provider.workspace = true
2424
reth-trie = { path = "../trie" }
@@ -53,7 +53,7 @@ num-traits = "0.2.15"
5353
[dev-dependencies]
5454
# reth
5555
reth-primitives = { workspace = true, features = ["arbitrary"] }
56-
reth-db = { path = "../storage/db", features = ["test-utils", "mdbx"] }
56+
reth-db = { workspace = true, features = ["test-utils", "mdbx"] }
5757
reth-interfaces = { workspace = true, features = ["test-utils"] }
5858
reth-downloaders = { path = "../net/downloaders" }
5959
reth-eth-wire = { path = "../net/eth-wire" } # TODO(onbjerg): We only need this for [BlockBody]

crates/storage/db/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ pprof = { version = "0.12", features = ["flamegraph", "frame-pointer", "criterio
6161
criterion = "0.5"
6262
iai = "0.1.1"
6363
tokio = { workspace = true, features = ["full"] }
64-
reth-db = { path = ".", features = ["test-utils", "bench"] }
6564

6665
# needed for test-fuzz to work properly, see https://github.com/paradigmxyz/reth/pull/177#discussion_r1021172198
6766
secp256k1.workspace = true
@@ -97,12 +96,15 @@ arbitrary = [
9796

9897
[[bench]]
9998
name = "hash_keys"
99+
required-features = ["test-utils"]
100100
harness = false
101101

102102
[[bench]]
103103
name = "criterion"
104+
required-features = ["test-utils"]
104105
harness = false
105106

106107
[[bench]]
107108
name = "iai"
109+
required-features = ["test-utils"]
108110
harness = false

crates/storage/provider/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description = "Reth storage provider."
1313
reth-primitives.workspace = true
1414
reth-interfaces.workspace = true
1515
reth-revm-primitives = { path = "../../revm/revm-primitives" }
16-
reth-db = { path = "../db" }
16+
reth-db.workspace = true
1717
reth-trie = { path = "../../trie" }
1818

1919
# async
@@ -36,7 +36,7 @@ reth-rlp = { workspace = true, optional = true }
3636
rayon = "1.7"
3737

3838
[dev-dependencies]
39-
reth-db = { path = "../db", features = ["test-utils"] }
39+
reth-db = { workspace = true, features = ["test-utils"] }
4040
reth-primitives = { workspace = true, features = ["arbitrary", "test-utils"] }
4141
reth-rlp.workspace = true
4242
revm.workspace = true

crates/trie/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Merkle trie implementation
1515
reth-primitives.workspace = true
1616
reth-interfaces.workspace = true
1717
reth-rlp.workspace = true
18-
reth-db = { path = "../storage/db" }
18+
reth-db.workspace = true
1919

2020
# tokio
2121
tokio = { workspace = true, default-features = false, features = ["sync"] }
@@ -34,7 +34,7 @@ triehash = { version = "0.8", optional = true }
3434
[dev-dependencies]
3535
# reth
3636
reth-primitives = { workspace = true, features = ["test-utils", "arbitrary"] }
37-
reth-db = { path = "../storage/db", features = ["test-utils"] }
37+
reth-db = { workspace = true, features = ["test-utils"] }
3838
reth-provider.workspace = true
3939

4040
# trie

testing/ef-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ef-tests = []
1313

1414
[dependencies]
1515
reth-primitives.workspace = true
16-
reth-db = { path = "../../crates/storage/db", features = ["mdbx", "test-utils"] }
16+
reth-db = { workspace = true, features = ["mdbx", "test-utils"] }
1717
reth-provider.workspace = true
1818
reth-stages = { path = "../../crates/stages" }
1919
reth-rlp.workspace = true

0 commit comments

Comments
 (0)