# 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 = "db-cores"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Database core utilities"
homepage = "https://github.com/Kaifang-123/db-cores"
documentation = "https://docs.rs/db-cores"
readme = "README"
keywords = [
    "database",
    "orm",
    "sql",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/Kaifang-123/db-cores"

[features]
default = ["postgres"]
mysql = [
    "dep:sqlx",
    "sqlx/mysql",
]
postgres = [
    "dep:sqlx",
    "sqlx/postgres",
]
sqlite = [
    "dep:sqlx",
    "sqlx/sqlite",
]

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

[dependencies.anyhow]
version = "1.0.97"

[dependencies.base64]
version = "0.22.1"

[dependencies.chrono]
version = "0.4.42"
features = ["serde"]

[dependencies.db_proc_macro]
version = "0.1.0"

[dependencies.encoding_rs]
version = "0.8.35"

[dependencies.nanoid]
version = "0.4.0"

[dependencies.postgresql_embedded]
version = "0.20.0"

[dependencies.rand]
version = "0.9.2"
features = ["std"]

[dependencies.regex]
version = "1.12.2"

[dependencies.rust_decimal]
version = "1.37.2"

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

[dependencies.serde_json]
version = "1.0.140"

[dependencies.sql-builder]
version = "3.1.1"

[dependencies.sqlparser]
version = "0.59.0"

[dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio",
    "tls-native-tls",
    "chrono",
    "macros",
    "uuid",
    "json",
    "migrate",
    "rust_decimal",
]
optional = true

[dependencies.strum_macros]
version = "0.27.2"

[dependencies.syn]
version = "2.0.106"
features = [
    "full",
    "extra-traits",
]

[dependencies.tokio]
version = "1.48.0"
features = [
    "process",
    "macros",
    "rt-multi-thread",
    "time",
    "fs",
    "io-util",
]
