# 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"
name = "agglayer-primitives"
version = "0.17.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "agglayer-primitives contains various structs and traits that are the ground of agglayer protocol."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/agglayer/interop"

[features]
default = ["keccak"]
keccak = ["dep:tiny-keccak"]
testutils = [
    "alloy-primitives/arbitrary",
    "dep:arbitrary",
    "dep:rand",
]

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

[dependencies.alloy-primitives]
version = "1.5.7"
features = [
    "serde",
    "k256",
]

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

[dependencies.byteorder]
version = "1.5"

[dependencies.derive_more]
version = "2.1"
features = [
    "from",
    "into",
    "from_str",
    "as_ref",
    "display",
]

[dependencies.hex]
version = "0.4.3"

[dependencies.k256]
version = "0.13.4"

[dependencies.rand]
version = "0.10.1"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.tiny-keccak]
version = "2.0"
features = ["keccak"]
optional = true

[dev-dependencies]

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    'cfg(feature, values("cargo-clippy"))',
    "cfg(fuzzing)",
]
