# 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 = "br-db"
version = "1.8.71"
authors = ["Doraemon <7991156@qq.com>"]
build = false
exclude = [
    "INSTALL.md",
    "examples",
    "tests",
    "CLAUDE.md",
    "AGENTS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "This is an orm database mysql mssql sqlite"
readme = "README.md"
keywords = [
    "br",
    "orm",
    "db",
    "sql",
]
license = "MIT"

[features]
db-mssql = [
    "tiberius",
    "async-std",
    "tokio",
]
db-mysql = ["mysql"]
db-pgsql = ["br-pgsql"]
db-sqlite = ["sqlite"]
default = [
    "db-sqlite",
    "db-mysql",
    "db-mssql",
    "db-pgsql",
]

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

[dependencies.async-std]
version = "1.13"
features = ["default"]
optional = true
default-features = false

[dependencies.br-crypto]
version = "0.4.8"
features = ["br_md5"]

[dependencies.br-fields]
version = "2.3.5"

[dependencies.br-pgsql]
version = "0.1.29"
optional = true

[dependencies.chrono]
version = "0.4"

[dependencies.json]
version = "0.12"

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.log]
version = "0.4"

[dependencies.mysql]
version = "27.0.0"
optional = true

[dependencies.num_cpus]
version = "1.17.0"

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

[dependencies.sqlite]
version = "0.37.0"
features = ["linkage"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tiberius]
version = "0.12"
features = [
    "chrono",
    "time",
]
optional = true
default-features = false

[dependencies.tokio]
version = "1.49"
features = ["full"]
optional = true
default-features = false

[dependencies.toml]
version = "0.9"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tokio-postgres]
version = "0.7"
features = ["with-chrono-0_4"]
