# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "ethrex-vm"
version = "17.0.0"
authors = ["LambdaClass"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "EVM execution backend and database abstraction for the ethrex Ethereum execution client"
documentation = "https://docs.ethrex.xyz"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/lambdaclass/ethrex"
resolver = "2"

[features]
c-kzg = [
    "ethrex-levm/c-kzg",
    "ethrex-common/c-kzg",
]
debug = ["ethrex-levm/debug"]
default = ["secp256k1"]
eip-8025 = [
    "ethrex-levm/eip-8025",
    "ethrex-common/eip-8025",
]
openvm = [
    "ethrex-levm/openvm",
    "ethrex-common/openvm",
]
perf_opcode_timings = ["ethrex-levm/perf_opcode_timings"]
rayon = [
    "dep:rayon",
    "ethrex-levm/rayon",
]
risc0 = [
    "ethrex-levm/risc0",
    "ethrex-common/risc0",
    "c-kzg",
]
secp256k1 = [
    "ethrex-levm/secp256k1",
    "ethrex-common/secp256k1",
    "rayon",
]
sp1 = [
    "ethrex-levm/sp1",
    "ethrex-common/sp1",
]
zisk = [
    "ethrex-levm/zisk",
    "ethrex-common/zisk",
]

[lib]
name = "ethrex_vm"
path = "lib.rs"

[dependencies.bytes]
version = "1.6.0"
features = ["serde"]

[dependencies.derive_more]
version = "1.0.0"
features = ["full"]

[dependencies.dyn-clone]
version = "1.0"

[dependencies.ethrex-common]
version = "17.0.0"
default-features = false

[dependencies.ethrex-crypto]
version = "17.0.0"
default-features = false

[dependencies.ethrex-levm]
version = "17.0.0"
default-features = false

[dependencies.ethrex-rlp]
version = "17.0.0"

[dependencies.rayon]
version = "1.10.0"
optional = true

[dependencies.rustc-hash]
version = "2.1.1"

[dependencies.serde]
version = "1.0.203"
features = [
    "derive",
    "rc",
]

[dependencies.thiserror]
version = "2.0.9"

[dependencies.tracing]
version = "0.1"
features = ["log"]

[dev-dependencies.hex]
version = "0.4.3"

[lints.clippy]
redundant_clone = "warn"
unwrap_used = "deny"
