forked from alloy-rs/trie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
92 lines (85 loc) · 2.21 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[package]
name = "alloy-trie"
version = "0.6.0"
authors = [
"rkrasiuk <[email protected]>",
"gakonst <[email protected]>",
"DaniPopes <[email protected]>",
]
description = """
Fast Merkle-Patricia Trie (MPT) state root calculator
and proof generator for prefix-sorted nibbles
"""
edition = "2021"
rust-version = "1.79"
license = "MIT OR Apache-2.0"
categories = ["data-structures", "no-std"]
keywords = ["nibbles", "trie", "mpt", "merkle", "ethereum"]
homepage = "https://github.com/alloy-rs/trie"
repository = "https://github.com/alloy-rs/trie"
exclude = [".github/", "deny.toml", "release.toml", "rustfmt.toml"]
[dependencies]
alloy-primitives = { version = "0.8.5", default-features = false, features = [
"rlp",
"map",
] }
alloy-rlp = { version = "0.3.8", default-features = false, features = [
"derive",
] }
arrayvec = { version = "0.7", default-features = false }
derive_more = { version = "1", default-features = false, features = [
"add",
"add_assign",
"deref",
"from",
"not",
] }
nybbles = { version = "0.2", default-features = false }
smallvec = { version = "1.0", default-features = false, features = [
"const_new",
] }
tracing = { version = "0.1", default-features = false }
# serde
serde = { version = "1.0", default-features = false, features = [
"derive",
], optional = true }
# arbitrary
arbitrary = { version = "1.3", optional = true }
derive_arbitrary = { version = "1.3", optional = true }
proptest = { version = "1.5", optional = true }
proptest-derive = { version = "0.5", optional = true }
[dev-dependencies]
hash-db = "0.15"
plain_hasher = "0.2"
triehash = "0.8.4"
criterion = "0.5"
[features]
default = ["std", "alloy-primitives/default"]
std = [
"alloy-primitives/std",
"alloy-rlp/std",
"arrayvec/std",
"derive_more/std",
"nybbles/std",
"tracing/std",
"serde?/std",
]
serde = [
"dep:serde",
"alloy-primitives/serde",
"arrayvec/serde",
"nybbles/serde",
]
arbitrary = [
"std",
"dep:arbitrary",
"dep:derive_arbitrary",
"dep:proptest",
"dep:proptest-derive",
"alloy-primitives/arbitrary",
"nybbles/arbitrary",
]
[[bench]]
name = "bench"
harness = false
required-features = ["arbitrary"]