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
|
# 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"
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(missing_docs)]
|
||||||
|
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use vergen::EmitBuilder;
|
use vergen::EmitBuilder;
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(unreachable_pub)]
|
||||||
//! auto-mine consensus integration test
|
//! auto-mine consensus integration test
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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};
|
||||||
|
|||||||
@ -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"))]
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(unreachable_pub)]
|
||||||
pub mod clique_middleware;
|
pub mod clique_middleware;
|
||||||
mod geth;
|
mod geth;
|
||||||
|
|
||||||
|
|||||||
@ -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};
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(unreachable_pub)]
|
||||||
//! Tests for eth related requests
|
//! Tests for eth related requests
|
||||||
|
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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 = []
|
||||||
|
|||||||
@ -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"))]
|
||||||
|
|||||||
@ -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",
|
||||||
]
|
]
|
||||||
|
|||||||
@ -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")]
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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};
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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};
|
||||||
|
|||||||
@ -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::*,
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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].
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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)]
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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::{
|
||||||
|
|||||||
@ -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};
|
||||||
|
|||||||
@ -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());
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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"] }
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
|
#![allow(unreachable_pub)]
|
||||||
pub const ACCOUNT_HASHING_DB: &str = "ACCOUNT_HASHING_DB";
|
pub const ACCOUNT_HASHING_DB: &str = "ACCOUNT_HASHING_DB";
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(unreachable_pub)]
|
||||||
use itertools::concat;
|
use itertools::concat;
|
||||||
use reth_db::{
|
use reth_db::{
|
||||||
cursor::DbCursorRO,
|
cursor::DbCursorRO,
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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"]
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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);
|
||||||
|
|
||||||
|
|||||||
@ -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
Reference in New Issue
Block a user