diff --git a/Cargo.lock b/Cargo.lock index 06a2a4889..ee140b7b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -645,6 +645,10 @@ version = "0.1.0" name = "reth-crate-template" version = "0.1.0" +[[package]] +name = "reth-p2p" +version = "0.1.0" + [[package]] name = "reth-primitives" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 43a9c6351..b22c2a824 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,8 @@ edition = "2021" [workspace] members = [ "crate-template", - "crates/*" + "crates/primitives", + "crates/net/p2p" ] [dependencies] diff --git a/crates/net/p2p/Cargo.toml b/crates/net/p2p/Cargo.toml new file mode 100644 index 000000000..ac3fef407 --- /dev/null +++ b/crates/net/p2p/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "reth-p2p" +version = "0.1.0" +edition = "2021" +license = "MIT OR Apache-2.0" +repository = "https://github.com/foundry-rs/reth" +readme = "README.md" +description = "Utilities for interacting with ethereum's peer to peer network." + +[dependencies] diff --git a/crates/net/p2p/src/lib.rs b/crates/net/p2p/src/lib.rs new file mode 100644 index 000000000..bec2e0709 --- /dev/null +++ b/crates/net/p2p/src/lib.rs @@ -0,0 +1,8 @@ +#![warn(missing_debug_implementations, missing_docs, unreachable_pub)] +#![deny(unused_must_use, rust_2018_idioms)] +#![doc(test( + no_crate_inject, + attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) +))] + +//! Utilities for interacting with ethereum's peer to peer network.