From 1a40daef8aa077275c7e03003ed9b8dc6d36cf6e Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 31 Aug 2023 12:09:27 -0700 Subject: [PATCH] docs: add aquamarine as dep to reth (#4433) --- Cargo.lock | 1 + Cargo.toml | 1 + bin/reth/Cargo.toml | 10 ++++++++++ bin/reth/src/lib.rs | 3 +++ crates/blockchain-tree/Cargo.toml | 2 +- crates/net/network/Cargo.toml | 2 +- crates/stages/Cargo.toml | 2 +- crates/transaction-pool/Cargo.toml | 2 +- 8 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9ed016832..3f43893b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5172,6 +5172,7 @@ dependencies = [ name = "reth" version = "0.1.0-alpha.8" dependencies = [ + "aquamarine", "backon", "boyer-moore-magiclen", "clap", diff --git a/Cargo.toml b/Cargo.toml index 98c77b92a..e80531040 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -112,6 +112,7 @@ ethers-signers = { version = "2.0", default-features = false } ethers-middleware = { version = "2.0", default-features = false } ## misc +aquamarine = "0.3" bytes = "1.4" bitflags = "2.3" tracing = "0.1.0" diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index d09d0b966..cba10e316 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -6,6 +6,15 @@ rust-version.workspace = true license.workspace = true homepage.workspace = true repository.workspace = true +description = """ +Reth node implementation +""" + +[package.metadata.cargo-udeps.ignore] +normal = [ + # Used for diagrams in docs + "aquamarine", +] [dependencies] # reth @@ -81,6 +90,7 @@ pin-project.workspace = true hyper = "0.14.25" # misc +aquamarine.workspace = true eyre = "0.6.8" clap = { version = "4", features = ["derive"] } tempfile = { version = "3.3.0" } diff --git a/bin/reth/src/lib.rs b/bin/reth/src/lib.rs index dbaa2ce58..c9e02bc34 100644 --- a/bin/reth/src/lib.rs +++ b/bin/reth/src/lib.rs @@ -83,3 +83,6 @@ pub mod rpc { #[cfg(all(feature = "jemalloc", unix))] use jemallocator as _; + +// for rendering diagrams +use aquamarine as _; diff --git a/crates/blockchain-tree/Cargo.toml b/crates/blockchain-tree/Cargo.toml index e18e2562e..70e3e1803 100644 --- a/crates/blockchain-tree/Cargo.toml +++ b/crates/blockchain-tree/Cargo.toml @@ -31,7 +31,7 @@ reth-metrics = { workspace = true, features = ["common"] } metrics.workspace = true # misc -aquamarine = "0.3.0" +aquamarine.workspace = true linked_hash_set = "0.1.4" [dev-dependencies] diff --git a/crates/net/network/Cargo.toml b/crates/net/network/Cargo.toml index 8ac11a46a..0f4444a24 100644 --- a/crates/net/network/Cargo.toml +++ b/crates/net/network/Cargo.toml @@ -51,7 +51,7 @@ metrics.workspace = true # misc auto_impl = "1" -aquamarine = "0.3.0" +aquamarine.workspace = true tracing.workspace = true fnv = "1.0" thiserror.workspace = true diff --git a/crates/stages/Cargo.toml b/crates/stages/Cargo.toml index 7ae6f5fca..01c3b78d7 100644 --- a/crates/stages/Cargo.toml +++ b/crates/stages/Cargo.toml @@ -42,7 +42,7 @@ metrics.workspace = true # misc thiserror.workspace = true -aquamarine = "0.3.0" +aquamarine.workspace = true itertools.workspace = true rayon.workspace = true num-traits = "0.2.15" diff --git a/crates/transaction-pool/Cargo.toml b/crates/transaction-pool/Cargo.toml index 9354ce2d1..a5ef62b83 100644 --- a/crates/transaction-pool/Cargo.toml +++ b/crates/transaction-pool/Cargo.toml @@ -36,7 +36,7 @@ reth-metrics.workspace = true metrics.workspace = true # misc -aquamarine = "0.3.0" +aquamarine.workspace = true thiserror.workspace = true tracing.workspace = true serde = { workspace = true, features = ["derive", "rc"], optional = true }