# 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.95"
name = "spg-sqlx"
version = "7.34.0"
authors = ["GOLIA K.K. <lihao@golia.jp>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "sqlx 0.8 Database driver for spg-embedded — let in-process callers use sqlx::query / query_as / pool.begin against an in-process SPG without a TCP listener. Backs mailrs's drop-in PgPool → SpgPool swap (gap-eval E1)."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/goliajp/spg"

[features]
bigdecimal = [
    "dep:bigdecimal",
    "dep:num-bigint",
    "dep:num-traits",
]
chrono = ["dep:chrono"]
default = [
    "chrono",
    "json",
    "bigdecimal",
    "uuid",
]
json = ["dep:serde_json"]
uuid = ["dep:uuid"]

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

[[test]]
name = "e2e"
path = "tests/e2e/main.rs"

[dependencies.bigdecimal]
version = "0.4"
optional = true
default-features = false

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "std",
]
optional = true
default-features = false

[dependencies.either]
version = "1"

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

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.num-bigint]
version = "0.4"
optional = true
default-features = false

[dependencies.num-traits]
version = "0.2"
optional = true
default-features = false

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.spg-embedded]
version = "7.34"

[dependencies.spg-embedded-tokio]
version = "7.34"

[dependencies.spg-storage]
version = "7.34"

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

[dependencies.tokio]
version = "1"
features = ["sync"]

[dependencies.uuid]
version = "1"
optional = true
default-features = false

[dev-dependencies.bigdecimal]
version = "0.4"

[dev-dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "std",
]

[dev-dependencies.serde_json]
version = "1"

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

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

[dev-dependencies.uuid]
version = "1"
features = ["v4"]
