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
This commit is contained in:
Dan Cline
2022-09-30 12:27:52 -04:00
committed by GitHub
parent f3b26fd91b
commit 6ff7cf5a74
4 changed files with 24 additions and 1 deletions

4
Cargo.lock generated
View File

@ -645,6 +645,10 @@ version = "0.1.0"
name = "reth-crate-template" name = "reth-crate-template"
version = "0.1.0" version = "0.1.0"
[[package]]
name = "reth-p2p"
version = "0.1.0"
[[package]] [[package]]
name = "reth-primitives" name = "reth-primitives"
version = "0.1.0" version = "0.1.0"

View File

@ -6,7 +6,8 @@ edition = "2021"
[workspace] [workspace]
members = [ members = [
"crate-template", "crate-template",
"crates/*" "crates/primitives",
"crates/net/p2p"
] ]
[dependencies] [dependencies]

10
crates/net/p2p/Cargo.toml Normal file
View File

@ -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]

View File

@ -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.