# 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"
rust-version = "1.88"
name = "hydracache-sqlx"
version = "0.52.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLx adapter helpers for HydraCache query result caching."
homepage = "https://github.com/javaquasar/hydracache"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/javaquasar/hydracache"

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

[[test]]
name = "derive_reexport"
path = "tests/derive_reexport.rs"

[[test]]
name = "policy_macro_reexport"
path = "tests/policy_macro_reexport.rs"

[[test]]
name = "postgres_testcontainers"
path = "tests/postgres_testcontainers.rs"

[[test]]
name = "sqlite_prepared"
path = "tests/sqlite_prepared.rs"

[[test]]
name = "transaction_companion"
path = "tests/transaction_companion.rs"

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

[dependencies.hydracache]
version = "0.52.0"

[dependencies.hydracache-core]
version = "0.52.0"

[dependencies.hydracache-db]
version = "0.52.0"
features = ["sqlx-outbox"]

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

[dependencies.sqlx]
version = "0.8"
features = [
    "postgres",
    "runtime-tokio-rustls",
    "sqlite",
]
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.sqlx]
version = "0.8"
features = [
    "postgres",
    "runtime-tokio-rustls",
    "sqlite",
]
default-features = false

[dev-dependencies.testcontainers-modules]
version = "0.15.0"
features = ["postgres"]

[dev-dependencies.tokio]
version = "1.52.3"
features = [
    "macros",
    "net",
    "rt-multi-thread",
    "sync",
    "time",
]
