forked from bluealloy/revm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
156 lines (134 loc) · 4.46 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[package]
authors = ["Dragan Rakita <dragan0rakita@gmail.com>"]
description = "revm - Rust Ethereum Virtual Machine"
edition = "2021"
keywords = ["no_std", "ethereum", "evm", "revm"]
license = "MIT"
name = "revm"
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]
# revm
revm-interpreter = { path = "../interpreter", version = "7.0.0", default-features = false }
revm-precompile = { path = "../precompile", version = "9.0.0", default-features = false }
# misc
auto_impl = { version = "1.2", default-features = false }
cfg-if = "1.0"
dyn-clone = "1.0"
# Optional
serde = { version = "1.0", default-features = false, features = [
"derive",
"rc",
], optional = true }
serde_json = { version = "1.0", default-features = false, features = [
"alloc",
], optional = true }
# ethersdb
tokio = { version = "1.38", features = [
"rt-multi-thread",
"macros",
], optional = true }
ethers-providers = { version = "2.0", optional = true }
ethers-core = { version = "2.0", optional = true }
# alloydb
alloy-provider = { version = "0.1", optional = true, default-features = false }
alloy-eips = { version = "0.1", optional = true, default-features = false }
alloy-transport = { version = "0.1", optional = true, default-features = false }
[dev-dependencies]
alloy-sol-types = { version = "0.7.0", default-features = false, features = [
"std",
] }
ethers-contract = { version = "2.0.14", default-features = false }
anyhow = "1.0.83"
criterion = "0.5"
indicatif = "0.17"
reqwest = { version = "0.12" }
rstest = "0.21.0"
alloy-provider = "0.1"
[features]
default = ["std", "c-kzg", "secp256k1", "portable", "blst"]
std = [
"serde?/std",
"serde_json?/std",
"serde_json?/preserve_order",
"revm-interpreter/std",
"revm-precompile/std",
]
hashbrown = ["revm-interpreter/hashbrown", "revm-precompile/hashbrown"]
serde = ["dep:serde", "revm-interpreter/serde"]
serde-json = ["serde", "dep:serde_json"]
arbitrary = ["revm-interpreter/arbitrary"]
asm-keccak = ["revm-interpreter/asm-keccak", "revm-precompile/asm-keccak"]
portable = ["revm-precompile/portable", "revm-interpreter/portable"]
test-utils = []
optimism = ["revm-interpreter/optimism", "revm-precompile/optimism"]
# Optimism default handler enabled Optimism handler register by default in EvmBuilder.
optimism-default-handler = [
"optimism",
"revm-precompile/optimism-default-handler",
"revm-interpreter/optimism-default-handler",
]
negate-optimism-default-handler = [
"revm-precompile/negate-optimism-default-handler",
"revm-interpreter/negate-optimism-default-handler",
]
ethersdb = ["std", "dep:tokio", "dep:ethers-providers", "dep:ethers-core"]
alloydb = [
"std",
"dep:tokio",
"dep:alloy-provider",
"dep:alloy-eips",
"dep:alloy-transport",
]
dev = [
"memory_limit",
"optional_balance_check",
"optional_block_gas_limit",
"optional_eip3607",
"optional_gas_refund",
"optional_no_base_fee",
"optional_beneficiary_reward",
]
memory_limit = ["revm-interpreter/memory_limit"]
optional_balance_check = ["revm-interpreter/optional_balance_check"]
optional_block_gas_limit = ["revm-interpreter/optional_block_gas_limit"]
optional_eip3607 = ["revm-interpreter/optional_eip3607"]
optional_gas_refund = ["revm-interpreter/optional_gas_refund"]
optional_no_base_fee = ["revm-interpreter/optional_no_base_fee"]
optional_beneficiary_reward = ["revm-interpreter/optional_beneficiary_reward"]
# See comments in `revm-precompile`
secp256k1 = ["revm-precompile/secp256k1"]
c-kzg = ["revm-precompile/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 = ["revm-precompile/kzg-rs"]
blst = ["revm-precompile/blst"]
[[example]]
name = "fork_ref_transact"
path = "../../examples/fork_ref_transact.rs"
required-features = ["ethersdb"]
[[example]]
name = "generate_block_traces"
path = "../../examples/generate_block_traces.rs"
required-features = ["std", "serde-json", "ethersdb"]
[[example]]
name = "db_by_ref"
path = "../../examples/db_by_ref.rs"
required-features = ["std", "serde-json"]
#[[example]]
#name = "uniswap_v2_usdc_swap"
#path = "../../examples/uniswap_v2_usdc_swap.rs"
#required-features = ["alloydb"]
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false