diff --git a/Cargo.lock b/Cargo.lock index e8a8039233b..51d7c85510a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6079,6 +6079,26 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "ratatui" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f44c9e68fd46eda15c646fbb85e1040b657a58cdc8c98db1d97a55930d991eef" +dependencies = [ + "bitflags 2.5.0", + "cassowary", + "compact_str", + "crossterm", + "itertools 0.12.1", + "lru", + "paste", + "stability", + "strum", + "unicode-segmentation", + "unicode-truncate", + "unicode-width", +] + [[package]] name = "ratatui" version = "0.27.0" @@ -6299,7 +6319,7 @@ dependencies = [ "proptest", "proptest-arbitrary-interop", "rand 0.8.5", - "ratatui", + "ratatui 0.27.0", "rayon", "reth-basic-payload-builder", "reth-beacon-consensus", @@ -6582,6 +6602,24 @@ dependencies = [ [[package]] name = "reth-cli-commands" version = "1.0.0" +dependencies = [ + "ahash", + "clap", + "comfy-table", + "crossterm", + "eyre", + "human_bytes", + "ratatui 0.26.3", + "reth-db", + "reth-db-api", + "reth-fs-util", + "reth-node-core", + "reth-primitives", + "reth-provider", + "serde", + "serde_json", + "tracing", +] [[package]] name = "reth-cli-runner" diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index 88506f5637f..5122dbd1c5a 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -21,7 +21,7 @@ reth-fs-util.workspace = true reth-db = { workspace = true, features = ["mdbx"] } reth-db-api.workspace = true reth-exex.workspace = true -reth-provider = { workspace = true } +reth-provider.workspace = true reth-evm.workspace = true reth-revm.workspace = true reth-stages.workspace = true diff --git a/crates/cli/commands/Cargo.toml b/crates/cli/commands/Cargo.toml index d12abefcd8b..b1a384e805e 100644 --- a/crates/cli/commands/Cargo.toml +++ b/crates/cli/commands/Cargo.toml @@ -8,3 +8,27 @@ homepage.workspace = true repository.workspace = true [lints] + +[dependencies] +reth-db = { workspace = true, features = ["mdbx"] } +reth-db-api.workspace = true +reth-provider.workspace = true +reth-primitives.workspace = true +reth-node-core.workspace = true +reth-fs-util.workspace = true + +# misc +ahash = "0.8" +human_bytes = "0.4.1" +eyre.workspace = true +clap = { workspace = true, features = ["derive", "env"] } +serde.workspace = true +serde_json.workspace = true +tracing.workspace = true + +# tui +comfy-table = "7.0" +crossterm = "0.27.0" +ratatui = { version = "0.27", default-features = false, features = [ + "crossterm", +] } \ No newline at end of file diff --git a/crates/cli/commands/src/lib.rs b/crates/cli/commands/src/lib.rs index 33983bb856d..d165572d080 100644 --- a/crates/cli/commands/src/lib.rs +++ b/crates/cli/commands/src/lib.rs @@ -7,3 +7,6 @@ )] #![cfg_attr(not(test), warn(unused_crate_dependencies))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] + + +pub mod db; \ No newline at end of file