lints: move top-level lints to [workspace.lints] manifest table (#5935)

This commit is contained in:
Thomas Coratger
2024-01-04 14:38:02 +01:00
committed by GitHub
parent 17b75dd403
commit 9aa44093cf
128 changed files with 211 additions and 145 deletions

View File

@ -66,6 +66,14 @@ default-members = ["bin/reth"]
# https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html # https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html
resolver = "2" 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] [workspace.package]
version = "0.1.0-alpha.13" version = "0.1.0-alpha.13"
edition = "2021" edition = "2021"

View File

@ -9,6 +9,9 @@ repository.workspace = true
description = "Reth node implementation" description = "Reth node implementation"
default-run = "reth" default-run = "reth"
[lints]
workspace = true
[package.metadata.cargo-udeps.ignore] [package.metadata.cargo-udeps.ignore]
normal = [ normal = [
# Used for diagrams in docs # Used for diagrams in docs

View File

@ -1,3 +1,5 @@
#![allow(missing_docs)]
use std::error::Error; use std::error::Error;
use vergen::EmitBuilder; use vergen::EmitBuilder;

View File

@ -24,8 +24,7 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)] )]
#![warn(missing_docs, unreachable_pub, rustdoc::all)] #![allow(missing_debug_implementations)]
#![deny(unused_must_use, rust_2018_idioms)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub mod args; pub mod args;

View File

@ -1,4 +1,5 @@
// We use jemalloc for performance reasons // We use jemalloc for performance reasons
#![allow(missing_docs)]
#[cfg(all(feature = "jemalloc", unix))] #[cfg(all(feature = "jemalloc", unix))]
#[global_allocator] #[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

View File

@ -1,3 +1,4 @@
#![allow(missing_docs, rustdoc::missing_crate_level_docs)]
// We use jemalloc for performance reasons // We use jemalloc for performance reasons
#[cfg(all(feature = "jemalloc", unix))] #[cfg(all(feature = "jemalloc", unix))]
#[global_allocator] #[global_allocator]

View File

@ -7,6 +7,9 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
[lints]
workspace = true
[package.metadata.cargo-udeps.ignore] [package.metadata.cargo-udeps.ignore]
normal = [ normal = [
# Used for diagrams in docs # Used for diagrams in docs

View File

@ -15,8 +15,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub mod blockchain_tree; pub mod blockchain_tree;

View File

@ -7,6 +7,9 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-network.workspace = true reth-network.workspace = true

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub mod config; pub mod config;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "A consensus impl for local testing purposes" description = "A consensus impl for local testing purposes"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-beacon-consensus.workspace = true reth-beacon-consensus.workspace = true

View File

@ -12,8 +12,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use reth_beacon_consensus::BeaconEngineMessage; use reth_beacon_consensus::BeaconEngineMessage;
@ -42,7 +40,7 @@ use std::{
time::{SystemTime, UNIX_EPOCH}, time::{SystemTime, UNIX_EPOCH},
}; };
use tokio::sync::{mpsc::UnboundedSender, RwLock, RwLockReadGuard, RwLockWriteGuard}; use tokio::sync::{mpsc::UnboundedSender, RwLock, RwLockReadGuard, RwLockWriteGuard};
use tracing::{trace, warn}; use tracing::trace;
mod client; mod client;
mod mode; mod mode;

View File

@ -1,3 +1,4 @@
#![allow(unreachable_pub)]
//! auto-mine consensus integration test //! auto-mine consensus integration test
use clap::Parser; use clap::Parser;

View File

@ -7,6 +7,9 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-beacon-consensus-core.workspace = true reth-beacon-consensus-core.workspace = true

View File

@ -5,14 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub use reth_beacon_consensus_core::BeaconConsensus; pub use reth_beacon_consensus_core::BeaconConsensus;

View File

@ -7,8 +7,11 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true
reth-interfaces.workspace = true reth-interfaces.workspace = true
reth-provider.workspace = true reth-provider.workspace = true

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
/// Collection of consensus validation methods. /// Collection of consensus validation methods.

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Ethereum fork types used in reth." description = "Ethereum fork types used in reth."
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-codecs.workspace = true reth-codecs.workspace = true

View File

@ -11,8 +11,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod forkid; mod forkid;

View File

@ -7,6 +7,9 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
[lints]
workspace = true
[dependencies] [dependencies]
reth-primitives.workspace = true reth-primitives.workspace = true
reth-nippy-jar.workspace = true reth-nippy-jar.workspace = true

View File

@ -9,14 +9,7 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)] )]
#![warn( #![warn(unused_crate_dependencies)]
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))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
/// Consensus traits. /// Consensus traits.

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "reth metrics utilities" description = "reth metrics utilities"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-metrics-derive.workspace = true reth-metrics-derive.workspace = true

