# 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"
name = "ethrex-l2-common"
version = "17.0.0"
authors = ["LambdaClass"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared L2 rollup types and helpers for the ethrex Ethereum client"
documentation = "https://docs.ethrex.xyz"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/lambdaclass/ethrex"
resolver = "2"

[features]
default = ["secp256k1"]
risc0 = []
secp256k1 = ["dep:secp256k1"]
sp1 = []
zisk = []

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

[dependencies.bytes]
version = "1.6.0"
features = ["serde"]

[dependencies.ethereum-types]
version = "0.15.1"
features = ["serialize"]

[dependencies.ethrex-common]
version = "17.0.0"
default-features = false

[dependencies.ethrex-crypto]
version = "17.0.0"
default-features = false

[dependencies.k256]
version = "0.13.4"

[dependencies.lambdaworks-crypto]
version = "0.13.0"

[dependencies.rkyv]
version = "0.8.10"
features = [
    "std",
    "unaligned",
]

[dependencies.secp256k1]
version = "0.30.0"
features = [
    "global-context",
    "recovery",
    "rand",
]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.203"
features = [
    "derive",
    "rc",
]

[dependencies.serde_with]
version = "3.11.0"

[dependencies.thiserror]
version = "2.0.9"

[dependencies.tracing]
version = "0.1"
features = ["log"]

[lints.clippy]
as_conversions = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
redundant_clone = "warn"
unnecessary_cast = "warn"
unwrap_used = "deny"
