# 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.75"
name = "bsql"
version = "0.22.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe SQL for Rust — if it compiles, the SQL is correct"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/smir-ant/bsql"

[features]
async = [
    "bsql-core/async",
    "dep:tokio",
]
chrono = [
    "bsql-core/chrono",
    "bsql-macros/chrono",
]
decimal = [
    "bsql-core/decimal",
    "bsql-macros/decimal",
]
default = ["async"]
detect-n-plus-one = ["bsql-core/detect-n-plus-one"]
explain = ["bsql-macros/explain"]
sqlite = [
    "bsql-core/sqlite",
    "bsql-macros/sqlite",
    "dep:bsql-driver-sqlite",
]
sqlite-bundled = [
    "sqlite",
    "bsql-core/sqlite-bundled",
    "bsql-macros/sqlite-bundled",
    "bsql-driver-sqlite/bundled",
]
sqlite-system = [
    "sqlite",
    "bsql-core/sqlite-system",
    "bsql-macros/sqlite-system",
    "bsql-driver-sqlite/system",
]
time = [
    "bsql-core/time",
    "bsql-macros/time",
]
tls = [
    "bsql-core/tls",
    "bsql-macros/tls",
]
uuid = [
    "bsql-core/uuid",
    "bsql-macros/uuid",
]

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

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

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

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

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

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

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

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

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

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

[dependencies.bsql-core]
version = "0.22.2"

[dependencies.bsql-driver-sqlite]
version = "0.22.2"
optional = true

[dependencies.bsql-macros]
version = "0.22.2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]
optional = true
default-features = false

[dev-dependencies.bsql-driver-postgres]
version = "0.22.2"

[dev-dependencies.rust_decimal]
version = "1"
features = ["std"]
default-features = false

[dev-dependencies.time]
version = ">=0.3.36, <0.3.38"
features = ["std"]
default-features = false

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

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

[dev-dependencies.uuid]
version = ">=1.8, <1.22"
features = ["v4"]
default-features = false
