[package]
authors = [
"Julius de Bruijn <bruijn@prisma.io>",
"Katharina Fey <kookie@spacekookie.de>",
"Tom Houlé <tom@tomhoule.com>",
"Emanuel Jöbstl <emanuel.joebstl@gmail.com>",
"Matthias Oertel <oertel@prisma.io>",
"Dominic Petrick <petrick@prisma.io>",
]
description = "An abstraction layer for SQL databases."
documentation = "https://docs.rs/quaint/"
edition = "2021"
rust = "1.67"
homepage = "https://github.com/zhangkaiyulw/quaint/"
keywords = ["mysql", "postgresql", "sqlite", "sql"]
license = "Apache-2.0"
name = "quaint-forked"
readme = "README.md"
repository = "https://github.com/zhangkaiyulw/quaint/"
version = "0.1.2"
resolver = "2"
[package.metadata.docs.rs]
features = ["docs", "all"]
[features]
default = []
docs = []
expose-drivers = []
all = [
"chrono",
"json",
"mssql",
"mysql",
"pooled",
"postgresql",
"serde-support",
"sqlite",
"uuid",
"bigdecimal",
]
postgresql = [
"native-tls",
"tokio-postgres",
"postgres-types",
"postgres-native-tls",
"bytes",
"tokio",
"bit-vec",
"lru-cache",
"byteorder",
]
json = ["serde_json", "base64"]
mssql = ["tiberius", "uuid", "chrono", "tokio-util", "tokio/time", "tokio/net", "either"]
mysql = ["mysql_async", "tokio/time", "lru-cache"]
pooled = ["mobc-forked"]
serde-support = ["serde", "chrono/serde"]
sqlite = ["rusqlite", "libsqlite3-sys", "tokio/sync"]
bigdecimal = ["bigdecimal_"]
fmt-sql = ["sqlformat"]
[dependencies]
connection-string = "0.1.10"
percent-encoding = "2"
tracing-core = "0.1"
async-trait = "0.1"
thiserror = "1.0"
num_cpus = "1.12"
metrics = "0.18"
tracing = "0.1"
futures = "0.3"
url = "2.1"
hex = "0.4"
either = { version = "1.6", optional = true }
base64 = { version = "0.12.3", optional = true }
chrono = { version = "0.4", optional = true, default-features = false }
lru-cache = { version = "0.1", optional = true }
serde_json = { version = "1.0.48", optional = true, features = ["float_roundtrip"] }
native-tls = { version = "0.2", optional = true }
bit-vec = { version = "0.6.1", optional = true }
bytes = { version = "1.0", optional = true }
mobc-forked = { version = "0.7.3", optional = true }
serde = { version = "1.0", optional = true }
sqlformat = { version = "0.2.0", optional = true }
[dev-dependencies]
once_cell = "1.3"
indoc = "0.3"
names = "0.11"
paste = "1.0"
serde = { version = "1.0", features = ["derive"] }
test-macros = { path = "test-macros" }
test-setup = { path = "test-setup" }
uuid = { version = "1", features = ["v4"] }
tokio = { version = "1.26", features = ["rt-multi-thread", "macros", "time"] }
[dependencies.byteorder]
default-features = false
optional = true
version = ">1.4.0"
[dependencies.mysql_async]
version = "0.31.3"
optional = true
[dependencies.rusqlite]
version = "0.25"
features = ["chrono", "bundled", "column_decltype"]
optional = true
[dependencies.libsqlite3-sys]
version = "0.22"
default-features = false
features = ["bundled"]
optional = true
[target.'cfg(not(any(target_os = "macos", target_os = "ios")))'.dependencies.tiberius]
version = "0.11.6"
optional = true
features = ["sql-browser-tokio", "chrono", "bigdecimal"]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.tiberius]
version = "0.11.2"
optional = true
default-features = false
features = ["sql-browser-tokio", "chrono", "bigdecimal", "tds73", "winauth"]
[dependencies.bigdecimal_]
version = "0.3"
optional = true
package = "bigdecimal"
[dependencies.uuid]
version = "1"
optional = true
[dependencies.tokio-postgres]
features = ["with-uuid-1", "with-chrono-0_4", "with-serde_json-1", "with-bit-vec-0_6"]
version = "0.7.7"
optional = true
[dependencies.postgres-types]
features = ["with-uuid-1", "with-chrono-0_4", "with-serde_json-1", "with-bit-vec-0_6"]
version = "0.2.4"
optional = true
[dependencies.postgres-native-tls]
version = "0.5.0"
optional = true
[dependencies.tokio]
version = "1.0"
features = ["rt-multi-thread", "macros", "sync"]
optional = true
[dependencies.tokio-util]
version = "0.6"
features = ["compat"]
optional = true