[package]
edition = "2021"
rust-version = "1.86.0"
name = "msqlx"
version = "0.9.0-msqlx.1"
authors = [
"Ryan Leckey <leckey.ryan@gmail.com>",
"Austin Bonander <austin.bonander@gmail.com>",
"Chloe Ross <orangesnowfox@gmail.com>",
"Daniel Akhterov <akhterovd@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Temporary fork of sqlx with unreleased fixes. 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite."
documentation = "https://docs.rs/sqlx"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/launchbadge/sqlx"
[package.metadata.docs.rs]
features = ["_unstable-docs"]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
_rt-async-global-executor = []
_rt-async-std = []
_rt-smol = []
_rt-tokio = []
_sqlite = []
_unstable-all-types = [
"bigdecimal",
"rust_decimal",
"json",
"time",
"chrono",
"ipnet",
"ipnetwork",
"mac_address",
"uuid",
"bit-vec",
"bstr",
]
_unstable-docs = [
"all-databases",
"_unstable-all-types",
"sqlx-sqlite/_unstable-docs",
]
all-databases = [
"mysql",
"sqlite",
"postgres",
"any",
]
any = [
"sqlx-core/any",
"sqlx-mysql?/any",
"sqlx-postgres?/any",
"sqlx-sqlite?/any",
]
bigdecimal = [
"sqlx-core/bigdecimal",
"sqlx-macros?/bigdecimal",
"sqlx-mysql?/bigdecimal",
"sqlx-postgres?/bigdecimal",
]
bit-vec = [
"sqlx-core/bit-vec",
"sqlx-macros?/bit-vec",
"sqlx-postgres?/bit-vec",
]
bstr = ["sqlx-core/bstr"]
chrono = [
"sqlx-core/chrono",
"sqlx-macros?/chrono",
"sqlx-mysql?/chrono",
"sqlx-postgres?/chrono",
"sqlx-sqlite?/chrono",
]
default = [
"any",
"macros",
"migrate",
"json",
]
derive = ["sqlx-macros/derive"]
ipnet = [
"sqlx-core/ipnet",
"sqlx-macros?/ipnet",
"sqlx-postgres?/ipnet",
]
ipnetwork = [
"sqlx-core/ipnetwork",
"sqlx-macros?/ipnetwork",
"sqlx-postgres?/ipnetwork",
]
json = [
"sqlx-core/json",
"sqlx-macros?/json",
"sqlx-mysql?/json",
"sqlx-postgres?/json",
"sqlx-sqlite?/json",
]
mac_address = [
"sqlx-core/mac_address",
"sqlx-macros?/mac_address",
"sqlx-postgres?/mac_address",
]
macros = [
"derive",
"sqlx-macros/macros",
"sqlx-core/offline",
"sqlx-mysql?/offline",
"sqlx-postgres?/offline",
"sqlx-sqlite?/offline",
]
migrate = [
"sqlx-core/migrate",
"sqlx-macros?/migrate",
"sqlx-mysql?/migrate",
"sqlx-postgres?/migrate",
"sqlx-sqlite?/migrate",
]
mysql = [
"sqlx-mysql",
"sqlx-macros?/mysql",
]
postgres = [
"sqlx-postgres",
"sqlx-macros?/postgres",
]
regexp = ["sqlx-sqlite?/regexp"]
runtime-async-global-executor = [
"_rt-async-global-executor",
"sqlx-core/_rt-async-global-executor",
"sqlx-macros?/_rt-async-global-executor",
]
runtime-async-std = [
"_rt-async-std",
"sqlx-core/_rt-async-std",
"sqlx-macros?/_rt-async-std",
]
runtime-smol = [
"_rt-smol",
"sqlx-core/_rt-smol",
"sqlx-macros?/_rt-smol",
]
runtime-tokio = [
"_rt-tokio",
"sqlx-core/_rt-tokio",
"sqlx-macros?/_rt-tokio",
]
rust_decimal = [
"sqlx-core/rust_decimal",
"sqlx-macros?/rust_decimal",
"sqlx-mysql?/rust_decimal",
"sqlx-postgres?/rust_decimal",
]
sqlite = [
"sqlite-bundled",
"sqlite-deserialize",
"sqlite-load-extension",
"sqlite-unlock-notify",
]
sqlite-bundled = [
"_sqlite",
"sqlx-sqlite/bundled",
"sqlx-macros?/sqlite",
]
sqlite-deserialize = ["sqlx-sqlite/deserialize"]
sqlite-load-extension = [
"sqlx-sqlite/load-extension",
"sqlx-macros?/sqlite-load-extension",
]
sqlite-preupdate-hook = ["sqlx-sqlite/preupdate-hook"]
sqlite-unbundled = [
"_sqlite",
"sqlx-sqlite/unbundled",
"sqlx-macros?/sqlite-unbundled",
]
sqlite-unlock-notify = ["sqlx-sqlite/unlock-notify"]
sqlx-toml = [
"sqlx-core/sqlx-toml",
"sqlx-macros?/sqlx-toml",
"sqlx-sqlite?/sqlx-toml",
]
time = [
"sqlx-core/time",
"sqlx-macros?/time",
"sqlx-mysql?/time",
"sqlx-postgres?/time",
"sqlx-sqlite?/time",
]
tls-native-tls = [
"sqlx-core/_tls-native-tls",
"sqlx-macros?/_tls-native-tls",
]
tls-none = []
tls-rustls = ["tls-rustls-ring"]
tls-rustls-aws-lc-rs = [
"sqlx-core/_tls-rustls-aws-lc-rs",
"sqlx-macros?/_tls-rustls-aws-lc-rs",
]
tls-rustls-ring = ["tls-rustls-ring-webpki"]
tls-rustls-ring-native-roots = [
"sqlx-core/_tls-rustls-ring-native-roots",
"sqlx-macros?/_tls-rustls-ring-native-roots",
]
tls-rustls-ring-webpki = [
"sqlx-core/_tls-rustls-ring-webpki",
"sqlx-macros?/_tls-rustls-ring-webpki",
]
uuid = [
"sqlx-core/uuid",
"sqlx-macros?/uuid",
"sqlx-mysql?/uuid",
"sqlx-postgres?/uuid",
"sqlx-sqlite?/uuid",
]
[lib]
name = "sqlx"
path = "src/lib.rs"
[[test]]
name = "any"
path = "tests/any/any.rs"
required-features = ["any"]
[[test]]
name = "any-pool"
path = "tests/any/pool.rs"
required-features = ["any"]
[[test]]
name = "migrate-macro"
path = "tests/migrate/macro.rs"
required-features = [
"macros",
"migrate",
]
[[test]]
name = "mysql"
path = "tests/mysql/mysql.rs"
required-features = ["mysql"]
[[test]]
name = "mysql-derives"
path = "tests/mysql/derives.rs"
required-features = [
"mysql",
"derive",
]
[[test]]
name = "mysql-describe"
path = "tests/mysql/describe.rs"
required-features = ["mysql"]
[[test]]
name = "mysql-error"
path = "tests/mysql/error.rs"
required-features = ["mysql"]
[[test]]
name = "mysql-macros"
path = "tests/mysql/macros.rs"
required-features = [
"mysql",
"macros",
]
[[test]]
name = "mysql-migrate"
path = "tests/mysql/migrate.rs"
required-features = [
"mysql",
"macros",
"migrate",
]
[[test]]
name = "mysql-rustsec"
path = "tests/mysql/rustsec.rs"
required-features = ["mysql"]
[[test]]
name = "mysql-test-attr"
path = "tests/mysql/test-attr.rs"
required-features = [
"mysql",
"macros",
"migrate",
]
[[test]]
name = "mysql-types"
path = "tests/mysql/types.rs"
required-features = ["mysql"]
[[test]]
name = "postgres"
path = "tests/postgres/postgres.rs"
required-features = ["postgres"]
[[test]]
name = "postgres-derives"
path = "tests/postgres/derives.rs"
required-features = [
"postgres",
"macros",
]
[[test]]
name = "postgres-describe"
path = "tests/postgres/describe.rs"
required-features = ["postgres"]
[[test]]
name = "postgres-error"
path = "tests/postgres/error.rs"
required-features = ["postgres"]
[[test]]
name = "postgres-macros"
path = "tests/postgres/macros.rs"
required-features = [
"postgres",
"macros",
]
[[test]]
name = "postgres-migrate"
path = "tests/postgres/migrate.rs"
required-features = [
"postgres",
"macros",
"migrate",
]
[[test]]
name = "postgres-query-builder"
path = "tests/postgres/query_builder.rs"
required-features = ["postgres"]
[[test]]
name = "postgres-rustsec"
path = "tests/postgres/rustsec.rs"
required-features = [
"postgres",
"macros",
"migrate",
]
[[test]]
name = "postgres-test-attr"
path = "tests/postgres/test-attr.rs"
required-features = [
"postgres",
"macros",
"migrate",
]
[[test]]
name = "postgres-types"
path = "tests/postgres/types.rs"
required-features = ["postgres"]
[[test]]
name = "sqlite"
path = "tests/sqlite/sqlite.rs"
required-features = ["sqlite"]
[[test]]
name = "sqlite-any"
path = "tests/sqlite/any.rs"
required-features = ["sqlite"]
[[test]]
name = "sqlite-derives"
path = "tests/sqlite/derives.rs"
required-features = [
"sqlite",
"macros",
]
[[test]]
name = "sqlite-describe"
path = "tests/sqlite/describe.rs"
required-features = ["sqlite"]
[[test]]
name = "sqlite-error"
path = "tests/sqlite/error.rs"
required-features = ["sqlite"]
[[test]]
name = "sqlite-macros"
path = "tests/sqlite/macros.rs"
required-features = [
"_sqlite",
"macros",
]
[[test]]
name = "sqlite-migrate"
path = "tests/sqlite/migrate.rs"
required-features = [
"sqlite",
"macros",
"migrate",
]
[[test]]
name = "sqlite-rustsec"
path = "tests/sqlite/rustsec.rs"
required-features = ["sqlite"]
[[test]]
name = "sqlite-sqlcipher"
path = "tests/sqlite/sqlcipher.rs"
required-features = ["sqlite"]
[[test]]
name = "sqlite-test-attr"
path = "tests/sqlite/test-attr.rs"
required-features = [
"sqlite",
"macros",
"migrate",
]
[[test]]
name = "sqlite-types"
path = "tests/sqlite/types.rs"
required-features = ["sqlite"]
[[test]]
name = "ui-tests"
path = "tests/ui-tests.rs"
[[bench]]
name = "sqlite-describe"
path = "benches/sqlite/describe.rs"
harness = false
required-features = ["sqlite"]
[dependencies.sqlx-core]
version = "=0.9.0-msqlx.1"
features = ["migrate"]
package = "msqlx-core"
[dependencies.sqlx-macros]
version = "=0.9.0-msqlx.1"
optional = true
package = "msqlx-macros"
[dependencies.sqlx-mysql]
version = "=0.9.0-msqlx.1"
optional = true
package = "msqlx-mysql"
[dependencies.sqlx-postgres]
version = "=0.9.0-msqlx.1"
optional = true
package = "msqlx-postgres"
[dependencies.sqlx-sqlite]
version = "=0.9.0-msqlx.1"
optional = true
package = "msqlx-sqlite"
[dev-dependencies.anyhow]
version = "1.0.52"
[dev-dependencies.async-std]
version = "1.13"
features = ["attributes"]
[dev-dependencies.criterion]
version = "0.5.1"
features = ["async_tokio"]
[dev-dependencies.dotenvy]
version = "0.15.0"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.futures-util]
version = "0.3.19"
features = ["alloc"]
default-features = false
[dev-dependencies.hex]
version = "0.4.3"
[dev-dependencies.libsqlite3-sys]
version = "0.30.1"
[dev-dependencies.paste]
version = "1.0.6"
[dev-dependencies.rand]
version = "0.8.4"
[dev-dependencies.rand_xoshiro]
version = "0.6.0"
[dev-dependencies.serde]
version = "1.0.132"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0.73"
[dev-dependencies.tempfile]
version = "3.10.1"
[dev-dependencies.time_]
version = "0.3.2"
package = "time"
[dev-dependencies.tokio]
version = "1.15.0"
features = ["full"]
[dev-dependencies.trybuild]
version = "1.0.53"
[dev-dependencies.url]
version = "2.2.2"
[target."cfg(sqlite_test_sqlcipher)".dev-dependencies.libsqlite3-sys]
version = "0.30.1"
features = ["bundled-sqlcipher"]
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(mariadb, values(any()))",
"cfg(postgres, values(any()))",
"cfg(sqlite_ipaddr)",
"cfg(sqlite_test_sqlcipher)",
]