[package]
edition = "2021"
rust-version = "1.91"
name = "mega-evm"
version = "1.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The evm tailored for the MegaETH"
homepage = "https://github.com/megaeth-labs/mega-evm"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/megaeth-labs/mega-evm"
[features]
default = [
"std",
"revm/default",
"op-revm/default",
]
std = [
"revm/std",
"op-revm/std",
"revm/alloydb",
"mega-system-contracts/std",
]
test-utils = []
[lib]
name = "mega_evm"
path = "src/lib.rs"
[[example]]
name = "beneficiary_access_tracking"
path = "examples/beneficiary_access_tracking.rs"
[[example]]
name = "block_env_tracking"
path = "examples/block_env_tracking.rs"
[[test]]
name = "block_executor"
path = "tests/block_executor/main.rs"
[[test]]
name = "equivalence"
path = "tests/equivalence/main.rs"
[[test]]
name = "mini_rex"
path = "tests/mini_rex/main.rs"
[[test]]
name = "rex"
path = "tests/rex/main.rs"
[[test]]
name = "rex2"
path = "tests/rex2/main.rs"
[[test]]
name = "rex3"
path = "tests/rex3/main.rs"
[[test]]
name = "rex4"
path = "tests/rex4/main.rs"
[[test]]
name = "rex5"
path = "tests/rex5/main.rs"
[[bench]]
name = "attack_replay"
path = "benches/attack_replay.rs"
harness = false
[[bench]]
name = "block_bench"
path = "benches/block_bench.rs"
harness = false
[[bench]]
name = "comp_cost"
path = "benches/comp_cost.rs"
harness = false
[[bench]]
name = "ctt"
path = "benches/ctt.rs"
harness = false
[[bench]]
name = "mega_bench"
path = "benches/mega_bench.rs"
harness = false
[[bench]]
name = "revm_bench"
path = "benches/revm_bench.rs"
harness = false
[[bench]]
name = "transact"
path = "benches/transact.rs"
harness = false
[dependencies.alloy-consensus]
version = "1.0.23"
features = ["k256"]
default-features = false
[dependencies.alloy-eips]
version = "1.0.23"
default-features = false
[dependencies.alloy-evm]
version = "0.15.0"
default-features = false
[dependencies.alloy-hardforks]
version = "0.2.7"
default-features = false
[dependencies.alloy-op-evm]
version = "0.15.0"
default-features = false
[dependencies.alloy-op-hardforks]
version = "0.2.2"
default-features = false
[dependencies.alloy-primitives]
version = "1.3.0"
features = ["map-foldhash"]
default-features = false
[dependencies.alloy-sol-types]
version = "1.0.23"
default-features = false
[dependencies.auto_impl]
version = "1.3"
default-features = false
[dependencies.bitflags]
version = "2.6"
default-features = false
[dependencies.delegate]
version = "0.13"
default-features = false
[dependencies.derive_more]
version = "2"
default-features = false
[dependencies.mega-system-contracts]
version = "1.6.0"
default-features = false
[dependencies.once_cell]
version = "1.21"
default-features = false
[dependencies.op-alloy-consensus]
version = "0.18.12"
features = ["k256"]
default-features = false
[dependencies.op-alloy-flz]
version = "0.13.1"
default-features = false
[dependencies.op-revm]
version = "8.1.0"
features = [
"dev",
"serde",
"kzg-rs",
]
default-features = false
[dependencies.revm]
version = "27.1.0"
features = [
"dev",
"serde",
"kzg-rs",
]
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false
[dependencies.thiserror]
version = "2.0"
default-features = false
[dependencies.tracing]
version = "0.1"
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = [
"html_reports",
"plotters",
"cargo_bench_support",
]
default-features = false
[dev-dependencies.hex]
version = "0.4"
default-features = false
[dev-dependencies.op-revm-latest]
version = "20.0.0"
features = [
"dev",
"serde",
"std",
]
default-features = false
package = "op-revm"
[dev-dependencies.rand]
version = "0.9"
features = ["thread_rng"]
default-features = false
[dev-dependencies.revm-inspectors]
version = "0.27.3"
features = ["std"]
default-features = false
[dev-dependencies.revm-latest]
version = "38.0.0"
features = [
"dev",
"serde",
"std",
]
default-features = false
package = "revm"
[dev-dependencies.serde_json]
version = "1.0"
default-features = false
[dev-dependencies.sha2]
version = "0.10.9"
default-features = false
[lints.clippy]
as_ptr_cast_mut = "allow"
borrow_as_ptr = "warn"
branches_sharing_code = "warn"
clear_with_drain = "warn"
cloned_instead_of_copied = "warn"
cognitive_complexity = "allow"
collection_is_never_read = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "allow"
derive_partial_eq_without_eq = "warn"
doc_markdown = "warn"
empty_line_after_doc_comments = "warn"
empty_line_after_outer_attr = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
fallible_impl_from = "allow"
flat_map_option = "warn"
from_iter_instead_of_collect = "warn"
future_not_send = "allow"
if_not_else = "warn"
if_then_some_else_none = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
iter_without_into_iter = "warn"
large_stack_frames = "warn"
manual_assert = "warn"
manual_clamp = "warn"
manual_is_variant_and = "warn"
manual_string_new = "warn"
match_same_arms = "warn"
missing-const-for-fn = "allow"
mutex_integer = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_collect = "allow"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
non_send_fields_in_send_ty = "allow"
nonstandard_macro_braces = "warn"
option_as_ref_cloned = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_else = "warn"
redundant_pub_crate = "allow"
result_large_err = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
single_char_pattern = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
too_long_first_doc_paragraph = "allow"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_undefined_repr = "warn"
trivial_regex = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
uninhabited_references = "warn"
unnecessary_self_imports = "warn"
unnecessary_struct_initialization = "warn"
unnested_or_patterns = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
while_float = "warn"
zero_sized_map_values = "warn"
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unused_must_use = "deny"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rustdoc]
all = "warn"