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. +//!