# 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 = "2021"
rust-version = "1.81"
name = "maili-interop"
version = "0.2.0"
authors = ["Alloy Contributors"]
build = false
exclude = [
    "benches/",
    "tests/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Interop types for Optimism"
homepage = "https://github.com/op-rs/maili"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/op-rs/maili"

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

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

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

[dependencies.alloy-primitives]
version = "0.8.18"
features = ["map"]
default-features = false

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

[dependencies.alloy-sol-types]
version = "0.8.18"
default-features = false

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

[dependencies.derive_more]
version = "1.0.0"
features = [
    "from",
    "as_ref",
]
default-features = false

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

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

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

[dev-dependencies.rand]
version = "0.9.0"
features = ["small_rng"]
default-features = false

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

[features]
arbitrary = [
    "std",
    "dep:arbitrary",
    "alloy-consensus/arbitrary",
    "alloy-eips/arbitrary",
    "alloy-primitives/rand",
    "alloy-primitives/arbitrary",
]
default = [
    "serde",
    "std",
]
serde = [
    "dep:serde",
    "alloy-eips/serde",
    "alloy-primitives/serde",
    "alloy-consensus/serde",
]
std = [
    "alloy-consensus/std",
    "alloy-eips/std",
    "alloy-primitives/std",
    "alloy-rlp/std",
    "alloy-sol-types/std",
    "derive_more/std",
    "serde?/std",
    "thiserror/std",
]

[lints.clippy]
missing-const-for-fn = "warn"
option-if-let-else = "warn"
redundant-clone = "warn"
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"
