From 57a2b2d1d495052362a5546e767aa8cc319f99a2 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 21 Sep 2022 21:38:49 +0200 Subject: [PATCH] feat: add crate template --- Cargo.lock | 4 ++++ Cargo.toml | 5 +++++ crate-template/Cargo.toml | 9 +++++++++ crate-template/src/lib.rs | 8 ++++++++ src/lib.rs | 7 +++++++ 5 files changed, 33 insertions(+) create mode 100644 crate-template/Cargo.toml create mode 100644 crate-template/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 19c311e5f..9ef3bcd2c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,3 +5,7 @@ version = 3 [[package]] name = "reth" version = "0.1.0" + +[[package]] +name = "reth-crate-template" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index a67796ccc..f1332bd6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,11 @@ name = "reth" version = "0.1.0" edition = "2021" +[workspace] +members = [ + "crate-template" +] + [dependencies] [[bin]] diff --git a/crate-template/Cargo.toml b/crate-template/Cargo.toml new file mode 100644 index 000000000..758015f68 --- /dev/null +++ b/crate-template/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "reth-crate-template" +version = "0.1.0" +edition = "2021" +license = "MIT OR Apache-2.0" +repository = "https://github.com/foundry-rs/reth" +readme = "README.md" + +[dependencies] diff --git a/crate-template/src/lib.rs b/crate-template/src/lib.rs new file mode 100644 index 000000000..cf25ae903 --- /dev/null +++ b/crate-template/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)) +))] + +//! diff --git a/src/lib.rs b/src/lib.rs index 8b1378917..cf25ae903 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1 +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)) +))] +//!