# 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 = "axum-sqlx-tx"
version = "0.8.0"
include = [
    "LICENSE",
    "README.md",
    "Cargo.toml",
    "**/*.rs",
]
description = "Request-scoped SQLx transactions for axum"
readme = "README.md"
license = "MIT"
repository = "https://github.com/digital-society-coop/axum-sqlx-tx/"

[package.metadata.docs.rs]
features = [
    "all-databases",
    "runtime-tokio-rustls",
]

[dependencies.axum-core]
version = "0.4"

[dependencies.bytes]
version = "1"

[dependencies.futures-core]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.http-body]
version = "1"

[dependencies.parking_lot]
version = "0.12"
features = [
    "arc_lock",
    "send_guard",
]

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

[dependencies.thiserror]
version = "1"

[dependencies.tower-layer]
version = "0.3"

[dependencies.tower-service]
version = "0.3"

[dev-dependencies.axum]
version = "0.7.1"

[dev-dependencies.http-body-util]
version = "0.1.0"

[dev-dependencies.hyper]
version = "1.0.1"

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

[dev-dependencies.tower]
version = "0.4.12"

[features]
all-databases = [
    "any",
    "mysql",
    "postgres",
    "sqlite",
]
any = ["sqlx/any"]
mysql = ["sqlx/mysql"]
postgres = ["sqlx/postgres"]
runtime-tokio-native-tls = ["sqlx/runtime-tokio-native-tls"]
runtime-tokio-rustls = ["sqlx/runtime-tokio-rustls"]
sqlite = ["sqlx/sqlite"]
