From cbbd8345750228fb123af5e002ae8601222e6f86 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Mon, 10 Apr 2023 11:34:50 +0300 Subject: [PATCH] feat(trie): setup crate (#2166) --- Cargo.lock | 4 ++++ Cargo.toml | 1 + crates/trie/Cargo.toml | 12 ++++++++++++ crates/trie/src/lib.rs | 10 ++++++++++ 4 files changed, 27 insertions(+) create mode 100644 crates/trie/Cargo.toml create mode 100644 crates/trie/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index c35d997586..ec36e81210 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5304,6 +5304,10 @@ dependencies = [ "tracing", ] +[[package]] +name = "reth-trie" +version = "0.1.0" + [[package]] name = "revm" version = "3.1.0" diff --git a/Cargo.toml b/Cargo.toml index 3805c7e1c1..5f510c14c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,6 +40,7 @@ members = [ "crates/tracing", "crates/tasks", "crates/transaction-pool", + "crates/trie", ] exclude = ["crate-template"] default-members = ["bin/reth"] diff --git a/crates/trie/Cargo.toml b/crates/trie/Cargo.toml new file mode 100644 index 0000000000..a4284c7a0c --- /dev/null +++ b/crates/trie/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "reth-trie" +version = "0.1.0" +edition = "2021" +license = "MIT OR Apache-2.0" +repository = "https://github.com/paradigmxyz/reth" +readme = "README.md" +description = """ +Merkle trie implementation +""" + +[dependencies] diff --git a/crates/trie/src/lib.rs b/crates/trie/src/lib.rs new file mode 100644 index 0000000000..2411c6dc79 --- /dev/null +++ b/crates/trie/src/lib.rs @@ -0,0 +1,10 @@ +#![warn(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)) +))] + +//! The implementation of Merkle Patricia Trie, a cryptographically +//! authenticated radix trie that is used to store key-value bindings. +//!