forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
124 lines (110 loc) · 2.83 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[package]
name = "reth-primitives"
version.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
description = "Commonly used types in reth."
[lints]
workspace = true
[dependencies]
# reth
reth-ethereum-primitives.workspace = true
reth-primitives-traits = { workspace = true, features = ["serde"] }
reth-ethereum-forks.workspace = true
reth-static-file-types.workspace = true
# ethereum
alloy-consensus.workspace = true
alloy-primitives = { workspace = true, features = ["rand", "rlp"] }
alloy-trie = { workspace = true, features = ["serde"] }
# for eip-4844
c-kzg = { workspace = true, features = ["serde"], optional = true }
# misc
derive_more.workspace = true
once_cell.workspace = true
serde.workspace = true
# arbitrary utils
arbitrary = { workspace = true, features = ["derive"], optional = true }
[dev-dependencies]
# eth
reth-primitives-traits = { workspace = true, features = ["arbitrary", "test-utils"] }
alloy-rlp.workspace = true
alloy-eips = { workspace = true, features = ["arbitrary"] }
alloy-genesis.workspace = true
arbitrary = { workspace = true, features = ["derive"] }
proptest-arbitrary-interop.workspace = true
proptest.workspace = true
serde_json.workspace = true
reth-codecs.workspace = true
criterion.workspace = true
pprof = { workspace = true, features = [
"flamegraph",
"frame-pointer",
"criterion",
] }
[features]
default = ["c-kzg", "alloy-compat", "std", "reth-codec", "secp256k1"]
std = [
"reth-primitives-traits/std",
"alloy-consensus/std",
"alloy-eips/std",
"alloy-genesis/std",
"alloy-primitives/std",
"once_cell/std",
"serde/std",
"alloy-trie/std",
"reth-ethereum-forks/std",
"derive_more/std",
"serde_json/std",
"reth-ethereum-primitives/std",
"alloy-rlp/std"
]
reth-codec = [
"std",
"reth-primitives-traits/reth-codec",
"reth-ethereum-primitives/reth-codec"
]
asm-keccak = ["alloy-primitives/asm-keccak"]
arbitrary = [
"dep:arbitrary",
"alloy-eips/arbitrary",
"reth-codec",
"reth-ethereum-forks/arbitrary",
"reth-primitives-traits/arbitrary",
"alloy-consensus/arbitrary",
"alloy-primitives/arbitrary",
"alloy-trie/arbitrary",
"reth-ethereum-primitives/arbitrary",
"reth-codecs/arbitrary"
]
secp256k1 = [
"reth-primitives-traits/secp256k1",
]
c-kzg = [
"dep:c-kzg",
"alloy-consensus/kzg",
"alloy-eips/kzg",
]
alloy-compat = [
"reth-ethereum-primitives/alloy-compat"
]
test-utils = [
"reth-primitives-traits/test-utils",
"arbitrary",
"reth-codecs/test-utils"
]
serde-bincode-compat = [
"alloy-eips/serde-bincode-compat",
"alloy-consensus/serde-bincode-compat",
"reth-primitives-traits/serde-bincode-compat",
"reth-ethereum-primitives/serde-bincode-compat"
]
[[bench]]
name = "recover_ecdsa_crit"
harness = false
[[bench]]
name = "validate_blob_tx"
required-features = ["arbitrary", "c-kzg"]
harness = false