# 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.92"
name = "signet-cold-sql"
version = "0.7.2"
authors = ["init4"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQL backend for signet-cold storage"
homepage = "https://github.com/init4tech/signet-storage"
readme = "README.md"
keywords = [
    "sql",
    "storage",
    "cold-storage",
    "blockchain",
]
categories = ["database-implementations"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/init4tech/signet-storage"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
postgres = [
    "sqlx/postgres",
    "sqlx/any",
    "sqlx/runtime-tokio-rustls",
    "dep:alloy",
    "dep:signet-storage-types",
    "dep:signet-zenith",
    "dep:tokio",
    "dep:tokio-stream",
]
sqlite = [
    "sqlx/sqlite",
    "sqlx/any",
    "sqlx/runtime-tokio-rustls",
    "dep:alloy",
    "dep:signet-storage-types",
    "dep:signet-zenith",
    "dep:tokio",
]
test-utils = [
    "signet-cold/test-utils",
    "sqlite",
    "postgres",
]

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

[dependencies.alloy]
version = "1.6"
features = [
    "consensus",
    "rlp",
    "rpc-types-eth",
]
optional = true
default-features = false

[dependencies.alloy-primitives]
version = "1.5.6"
features = ["sqlx"]

[dependencies.signet-cold]
version = "0.7.2"

[dependencies.signet-storage-types]
version = "0.7.2"
optional = true

[dependencies.signet-zenith]
version = "0.16.0-rc.11"
optional = true

[dependencies.sqlx]
version = "0.8"
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.45.0"
features = ["full"]
optional = true

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dev-dependencies.signet-cold]
version = "0.7.2"
features = ["test-utils"]

[dev-dependencies.tokio]
version = "1.45.0"
features = [
    "full",
    "rt-multi-thread",
    "macros",
]
