kona-protocol 0.4.5

Optimism protocol-specific types
Documentation
# 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.86"
name = "kona-protocol"
version = "0.4.5"
authors = [
    "clabby",
    "refcell",
    "theochap",
]
build = false
exclude = ["**/target"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Optimism protocol-specific types"
homepage = "https://github.com/op-rs/kona"
readme = "README.md"
license = "MIT"
repository = "https://github.com/op-rs/kona"
resolver = "2"

[features]
arbitrary = [
    "alloy-consensus/arbitrary",
    "alloy-eips/arbitrary",
    "alloy-primitives/arbitrary",
    "alloy-primitives/rand",
    "alloy-rpc-types-engine/arbitrary",
    "alloy-rpc-types-eth/arbitrary",
    "alloy-serde?/arbitrary",
    "dep:arbitrary",
    "kona-genesis/arbitrary",
    "op-alloy-consensus/arbitrary",
    "op-alloy-rpc-types-engine/arbitrary",
    "op-alloy-rpc-types/arbitrary",
    "std",
]
default = []
serde = [
    "alloy-consensus/serde",
    "alloy-eips/serde",
    "alloy-primitives/serde",
    "alloy-rpc-types-engine/serde",
    "alloy-rpc-types-eth/serde",
    "dep:alloy-serde",
    "dep:serde",
    "kona-genesis/serde",
    "op-alloy-consensus/serde",
    "op-alloy-rpc-types-engine/serde",
    "op-alloy-rpc-types/serde",
    "tracing-subscriber?/serde",
]
std = [
    "alloy-consensus/std",
    "alloy-eips/std",
    "alloy-primitives/std",
    "alloy-rlp/std",
    "alloy-rpc-types-engine/std",
    "alloy-rpc-types-eth/std",
    "alloy-serde?/std",
    "brotli/std",
    "derive_more/std",
    "kona-genesis/std",
    "miniz_oxide/std",
    "op-alloy-consensus/std",
    "op-alloy-rpc-types-engine/std",
    "op-alloy-rpc-types/std",
    "serde?/std",
    "spin?/std",
    "thiserror/std",
    "tracing/std",
    "unsigned-varint/std",
]
test-utils = [
    "dep:spin",
    "dep:tracing-subscriber",
]

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

[[example]]
name = "frames_to_batch"
path = "examples/frames_to_batch.rs"

[dependencies.alloc-no-stdlib]
version = "2.0.4"

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

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

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

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

[dependencies.alloy-rpc-types-engine]
version = "1.0.18"
default-features = false

[dependencies.alloy-rpc-types-eth]
version = "1.0.18"
default-features = false

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

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

[dependencies.async-trait]
version = "0.1.88"

[dependencies.brotli]
version = "8.0.1"
default-features = false

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

[dependencies.kona-genesis]
version = "0.4.5"
default-features = false

[dependencies.miniz_oxide]
version = "0.8.8"

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

[dependencies.op-alloy-rpc-types]
version = "0.18.3"
default-features = false

[dependencies.op-alloy-rpc-types-engine]
version = "0.18.3"
default-features = false

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

[dependencies.spin]
version = "0.10.0"
optional = true

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

[dependencies.tracing]
version = "0.1.41"
default-features = false

[dependencies.tracing-subscriber]
version = "0.3.19"
features = ["fmt"]
optional = true

[dependencies.unsigned-varint]
version = "0.8.0"

[dev-dependencies.alloy-primitives]
version = "1.2.1"
features = ["arbitrary"]
default-features = false

[dev-dependencies.alloy-rpc-types-eth]
version = "1.0.18"
default-features = false

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

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

[dev-dependencies.brotli]
version = "8.0.1"
features = ["std"]
default-features = false

[dev-dependencies.op-alloy-consensus]
version = "0.18.3"
default-features = false

[dev-dependencies.op-alloy-rpc-types]
version = "0.18.3"
default-features = false

[dev-dependencies.proptest]
version = "1.6.0"

[dev-dependencies.rand]
version = "0.9.1"
features = [
    "std",
    "std_rng",
]
default-features = false

[dev-dependencies.rstest]
version = "0.25.0"

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

[dev-dependencies.spin]
version = "0.10.0"

[dev-dependencies.tokio]
version = "1.45.1"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3.19"
features = ["fmt"]

[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"