View File

@ -7,6 +7,9 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
[lints]
workspace = true
[lib] [lib]
proc-macro = true proc-macro = true

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use proc_macro::TokenStream; use proc_macro::TokenStream;

View File

@ -10,8 +10,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
/// Metrics derive macro. /// Metrics derive macro.

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Types shared across network code" description = "Types shared across network code"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub mod ban_list; pub mod ban_list;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Ethereum network discovery" description = "Ethereum network discovery"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -21,8 +21,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use crate::{ use crate::{
@ -64,7 +62,7 @@ use tokio::{
time::Interval, time::Interval,
}; };
use tokio_stream::{wrappers::ReceiverStream, Stream, StreamExt}; use tokio_stream::{wrappers::ReceiverStream, Stream, StreamExt};
use tracing::{debug, trace, warn}; use tracing::{debug, trace};
pub mod error; pub mod error;
pub mod proto; pub mod proto;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Support for EIP-1459 Node Discovery via DNS" description = "Support for EIP-1459 Node Discovery via DNS"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -10,8 +10,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub use crate::resolver::{DnsResolver, MapResolver, Resolver}; pub use crate::resolver::{DnsResolver, MapResolver, Resolver};
@ -47,7 +45,7 @@ use tokio_stream::{
wrappers::{ReceiverStream, UnboundedReceiverStream}, wrappers::{ReceiverStream, UnboundedReceiverStream},
Stream, StreamExt, Stream, StreamExt,
}; };
use tracing::{debug, trace, warn}; use tracing::{debug, trace};
mod config; mod config;
mod error; mod error;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Implementations of various block downloaders" description = "Implementations of various block downloaders"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-interfaces.workspace = true reth-interfaces.workspace = true

View File

@ -9,8 +9,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
/// The collection of algorithms for downloading block bodies. /// The collection of algorithms for downloading block bodies.

View File

@ -7,6 +7,9 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
[lints]
workspace = true
[dependencies] [dependencies]
reth-primitives.workspace = true reth-primitives.workspace = true
reth-net-common.workspace = true reth-net-common.workspace = true

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub mod algorithm; pub mod algorithm;

View File

@ -8,6 +8,9 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-codecs.workspace = true reth-codecs.workspace = true

View File

@ -10,8 +10,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub mod builder; pub mod builder;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Helpers for working around NAT" description = "Helpers for working around NAT"
[lints]
workspace = true
[dependencies] [dependencies]
# nat # nat

View File

@ -9,8 +9,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use igd::aio::search_gateway; use igd::aio::search_gateway;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Network interfaces" description = "Network interfaces"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -11,8 +11,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use async_trait::async_trait; use async_trait::async_trait;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Ethereum network support" description = "Ethereum network support"
[lints]
workspace = true
[package.metadata.cargo-udeps.ignore] [package.metadata.cargo-udeps.ignore]
normal = [ normal = [
# Used for diagrams in docs # Used for diagrams in docs

View File

@ -1,3 +1,4 @@
#![allow(missing_docs)]
use criterion::*; use criterion::*;
use futures::StreamExt; use futures::StreamExt;
use pprof::criterion::{Output, PProfProfiler}; use pprof::criterion::{Output, PProfProfiler};

View File

@ -106,8 +106,7 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)] )]
#![warn(missing_debug_implementations, missing_docs, rustdoc::all)] // TODO(danipopes): unreachable_pub #![allow(unreachable_pub)]
#![deny(unused_must_use, rust_2018_idioms)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[cfg(any(test, feature = "test-utils"))] #[cfg(any(test, feature = "test-utils"))]

View File

@ -1,3 +1,4 @@
#![allow(unreachable_pub)]
//! Helper extension traits for working with clique providers. //! Helper extension traits for working with clique providers.
use async_trait::async_trait; use async_trait::async_trait;

View File

@ -1,3 +1,4 @@
#![allow(unreachable_pub)]
//! Helper struct for working with a clique geth instance. //! Helper struct for working with a clique geth instance.
use enr::k256::ecdsa::SigningKey; use enr::k256::ecdsa::SigningKey;

View File

