diff --git a/Cargo.lock b/Cargo.lock index 027cd7e85..b67a7935c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2204,6 +2204,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "db-access" +version = "0.0.0" +dependencies = [ + "eyre", + "reth-db", + "reth-primitives", + "reth-provider", + "reth-rpc-types", +] + [[package]] name = "debug-helper" version = "0.3.13" diff --git a/Cargo.toml b/Cargo.toml index 954fd85d8..cee449b22 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -87,6 +87,7 @@ members = [ "examples/custom-inspector/", "examples/exex/minimal/", "examples/exex/op-bridge/", + "examples/db-access", "testing/ef-tests/", ] default-members = ["bin/reth"] diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 2379e9a0f..02c571786 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -25,10 +25,6 @@ futures.workspace = true async-trait.workspace = true tokio.workspace = true -[[example]] -name = "db-access" -path = "db-access.rs" - [[example]] name = "network" path = "network.rs" \ No newline at end of file diff --git a/examples/README.md b/examples/README.md index dcec15d35..574efe961 100644 --- a/examples/README.md +++ b/examples/README.md @@ -38,7 +38,7 @@ to make a PR! | Example | Description | | --------------------------- | --------------------------------------------------------------- | -| [DB access](./db-access.rs) | Illustrates how to access Reth's database in a separate process | +| [DB access](./db-access) | Illustrates how to access Reth's database in a separate process | ## Network diff --git a/examples/db-access/Cargo.toml b/examples/db-access/Cargo.toml new file mode 100644 index 000000000..e447493c2 --- /dev/null +++ b/examples/db-access/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "db-access" +version = "0.0.0" +publish = false +edition.workspace = true +license.workspace = true + + +[dependencies] +reth-db.workspace = true +reth-primitives.workspace = true +reth-provider.workspace = true +reth-rpc-types.workspace = true + + +eyre.workspace = true diff --git a/examples/db-access.rs b/examples/db-access/src/main.rs similarity index 100% rename from examples/db-access.rs rename to examples/db-access/src/main.rs