-
Notifications
You must be signed in to change notification settings - Fork 644
/
Copy pathCargo.toml
121 lines (107 loc) · 2.93 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
[package]
authors = ["Dragan Rakita <[email protected]>"]
description = "revm primitives"
edition = "2021"
keywords = ["no_std", "ethereum", "evm", "revm", "types"]
license = "MIT"
name = "revm-primitives"
repository = "https://github.com/bluealloy/revm"
version = "11.0.0"
readme = "../../README.md"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints.rust]
unreachable_pub = "warn"
unused_must_use = "deny"
rust_2018_idioms = "deny"
[lints.rustdoc]
all = "warn"
[dependencies]
# alloy
alloy-eip2930 = { version = "0.1", default-features = false }
alloy-eip7702 = { version = "0.1", default-features = false, features = [
"k256",
] }
alloy-primitives = { version = "0.8.8", default-features = false, features = [
"rlp",
"map",
] }
# mics
auto_impl = "1.2"
bitvec = { version = "1", default-features = false, features = ["alloc"] }
bitflags = { version = "2.6.0", default-features = false }
# For setting the CfgEnv KZGSettings. Enabled by c-kzg flag.
c-kzg = { version = "1.0.3", default-features = false, optional = true, features = [
"ethereum_kzg_settings",
] }
# Optionally use `kzg-rs` for a pure Rust implementation of KZG.
kzg-rs = { version = "0.2.3", default-features = false, optional = true }
# utility
enumn = "0.1"
cfg-if = "1"
dyn-clone = "1.0"
# optional
serde = { version = "1.0", default-features = false, features = [
"derive",
"rc",
], optional = true }
[build-dependencies]
hex = { version = "0.4", default-features = false }
[features]
default = ["std", "c-kzg", "portable"]
std = [
"serde?/std",
"alloy-primitives/std",
"hex/std",
"bitvec/std",
"bitflags/std",
"alloy-eip7702/std",
"alloy-eip2930/std",
]
hashbrown = ["alloy-primitives/map-hashbrown"]
serde = [
"dep:serde",
"alloy-primitives/serde",
"hex/serde",
"bitvec/serde",
"bitflags/serde",
"c-kzg?/serde",
"alloy-eip7702/serde",
"alloy-eip2930/serde",
]
arbitrary = [
"std",
"alloy-primitives/arbitrary",
"bitflags/arbitrary",
"alloy-eip7702/arbitrary",
"alloy-eip2930/arbitrary",
]
asm-keccak = ["alloy-primitives/asm-keccak"]
portable = ["c-kzg?/portable"]
optimism = []
# Optimism default handler enabled Optimism handler register by default in EvmBuilder.
optimism-default-handler = ["optimism"]
negate-optimism-default-handler = []
dev = [
"memory_limit",
"optional_balance_check",
"optional_block_gas_limit",
"optional_eip3607",
"optional_gas_refund",
"optional_no_base_fee",
"optional_beneficiary_reward",
]
memory_limit = []
optional_balance_check = []
optional_block_gas_limit = []
optional_eip3607 = []
optional_gas_refund = []
optional_no_base_fee = []
optional_beneficiary_reward = []
rand = ["alloy-primitives/rand"]
# See comments in `revm-precompile`
c-kzg = ["dep:c-kzg"]
# `kzg-rs` is not audited but useful for `no_std` environment.
# use it with causing and default to `c-kzg` if possible!
kzg-rs = ["dep:kzg-rs"]