mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: move db-access example into a separate module (#7902)
This commit is contained in:
committed by
GitHub
parent
6425064d07
commit
fd46df069e
11
Cargo.lock
generated
11
Cargo.lock
generated
@ -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"
|
||||
|
||||
@ -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"]
|
||||
|
||||
@ -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"
|
||||
@ -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
|
||||
|
||||
|
||||
16
examples/db-access/Cargo.toml
Normal file
16
examples/db-access/Cargo.toml
Normal file
@ -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
|
||||
Reference in New Issue
Block a user