[package]
name = "reth-optimism-evm"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true

[lints]
workspace = true

[dependencies]
# Reth
reth-chainspec.workspace = true
reth-ethereum-forks.workspace = true
reth-evm.workspace = true
reth-primitives.workspace = true
reth-primitives-traits.workspace = true
reth-revm.workspace = true
reth-execution-errors.workspace = true
reth-execution-types.workspace = true
reth-prune-types.workspace = true
reth-consensus.workspace = true
reth-consensus-common.workspace = true

# ethereum
alloy-eips.workspace = true
alloy-primitives.workspace = true
op-alloy-consensus.workspace = true
alloy-consensus.workspace = true

# Optimism
reth-optimism-consensus.workspace = true
reth-optimism-chainspec.workspace = true
reth-optimism-forks.workspace = true
reth-optimism-primitives.workspace = true

# revm
revm.workspace = true
revm-primitives.workspace = true

# misc
derive_more.workspace = true
tracing.workspace = true
thiserror.workspace = true

[dev-dependencies]
reth-evm = { workspace = true, features = ["test-utils"] }
reth-revm = { workspace = true, features = ["test-utils"] }
reth-primitives = { workspace = true, features = ["test-utils"] }
reth-optimism-chainspec.workspace = true
alloy-genesis.workspace = true
alloy-consensus.workspace = true
reth-optimism-primitives = { workspace = true, features = ["arbitrary"] }

[features]
default = ["std"]
std = [
    "reth-consensus/std",
    "reth-primitives/std",
    "reth-revm/std",
    "alloy-consensus/std",
    "alloy-eips/std",
    "alloy-genesis/std",
    "alloy-primitives/std",
    "revm-primitives/std",
    "reth-primitives-traits/std",
    "revm/std",
    "reth-optimism-primitives/std",
    "reth-ethereum-forks/std",
    "derive_more/std",
    "reth-optimism-forks/std",
    "thiserror/std",
    "op-alloy-consensus/std",
    "reth-chainspec/std",
    "reth-optimism-consensus/std",
    "reth-consensus-common/std",
]
optimism = [
    "reth-execution-types/optimism",
    "reth-optimism-consensus/optimism",
    "revm/optimism",
    "revm-primitives/optimism",
    "reth-optimism-primitives/optimism",
]