@ -1,3 +1,4 @@
#![allow(unreachable_pub)]
pub mod clique_middleware; pub mod clique_middleware;
mod geth; mod geth;

View File

@ -1,3 +1,4 @@
#![allow(unreachable_pub)]
//! Testing gossiping of transactions. //! Testing gossiping of transactions.
use crate::multiplex::proto::{PingPongProtoMessage, PingPongProtoMessageKind}; use crate::multiplex::proto::{PingPongProtoMessage, PingPongProtoMessageKind};

View File

@ -1,3 +1,4 @@
#![allow(unreachable_pub)]
//! Tests for eth related requests //! Tests for eth related requests
use rand::Rng; use rand::Rng;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "A basic payload builder for reth that uses the txpool API to build payloads." description = "A basic payload builder for reth that uses the txpool API to build payloads."
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -5,14 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use alloy_rlp::Encodable; use alloy_rlp::Encodable;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "reth payload builder" description = "reth payload builder"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -97,8 +97,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub mod database; pub mod database;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "A basic ethereum payload builder for reth that uses the txpool API to build payloads." description = "A basic ethereum payload builder for reth that uses the txpool API to build payloads."
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true
@ -26,4 +29,4 @@ tracing.workspace = true
[features] [features]
# This is a workaround for reth-cli crate to allow this as mandatory dependency without breaking the build even if unused. # This is a workaround for reth-cli crate to allow this as mandatory dependency without breaking the build even if unused.
# This makes managing features and testing workspace easier because clippy always builds all members if --workspace is provided # This makes managing features and testing workspace easier because clippy always builds all members if --workspace is provided
optimism = [] optimism = []

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[cfg(not(feature = "optimism"))] #[cfg(not(feature = "optimism"))]

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "A payload builder for op-reth that builds optimistic payloads." description = "A payload builder for op-reth that builds optimistic payloads."
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true
@ -32,4 +35,4 @@ optimism = [
"reth-transaction-pool/optimism", "reth-transaction-pool/optimism",
"reth-provider/optimism", "reth-provider/optimism",
"reth-payload-builder/optimism", "reth-payload-builder/optimism",
] ]

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[cfg(feature = "optimism")] #[cfg(feature = "optimism")]

View File

@ -8,8 +8,11 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Payload validation support" description = "Payload validation support"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true
reth-rpc-types.workspace = true reth-rpc-types.workspace = true
reth-rpc-types-compat.workspace = true reth-rpc-types-compat.workspace = true

View File

@ -5,14 +5,7 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)] )]
#![warn( #![warn(unused_crate_dependencies)]
missing_debug_implementations,
missing_docs,
unreachable_pub,
unused_crate_dependencies,
rustdoc::all
)]
#![deny(unused_must_use, rust_2018_idioms)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use reth_primitives::{ChainSpec, SealedBlock}; use reth_primitives::{ChainSpec, SealedBlock};

View File

@ -8,6 +8,9 @@ repository.workspace = true
rust-version.workspace = true rust-version.workspace = true
description = "Commonly used types in reth." description = "Commonly used types in reth."
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-codecs.workspace = true reth-codecs.workspace = true

View File

@ -1,3 +1,4 @@
#![allow(missing_docs)]
use criterion::{criterion_group, criterion_main, Criterion}; use criterion::{criterion_group, criterion_main, Criterion};
use proptest::{prelude::*, strategy::ValueTree}; use proptest::{prelude::*, strategy::ValueTree};
use reth_primitives::trie::Nibbles; use reth_primitives::trie::Nibbles;

View File

@ -1,3 +1,4 @@
#![allow(missing_docs)]
use alloy_rlp::Decodable; use alloy_rlp::Decodable;
use criterion::{criterion_group, criterion_main, Criterion}; use criterion::{criterion_group, criterion_main, Criterion};
use pprof::criterion::{Output, PProfProfiler}; use pprof::criterion::{Output, PProfProfiler};

View File

