# 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"
rust-version = "1.85"
name = "op-alloy-consensus"
version = "0.15.1"
authors = ["Alloy Contributors"]
build = false
exclude = [
    "benches/",
    "tests/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Optimism alloy consensus types"
homepage = "https://github.com/alloy-rs/op-alloy"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/alloy-rs/op-alloy"
resolver = "2"

[features]
alloy-compat = [
    "serde",
    "dep:alloy-network",
    "dep:alloy-rpc-types-eth",
]
arbitrary = [
    "std",
    "dep:arbitrary",
    "alloy-consensus/arbitrary",
    "alloy-eips/arbitrary",
    "alloy-primitives/rand",
    "alloy-primitives/arbitrary",
]
default = ["std"]
k256 = [
    "alloy-primitives/k256",
    "alloy-consensus/k256",
]
kzg = [
    "alloy-eips/kzg",
    "alloy-consensus/kzg",
    "std",
]
serde = [
    "dep:serde",
    "dep:alloy-serde",
    "alloy-primitives/serde",
    "alloy-consensus/serde",
    "alloy-eips/serde",
]
serde-bincode-compat = [
    "serde_with",
    "alloy-consensus/serde-bincode-compat",
]
std = [
    "alloy-eips/std",
    "alloy-consensus/std",
    "derive_more/std",
]

[lib]
name = "op_alloy_consensus"
path = "src/lib.rs"

[dependencies.alloy-consensus]
version = "0.15.0"
default-features = false

[dependencies.alloy-eips]
version = "0.15.0"
default-features = false

[dependencies.alloy-network]
version = "0.15.0"
optional = true
default-features = false

[dependencies.alloy-primitives]
version = "1.0.0"
features = ["rlp"]
default-features = false

[dependencies.alloy-rlp]
version = "0.3"
default-features = false

[dependencies.alloy-rpc-types-eth]
version = "0.15.0"
optional = true
default-features = false

[dependencies.alloy-serde]
version = "0.15.0"
optional = true
default-features = false

[dependencies.arbitrary]
version = "1.4"
features = [
    "derive",
    "derive",
]
optional = true

[dependencies.derive_more]
version = "2.0"
features = ["display"]
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "alloc",
    "derive",
]
optional = true
default-features = false

[dependencies.serde_with]
version = "3.12"
optional = true

[dependencies.thiserror]
version = "2.0"
default-features = false

[dev-dependencies.alloy-primitives]
version = "1.0.0"
features = [
    "rand",
    "arbitrary",
]
default-features = false

[dev-dependencies.alloy-signer]
version = "0.15.0"
default-features = false

[dev-dependencies.arbitrary]
version = "1.4"
features = [
    "derive",
    "derive",
]

[dev-dependencies.bincode]
version = "2.0.1"
features = ["serde"]

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = ["macros"]

[lints.clippy]
missing-const-for-fn = "allow"
option-if-let-else = "warn"
redundant-clone = "warn"
result_large_err = "allow"
use-self = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
missing-debug-implementations = "warn"
missing-docs = "warn"
rust-2018-idioms = "deny"
unnameable-types = "warn"
unreachable-pub = "warn"
unused-must-use = "deny"

[lints.rustdoc]
all = "warn"
