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

[lints]
workspace = true

[dependencies]
# reth
reth-execution-types.workspace = true
reth-chainspec.workspace = true
reth-consensus-common.workspace = true
reth-consensus.workspace = true
reth-primitives-traits.workspace = true
reth-storage-api.workspace = true
reth-storage-errors.workspace = true
reth-trie-common.workspace = true

# op-reth
reth-optimism-forks.workspace = true
reth-optimism-chainspec.workspace = true
# remove this after feature cleanup
reth-optimism-primitives = { workspace = true, features = ["serde", "reth-codec"] }
reth-optimism-storage.workspace = true

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

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

[dev-dependencies]
reth-provider = { workspace = true, features = ["test-utils"] }
reth-db-common.workspace = true
reth-revm.workspace = true
reth-trie.workspace = true
reth-optimism-chainspec.workspace = true
reth-optimism-node.workspace = true

alloy-chains.workspace = true
alloy-primitives.workspace = true
op-alloy-consensus.workspace = true

[features]
default = ["std"]
std = [
    "reth-chainspec/std",
    "reth-consensus/std",
    "reth-consensus-common/std",
    "reth-primitives-traits/std",
    "reth-optimism-forks/std",
    "reth-optimism-chainspec/std",
    "reth-optimism-primitives/std",
    "reth-storage-api/std",
    "reth-storage-errors/std",
    "reth-trie-common/std",
    "reth-optimism-storage/std",
    "alloy-chains/std",
    "alloy-eips/std",
    "alloy-primitives/std",
    "alloy-consensus/std",
    "alloy-trie/std",
    "op-alloy-consensus/std",
    "reth-revm/std",
    "revm/std",
    "tracing/std",
    "thiserror/std",
    "reth-execution-types/std",
]
