Registry / crypto / tree-hash-derive

tree-hash-derive

JSON →
library0.12.1rscratesunverified

Procedural derive macros to accompany the tree_hash crate for Ethereum consensus.

# Cargo.toml [dependencies] tree_hash_derive = "0.12.1"
INSTALL
IMPORT
SIG · TREE-HASH-DERIVE
T
tree-hash-derive
cryptorustv0.12.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TreeHash
use tree_hash_derive::TreeHash;

Derive TreeHash for a struct.

use tree_hash_derive::TreeHash; #[derive(TreeHash)] pub struct MyStruct { field: u64, }
Debug
Known issues
gotchaRequires the `tree_hash` crate as a dependency.
fix
Add `tree_hash` to your Cargo.toml.
affects: >=0.12.0
Upgrade
Version history
0.12.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
Resources
tree-hash-derive — cargo add tree-hash-derive · libregistry