forked from bluealloy/revm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
120 lines (105 loc) · 3.41 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
[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 = "6.1.0"
readme = "../../README.md"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
# revm
revm-interpreter = { path = "../interpreter", version = "3.1.0", default-features = false }
revm-precompile = { path = "../precompile", version = "4.1.0", default-features = false }
# misc
auto_impl = { version = "1.1", default-features = false }
cfg-if = "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.36", features = [
"rt-multi-thread",
"macros",
], optional = true }
ethers-providers = { version = "2.0", optional = true }
ethers-core = { version = "2.0", optional = true }
futures = { version = "0.3.30", optional = true }
[dev-dependencies]
ethers-contract = { version = "2.0.13", default-features = false }
anyhow = "1.0.80"
criterion = "0.5"
indicatif = "0.17"
[features]
default = ["std", "c-kzg", "secp256k1", "portable"]
std = [
"serde?/std",
"serde_json?/std",
"serde_json?/preserve_order",
"revm-interpreter/std",
"revm-precompile/std",
]
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",
"tokio",
"futures",
"ethers-providers",
"ethers-core",
] # 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 = ["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"]
[[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", "ethersdb"]
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false