@ -1,3 +1,4 @@
#![allow(missing_docs, unreachable_pub)]
use criterion::{black_box, criterion_group, criterion_main, Criterion}; use criterion::{black_box, criterion_group, criterion_main, Criterion};
use proptest::{ use proptest::{
prelude::*, prelude::*,

View File

@ -12,8 +12,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod account; mod account;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Pruning implementation" description = "Pruning implementation"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -5,8 +5,7 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)] )]
#![warn(missing_debug_implementations, unreachable_pub, rustdoc::all)] // TODO(danipopes): missing_docs #![allow(missing_docs)]
#![deny(unused_must_use, rust_2018_idioms)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod builder; mod builder;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "reth specific revm utilities" description = "reth specific revm utilities"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -8,8 +8,11 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "revm inspector implementations used by reth" description = "revm inspector implementations used by reth"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-rpc-types.workspace = true reth-rpc-types.workspace = true
# eth # eth

View File

@ -10,8 +10,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
/// An inspector implementation for an EIP2930 Accesslist /// An inspector implementation for an EIP2930 Accesslist

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
/// Contains glue code for integrating reth database into revm's [Database]. /// Contains glue code for integrating reth database into revm's [Database].

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "IPC support for reth" description = "IPC support for reth"
[lints]
workspace = true
[dependencies] [dependencies]
# async/net # async/net

View File

@ -9,8 +9,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[cfg(unix)] #[cfg(unix)]

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Reth RPC interfaces" description = "Reth RPC interfaces"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -11,8 +11,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod admin; mod admin;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Helpers for configuring RPC" description = "Helpers for configuring RPC"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -132,8 +132,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use std::{ use std::{

View File

@ -1,3 +1,4 @@
#![allow(unreachable_pub)]
//! Standalone http tests //! Standalone http tests
use crate::utils::{launch_http, launch_http_ws, launch_ws}; use crate::utils::{launch_http, launch_http_ws, launch_ws};

View File

@ -21,7 +21,7 @@ impl ToRpcParams for RawRpcParams {
async fn test_eth_balance_serde() { async fn test_eth_balance_serde() {
let handle = launch_http(vec![RethRpcModule::Eth]).await; let handle = launch_http(vec![RethRpcModule::Eth]).await;
let s = r#"{"jsonrpc":"2.0","id":1,"method":"eth_getBalance","params":["0xaa00000000000000000000000000000000000000","0x898753d8fdd8d92c1907ca21e68c7970abd290c647a202091181deec3f30a0b2"]}"#; 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 client = handle.http_client().unwrap();
let params = RawRpcParams(RawValue::from_string(req.params.unwrap().to_string()).unwrap()); let params = RawRpcParams(RawValue::from_string(req.params.unwrap().to_string()).unwrap());

View File

@ -8,8 +8,11 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Implementation of Engine API" description = "Implementation of Engine API"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true
reth-interfaces.workspace = true reth-interfaces.workspace = true
reth-provider.workspace = true reth-provider.workspace = true

View File

@ -6,8 +6,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
/// The Engine API implementation. /// The Engine API implementation.

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Reth RPC testing helpers" description = "Reth RPC testing helpers"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub mod debug; pub mod debug;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Compatibility layer for reth-primitives and ethereum RPC types" description = "Compatibility layer for reth-primitives and ethereum RPC types"
[lints]
workspace = true
[dependencies] [dependencies]
reth-primitives.workspace = true reth-primitives.workspace = true
reth-rpc-types.workspace = true reth-rpc-types.workspace = true

View File

@ -7,8 +7,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
pub mod block; pub mod block;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Reth RPC types" description = "Reth RPC types"
[lints]
workspace = true
[dependencies] [dependencies]
# ethereum # ethereum
alloy-rlp = { workspace = true, features = ["arrayvec", "derive"] } alloy-rlp = { workspace = true, features = ["arrayvec", "derive"] }

View File

@ -7,8 +7,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod admin; mod admin;

View File

@ -7,6 +7,10 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Reth RPC implementation" description = "Reth RPC implementation"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-interfaces.workspace = true reth-interfaces.workspace = true

View File

@ -22,8 +22,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod admin; mod admin;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Snapshotting implementation" description = "Snapshotting implementation"
[lints]
workspace = true
[dependencies] [dependencies]
# reth # reth
reth-primitives.workspace = true reth-primitives.workspace = true

View File

@ -5,8 +5,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod error; mod error;

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
description = "Staged syncing primitives used in reth." description = "Staged syncing primitives used in reth."
[lints]
workspace = true
[package.metadata.cargo-udeps.ignore] [package.metadata.cargo-udeps.ignore]
normal = [ normal = [
# Used for diagrams in docs # Used for diagrams in docs

View File

@ -1,3 +1,4 @@
#![allow(missing_docs, elided_lifetimes_in_paths)]
use criterion::{ use criterion::{
async_executor::FuturesExecutor, criterion_group, criterion_main, measurement::WallTime, async_executor::FuturesExecutor, criterion_group, criterion_main, measurement::WallTime,
BenchmarkGroup, Criterion, BenchmarkGroup, Criterion,

View File

@ -1,3 +1,4 @@
#![allow(unreachable_pub)]
use super::{constants, StageRange}; use super::{constants, StageRange};
use reth_db::{ use reth_db::{
cursor::DbCursorRO, database::Database, tables, transaction::DbTx, DatabaseError as DbError, cursor::DbCursorRO, database::Database, tables, transaction::DbTx, DatabaseError as DbError,

View File

@ -1 +1,2 @@
#![allow(unreachable_pub)]
pub const ACCOUNT_HASHING_DB: &str = "ACCOUNT_HASHING_DB"; pub const ACCOUNT_HASHING_DB: &str = "ACCOUNT_HASHING_DB";

View File

@ -1,3 +1,4 @@
#![allow(unreachable_pub)]
use itertools::concat; use itertools::concat;
use reth_db::{ use reth_db::{
cursor::DbCursorRO, cursor::DbCursorRO,

View File

@ -64,8 +64,6 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod error; mod error;

View File

@ -7,6 +7,9 @@ license.workspace = true
homepage.workspace = true homepage.workspace = true
repository.workspace = true repository.workspace = true
[lints]
workspace = true
[dependencies] [dependencies]
codecs-derive = { path = "./derive", default-features = false } codecs-derive = { path = "./derive", default-features = false }
@ -33,4 +36,4 @@ compact = ["codecs-derive/compact"]
scale = ["codecs-derive/scale"] scale = ["codecs-derive/scale"]
postcard = ["codecs-derive/postcard"] postcard = ["codecs-derive/postcard"]
no_codec = ["codecs-derive/no_codec"] no_codec = ["codecs-derive/no_codec"]
optimism = ["codecs-derive/optimism"] optimism = ["codecs-derive/optimism"]

View File

@ -8,6 +8,9 @@ homepage.workspace = true
repository.workspace = true repository.workspace = true
readme = "../README.md" readme = "../README.md"
[lints]
workspace = true
[package.metadata.cargo-udeps.ignore] [package.metadata.cargo-udeps.ignore]
normal = [ normal = [
# Used in proc macros # Used in proc macros

View File

@ -5,7 +5,7 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" 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))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
use proc_macro::{self, TokenStream, TokenTree}; use proc_macro::{self, TokenStream, TokenTree};
@ -30,14 +30,14 @@ pub fn derive_zstd(input: TokenStream) -> TokenStream {
/// This code implements the main codec. If the codec supports it, it will also provide the [derive_arbitrary()] function, which automatically implements arbitrary traits and roundtrip fuzz tests. /// This code implements the main codec. If the codec supports it, it will also provide the [derive_arbitrary()] function, which automatically implements arbitrary traits and roundtrip fuzz tests.
/// ///
/// If you prefer to manually implement the arbitrary traits, you can still use the [add_arbitrary_tests()] function to add arbitrary fuzz tests. /// If you prefer to manually implement the arbitrary traits, you can still use the [add_arbitrary_tests()] function to add arbitrary fuzz tests.
/// ///
/// Example usage: /// Example usage:
/// * `#[main_codec(rlp)]`: will implement `derive_arbitrary(rlp)` or `derive_arbitrary(compact, rlp)`, if `compact` is the `main_codec`. /// * `#[main_codec(rlp)]`: will implement `derive_arbitrary(rlp)` or `derive_arbitrary(compact, rlp)`, if `compact` is the `main_codec`.
/// * `#[main_codec(no_arbitrary)]`: will skip `derive_arbitrary` (both trait implementations and tests) /// * `#[main_codec(no_arbitrary)]`: will skip `derive_arbitrary` (both trait implementations and tests)
#[proc_macro_attribute] #[proc_macro_attribute]
#[rustfmt::skip] #[rustfmt::skip]
#[allow(unreachable_code)] #[allow(unreachable_code)]
pub fn main_codec(args: TokenStream, input: TokenStream) -> TokenStream { pub fn main_codec(args: TokenStream, input: TokenStream) -> TokenStream {
#[cfg(feature = "compact")] #[cfg(feature = "compact")]
return use_compact(args, input); return use_compact(args, input);

View File

@ -5,14 +5,7 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)] )]
#![warn( #![warn(unused_crate_dependencies)]
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))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]

Some files were not shown because too many files have changed in this diff Show More