mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-12 23:37:13 +00:00
bcb3959379
* Add array of uuid, chrono, time, bigdecimal, and ipnetwork to query macro * Comment out tests for arrays of BigDecimal Currently arrays of BigDecimal doesn't in query macros compile. As all of the other types work just fine, BigDecimal is simply omitted. * Add serde_json::Value to query macros This also adds serde_json as an optional dependency to sqlx_macros along side a new json feature flag.
137 lines
3.7 KiB
TOML
137 lines
3.7 KiB
TOML
[workspace]
|
|
members = [
|
|
".",
|
|
"sqlx-core",
|
|
"sqlx-macros",
|
|
"sqlx-test",
|
|
"examples/listen-postgres",
|
|
"examples/realworld-postgres",
|
|
"examples/todos-postgres",
|
|
]
|
|
|
|
[package]
|
|
name = "sqlx"
|
|
version = "0.3.0-alpha.2"
|
|
license = "MIT OR Apache-2.0"
|
|
readme = "README.md"
|
|
repository = "https://github.com/launchbadge/sqlx"
|
|
documentation = "https://docs.rs/sqlx"
|
|
description = "🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite."
|
|
edition = "2018"
|
|
keywords = [ "database", "sql", "async", "await" ]
|
|
categories = [ "database", "asynchronous" ]
|
|
authors = [
|
|
"Ryan Leckey <leckey.ryan@gmail.com>", # ryan@launchbadge.com
|
|
"Austin Bonander <austin.bonander@gmail.com>", # austin@launchbadge.com
|
|
"Zachery Gyurkovitz <zgyurkovitz@gmail.com>", # zach@launchbadge.com
|
|
"Daniel Akhterov <akhterovd@gmail.com>", # daniel@launchbadge.com
|
|
]
|
|
|
|
[package.metadata.docs.rs]
|
|
features = [ "tls", "postgres", "mysql", "uuid", "chrono", "json", "time" ]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[features]
|
|
default = [ "macros", "runtime-async-std" ]
|
|
macros = [ "sqlx-macros" ]
|
|
tls = [ "sqlx-core/tls" ]
|
|
|
|
# intended mainly for CI and docs
|
|
all = [ "tls", "all-database", "all-type" ]
|
|
all-database = [ "mysql", "sqlite", "postgres" ]
|
|
all-type = [ "bigdecimal", "json", "time", "chrono", "ipnetwork", "uuid" ]
|
|
|
|
# runtime
|
|
runtime-async-std = [ "sqlx-core/runtime-async-std", "sqlx-macros/runtime-async-std" ]
|
|
runtime-tokio = [ "sqlx-core/runtime-tokio", "sqlx-macros/runtime-tokio" ]
|
|
|
|
# database
|
|
postgres = [ "sqlx-core/postgres", "sqlx-macros/postgres" ]
|
|
mysql = [ "sqlx-core/mysql", "sqlx-macros/mysql" ]
|
|
sqlite = [ "sqlx-core/sqlite", "sqlx-macros/sqlite" ]
|
|
|
|
# types
|
|
bigdecimal = ["sqlx-core/bigdecimal", "sqlx-macros/bigdecimal"]
|
|
chrono = [ "sqlx-core/chrono", "sqlx-macros/chrono" ]
|
|
ipnetwork = [ "sqlx-core/ipnetwork", "sqlx-macros/ipnetwork" ]
|
|
uuid = [ "sqlx-core/uuid", "sqlx-macros/uuid" ]
|
|
json = [ "sqlx-core/json", "sqlx-macros/json" ]
|
|
time = [ "sqlx-core/time", "sqlx-macros/time" ]
|
|
|
|
[dependencies]
|
|
sqlx-core = { version = "0.3.0-alpha.2", path = "sqlx-core", default-features = false }
|
|
sqlx-macros = { version = "0.3.0-alpha.2", path = "sqlx-macros", default-features = false, optional = true }
|
|
|
|
[dev-dependencies]
|
|
anyhow = "1.0.26"
|
|
time_ = { version = "0.2.9", package = "time" }
|
|
futures = "0.3.4"
|
|
env_logger = "0.7.1"
|
|
async-std = { version = "1.5.0", features = [ "attributes" ] }
|
|
tokio = { version = "0.2.13", features = [ "full" ] }
|
|
dotenv = "0.15.0"
|
|
trybuild = "1.0.24"
|
|
sqlx-test = { path = "./sqlx-test" }
|
|
paste = "0.1.7"
|
|
serde = { version = "1.0", features = [ "derive" ] }
|
|
serde_json = "1.0.48"
|
|
|
|
[[test]]
|
|
name = "postgres-macros"
|
|
required-features = [ "postgres", "macros" ]
|
|
|
|
[[test]]
|
|
name = "mysql-macros"
|
|
required-features = [ "mysql", "macros" ]
|
|
|
|
[[test]]
|
|
name = "sqlite"
|
|
required-features = [ "sqlite" ]
|
|
|
|
[[test]]
|
|
name = "sqlite-macros"
|
|
required-features = [ "sqlite", "macros" ]
|
|
|
|
[[test]]
|
|
name = "sqlite-raw"
|
|
required-features = [ "sqlite" ]
|
|
|
|
[[test]]
|
|
name = "sqlite-derives"
|
|
required-features = [ "sqlite", "macros" ]
|
|
|
|
[[test]]
|
|
name = "sqlite-types"
|
|
required-features = [ "sqlite" ]
|
|
|
|
[[test]]
|
|
name = "mysql"
|
|
required-features = [ "mysql" ]
|
|
|
|
[[test]]
|
|
name = "mysql-raw"
|
|
required-features = [ "mysql" ]
|
|
|
|
[[test]]
|
|
name = "mysql-derives"
|
|
required-features = [ "mysql", "macros" ]
|
|
|
|
[[test]]
|
|
name = "postgres"
|
|
required-features = [ "postgres" ]
|
|
|
|
[[test]]
|
|
name = "postgres-raw"
|
|
required-features = [ "postgres" ]
|
|
|
|
[[test]]
|
|
name = "postgres-types"
|
|
required-features = [ "postgres" ]
|
|
|
|
[[test]]
|
|
name = "postgres-derives"
|
|
required-features = [ "postgres", "macros" ]
|
|
|
|
[[test]]
|
|
name = "mysql-types"
|
|
required-features = [ "mysql" ]
|