mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
lints: move top-level lints to [workspace.lints] manifest table (#5935)
This commit is contained in:
@ -66,6 +66,14 @@ default-members = ["bin/reth"]
|
||||
# https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html
|
||||
resolver = "2"
|
||||
|
||||
[workspace.lints]
|
||||
rust.missing_debug_implementations = "warn"
|
||||
rust.missing_docs = "warn"
|
||||
rust.unreachable_pub = "warn"
|
||||
rustdoc.all = "warn"
|
||||
rust.unused_must_use = "deny"
|
||||
rust.rust_2018_idioms = "deny"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.0-alpha.13"
|
||||
edition = "2021"
|
||||
|
||||
@ -9,6 +9,9 @@ repository.workspace = true
|
||||
description = "Reth node implementation"
|
||||
default-run = "reth"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.cargo-udeps.ignore]
|
||||
normal = [
|
||||
# Used for diagrams in docs
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use std::error::Error;
|
||||
use vergen::EmitBuilder;
|
||||
|
||||
|
||||
@ -24,8 +24,7 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![allow(missing_debug_implementations)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod args;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// We use jemalloc for performance reasons
|
||||
#![allow(missing_docs)]
|
||||
#[cfg(all(feature = "jemalloc", unix))]
|
||||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(missing_docs, rustdoc::missing_crate_level_docs)]
|
||||
// We use jemalloc for performance reasons
|
||||
#[cfg(all(feature = "jemalloc", unix))]
|
||||
#[global_allocator]
|
||||
|
||||
@ -7,6 +7,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.cargo-udeps.ignore]
|
||||
normal = [
|
||||
# Used for diagrams in docs
|
||||
|
||||
@ -15,8 +15,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod blockchain_tree;
|
||||
|
||||
@ -7,6 +7,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-network.workspace = true
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod config;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "A consensus impl for local testing purposes"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-beacon-consensus.workspace = true
|
||||
|
||||
@ -12,8 +12,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use reth_beacon_consensus::BeaconEngineMessage;
|
||||
@ -42,7 +40,7 @@ use std::{
|
||||
time::{SystemTime, UNIX_EPOCH},
|
||||
};
|
||||
use tokio::sync::{mpsc::UnboundedSender, RwLock, RwLockReadGuard, RwLockWriteGuard};
|
||||
use tracing::{trace, warn};
|
||||
use tracing::trace;
|
||||
|
||||
mod client;
|
||||
mod mode;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(unreachable_pub)]
|
||||
//! auto-mine consensus integration test
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
@ -7,6 +7,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-beacon-consensus-core.workspace = true
|
||||
|
||||
@ -5,14 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
unused_crate_dependencies,
|
||||
unreachable_pub,
|
||||
rustdoc::all
|
||||
)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub use reth_beacon_consensus_core::BeaconConsensus;
|
||||
|
||||
@ -7,6 +7,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
/// Collection of consensus validation methods.
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Ethereum fork types used in reth."
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-codecs.workspace = true
|
||||
|
||||
@ -11,8 +11,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms, unused_crate_dependencies)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod forkid;
|
||||
|
||||
@ -7,6 +7,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
reth-primitives.workspace = true
|
||||
reth-nippy-jar.workspace = true
|
||||
|
||||
@ -9,14 +9,7 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
unused_crate_dependencies,
|
||||
unreachable_pub,
|
||||
rustdoc::all
|
||||
)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![warn(unused_crate_dependencies)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
/// Consensus traits.
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "reth metrics utilities"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-metrics-derive.workspace = true
|
||||
|
||||
@ -7,6 +7,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
@ -10,8 +10,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
/// Metrics derive macro.
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Types shared across network code"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod ban_list;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Ethereum network discovery"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -21,8 +21,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms, unreachable_pub, unused_crate_dependencies)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use crate::{
|
||||
@ -64,7 +62,7 @@ use tokio::{
|
||||
time::Interval,
|
||||
};
|
||||
use tokio_stream::{wrappers::ReceiverStream, Stream, StreamExt};
|
||||
use tracing::{debug, trace, warn};
|
||||
use tracing::{debug, trace};
|
||||
|
||||
pub mod error;
|
||||
pub mod proto;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Support for EIP-1459 Node Discovery via DNS"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -10,8 +10,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub use crate::resolver::{DnsResolver, MapResolver, Resolver};
|
||||
@ -47,7 +45,7 @@ use tokio_stream::{
|
||||
wrappers::{ReceiverStream, UnboundedReceiverStream},
|
||||
Stream, StreamExt,
|
||||
};
|
||||
use tracing::{debug, trace, warn};
|
||||
use tracing::{debug, trace};
|
||||
|
||||
mod config;
|
||||
mod error;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Implementations of various block downloaders"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-interfaces.workspace = true
|
||||
|
||||
@ -9,8 +9,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
/// The collection of algorithms for downloading block bodies.
|
||||
|
||||
@ -7,6 +7,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
reth-primitives.workspace = true
|
||||
reth-net-common.workspace = true
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod algorithm;
|
||||
|
||||
@ -8,6 +8,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-codecs.workspace = true
|
||||
|
||||
@ -10,8 +10,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod builder;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Helpers for working around NAT"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
|
||||
# nat
|
||||
|
||||
@ -9,8 +9,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use igd::aio::search_gateway;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Network interfaces"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -11,8 +11,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use async_trait::async_trait;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Ethereum network support"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.cargo-udeps.ignore]
|
||||
normal = [
|
||||
# Used for diagrams in docs
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(missing_docs)]
|
||||
use criterion::*;
|
||||
use futures::StreamExt;
|
||||
use pprof::criterion::{Output, PProfProfiler};
|
||||
|
||||
@ -106,8 +106,7 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, rustdoc::all)] // TODO(danipopes): unreachable_pub
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![allow(unreachable_pub)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
#[cfg(any(test, feature = "test-utils"))]
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(unreachable_pub)]
|
||||
//! Helper extension traits for working with clique providers.
|
||||
|
||||
use async_trait::async_trait;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(unreachable_pub)]
|
||||
//! Helper struct for working with a clique geth instance.
|
||||
|
||||
use enr::k256::ecdsa::SigningKey;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(unreachable_pub)]
|
||||
pub mod clique_middleware;
|
||||
mod geth;
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(unreachable_pub)]
|
||||
//! Testing gossiping of transactions.
|
||||
|
||||
use crate::multiplex::proto::{PingPongProtoMessage, PingPongProtoMessageKind};
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(unreachable_pub)]
|
||||
//! Tests for eth related requests
|
||||
|
||||
use rand::Rng;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "A basic payload builder for reth that uses the txpool API to build payloads."
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -5,14 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
unused_crate_dependencies,
|
||||
unreachable_pub,
|
||||
rustdoc::all
|
||||
)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use alloy_rlp::Encodable;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "reth payload builder"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -97,8 +97,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod database;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "A basic ethereum payload builder for reth that uses the txpool API to build payloads."
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
#[cfg(not(feature = "optimism"))]
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "A payload builder for op-reth that builds optimistic payloads."
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
#[cfg(feature = "optimism")]
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Payload validation support"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -5,14 +5,7 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
unreachable_pub,
|
||||
unused_crate_dependencies,
|
||||
rustdoc::all
|
||||
)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![warn(unused_crate_dependencies)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use reth_primitives::{ChainSpec, SealedBlock};
|
||||
|
||||
@ -8,6 +8,9 @@ repository.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "Commonly used types in reth."
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-codecs.workspace = true
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(missing_docs)]
|
||||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
use proptest::{prelude::*, strategy::ValueTree};
|
||||
use reth_primitives::trie::Nibbles;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(missing_docs)]
|
||||
use alloy_rlp::Decodable;
|
||||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
use pprof::criterion::{Output, PProfProfiler};
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(missing_docs, unreachable_pub)]
|
||||
use criterion::{black_box, criterion_group, criterion_main, Criterion};
|
||||
use proptest::{
|
||||
prelude::*,
|
||||
|
||||
@ -12,8 +12,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod account;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Pruning implementation"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -5,8 +5,7 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, unreachable_pub, rustdoc::all)] // TODO(danipopes): missing_docs
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![allow(missing_docs)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod builder;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "reth specific revm utilities"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "revm inspector implementations used by reth"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-rpc-types.workspace = true
|
||||
|
||||
@ -10,8 +10,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms, unused_crate_dependencies)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
/// An inspector implementation for an EIP2930 Accesslist
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
/// Contains glue code for integrating reth database into revm's [Database].
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "IPC support for reth"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
|
||||
# async/net
|
||||
|
||||
@ -9,8 +9,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
#[cfg(unix)]
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Reth RPC interfaces"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -11,8 +11,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod admin;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Helpers for configuring RPC"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -132,8 +132,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use std::{
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(unreachable_pub)]
|
||||
//! Standalone http tests
|
||||
|
||||
use crate::utils::{launch_http, launch_http_ws, launch_ws};
|
||||
|
||||
@ -21,7 +21,7 @@ impl ToRpcParams for RawRpcParams {
|
||||
async fn test_eth_balance_serde() {
|
||||
let handle = launch_http(vec![RethRpcModule::Eth]).await;
|
||||
let s = r#"{"jsonrpc":"2.0","id":1,"method":"eth_getBalance","params":["0xaa00000000000000000000000000000000000000","0x898753d8fdd8d92c1907ca21e68c7970abd290c647a202091181deec3f30a0b2"]}"#;
|
||||
let req: Request = serde_json::from_str(s).unwrap();
|
||||
let req: Request<'_> = serde_json::from_str(s).unwrap();
|
||||
let client = handle.http_client().unwrap();
|
||||
|
||||
let params = RawRpcParams(RawValue::from_string(req.params.unwrap().to_string()).unwrap());
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Implementation of Engine API"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -6,8 +6,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
/// The Engine API implementation.
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Reth RPC testing helpers"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod debug;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Compatibility layer for reth-primitives and ethereum RPC types"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
reth-primitives.workspace = true
|
||||
reth-rpc-types.workspace = true
|
||||
|
||||
@ -7,8 +7,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod block;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Reth RPC types"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# ethereum
|
||||
alloy-rlp = { workspace = true, features = ["arrayvec", "derive"] }
|
||||
|
||||
@ -7,8 +7,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod admin;
|
||||
|
||||
@ -7,6 +7,10 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Reth RPC implementation"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-interfaces.workspace = true
|
||||
|
||||
@ -22,8 +22,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod admin;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Snapshotting implementation"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod error;
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Staged syncing primitives used in reth."
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.cargo-udeps.ignore]
|
||||
normal = [
|
||||
# Used for diagrams in docs
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(missing_docs, elided_lifetimes_in_paths)]
|
||||
use criterion::{
|
||||
async_executor::FuturesExecutor, criterion_group, criterion_main, measurement::WallTime,
|
||||
BenchmarkGroup, Criterion,
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(unreachable_pub)]
|
||||
use super::{constants, StageRange};
|
||||
use reth_db::{
|
||||
cursor::DbCursorRO, database::Database, tables, transaction::DbTx, DatabaseError as DbError,
|
||||
|
||||
@ -1 +1,2 @@
|
||||
#![allow(unreachable_pub)]
|
||||
pub const ACCOUNT_HASHING_DB: &str = "ACCOUNT_HASHING_DB";
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#![allow(unreachable_pub)]
|
||||
use itertools::concat;
|
||||
use reth_db::{
|
||||
cursor::DbCursorRO,
|
||||
|
||||
@ -64,8 +64,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
mod error;
|
||||
|
||||
@ -7,6 +7,9 @@ license.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codecs-derive = { path = "./derive", default-features = false }
|
||||
|
||||
|
||||
@ -8,6 +8,9 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
readme = "../README.md"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.cargo-udeps.ignore]
|
||||
normal = [
|
||||
# Used in proc macros
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![allow(unreachable_pub, missing_docs)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
use proc_macro::{self, TokenStream, TokenTree};
|
||||
|
||||
@ -5,14 +5,7 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![warn(
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
unused_crate_dependencies,
|
||||
unreachable_pub,
|
||||
rustdoc::all
|
||||
)]
|
||||
#![deny(unused_must_use, rust_2018_idioms)]
|
||||
#![warn(unused_crate_dependencies)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user