# 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-storage-rollup"
version = "18.0.0"
authors = ["LambdaClass"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rollup batch and prover-input storage for the ethrex L2 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 = []
l2 = []
sql = [
    "dep:libsql",
    "dep:tokio",
]

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

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

[dependencies.bincode]
version = "1.3.3"

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

[dependencies.ethrex-common]
version = "18.0.0"
features = ["c-kzg"]
default-features = false

[dependencies.ethrex-l2-common]
version = "18.0.0"

[dependencies.futures]
version = "0.3.31"

[dependencies.libsql]
version = "0.9.10"
optional = true

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

[dependencies.thiserror]
version = "2.0.9"

[dependencies.tokio]
version = "1.41.1"
features = [
    "rt",
    "test-util",
]
optional = true
default-features = false

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