From 6ff7cf5a740ea1da12f9582005852fc08ee699e6 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Fri, 30 Sep 2022 12:27:52 -0400 Subject: [PATCH] feat: add p2p crate (#4) * feat: add p2p crate * move p2p to net subfolder * add lib.rs and Cargo.toml to net * remove net crate, use explicit names in workspace --- Cargo.lock | 4 ++++ Cargo.toml | 3 ++- crates/net/p2p/Cargo.toml | 10 ++++++++++ crates/net/p2p/src/lib.rs | 8 ++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 crates/net/p2p/Cargo.toml create mode 100644 crates/net/p2p/src/lib.rs 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.