sqlx/Cargo.toml

210 lines
5.2 KiB
TOML
Raw Normal View History

2019-11-21 23:29:40 +00:00
[workspace]
members = [
".",
"sqlx-core",
"sqlx-rt",
2019-11-21 23:29:40 +00:00
"sqlx-macros",
"sqlx-test",
"sqlx-cli",
"sqlx-bench",
2020-03-31 13:05:52 +00:00
"examples/mysql/todos",
2020-03-30 23:35:07 +00:00
"examples/postgres/listen",
"examples/postgres/todos",
"examples/sqlite/todos",
"examples/realworld",
2019-11-21 23:29:40 +00:00
]
2019-06-06 13:02:55 +00:00
[package]
2019-06-23 03:54:43 +00:00
name = "sqlx"
2020-05-31 06:15:52 +00:00
version = "0.4.0-pre"
2019-06-06 13:02:55 +00:00
license = "MIT OR Apache-2.0"
2019-12-28 01:31:01 +00:00
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."
2019-06-06 13:02:55 +00:00
edition = "2018"
keywords = [ "database", "async", "postgres", "mysql", "sqlite" ]
2020-01-04 09:37:37 +00:00
categories = [ "database", "asynchronous" ]
2019-11-20 17:05:21 +00:00
authors = [
2019-12-28 08:36:37 +00:00
"Ryan Leckey <leckey.ryan@gmail.com>", # ryan@launchbadge.com
"Austin Bonander <austin.bonander@gmail.com>", # austin@launchbadge.com
"Chloe Ross <orangesnowfox@gmail.com>", # zach@launchbadge.com
2019-12-28 08:36:37 +00:00
"Daniel Akhterov <akhterovd@gmail.com>", # daniel@launchbadge.com
2019-11-20 17:05:21 +00:00
]
2019-06-06 13:02:55 +00:00
2020-01-11 11:30:03 +00:00
[package.metadata.docs.rs]
features = [ "all" ]
2020-01-22 21:10:10 +00:00
rustdoc-args = ["--cfg", "docsrs"]
2020-01-11 11:30:03 +00:00
[features]
default = [ "macros", "runtime-async-std", "migrate" ]
2020-01-14 20:57:55 +00:00
macros = [ "sqlx-macros" ]
migrate = [ "sqlx-macros/migrate", "sqlx-core/migrate" ]
# [deprecated] TLS is not possible to disable due to it being conditional on multiple features
# Hopefully Cargo can handle this in the future
tls = [ ]
2020-01-15 09:17:33 +00:00
# offline building support in `sqlx-macros`
2020-06-07 09:21:58 +00:00
offline = [ "sqlx-macros/offline", "sqlx-core/offline" ]
# intended mainly for CI and docs
2020-05-26 12:00:07 +00:00
all = [ "tls", "all-databases", "all-types" ]
all-databases = [ "mysql", "sqlite", "postgres", "mssql", "any" ]
2020-06-26 16:01:07 +00:00
all-types = [ "bigdecimal", "decimal", "json", "time", "chrono", "ipnetwork", "uuid" ]
2020-01-15 09:17:33 +00:00
# runtime
2020-01-15 09:54:46 +00:00
runtime-async-std = [ "sqlx-core/runtime-async-std", "sqlx-macros/runtime-async-std" ]
runtime-actix = [ "sqlx-core/runtime-actix", "sqlx-macros/runtime-actix" ]
2020-01-15 09:54:46 +00:00
runtime-tokio = [ "sqlx-core/runtime-tokio", "sqlx-macros/runtime-tokio" ]
2019-12-28 01:31:01 +00:00
# database
any = [ "sqlx-core/any" ]
2019-11-28 06:33:40 +00:00
postgres = [ "sqlx-core/postgres", "sqlx-macros/postgres" ]
mysql = [ "sqlx-core/mysql", "sqlx-macros/mysql" ]
2020-03-11 16:21:15 +00:00
sqlite = [ "sqlx-core/sqlite", "sqlx-macros/sqlite" ]
2020-06-07 23:29:46 +00:00
mssql = [ "sqlx-core/mssql", "sqlx-macros/mssql" ]
2019-12-28 01:31:01 +00:00
# types
2020-07-09 09:27:53 +00:00
bigdecimal = [ "sqlx-core/bigdecimal", "sqlx-macros/bigdecimal" ]
decimal = [ "sqlx-core/decimal", "sqlx-macros/decimal" ]
2019-12-28 01:31:01 +00:00
chrono = [ "sqlx-core/chrono", "sqlx-macros/chrono" ]
2020-03-20 02:01:10 +00:00
ipnetwork = [ "sqlx-core/ipnetwork", "sqlx-macros/ipnetwork" ]
2019-11-28 06:33:40 +00:00
uuid = [ "sqlx-core/uuid", "sqlx-macros/uuid" ]
json = [ "sqlx-core/json", "sqlx-macros/json" ]
time = [ "sqlx-core/time", "sqlx-macros/time" ]
2019-06-06 13:02:55 +00:00
[dependencies]
2020-05-31 06:15:52 +00:00
sqlx-core = { version = "0.4.0-pre", path = "sqlx-core", default-features = false }
sqlx-macros = { version = "0.4.0-pre", path = "sqlx-macros", default-features = false, optional = true }
2019-07-26 16:20:09 +00:00
[dev-dependencies]
2020-06-07 23:29:46 +00:00
anyhow = "1.0.31"
time_ = { version = "0.2.16", package = "time" }
futures = "0.3.5"
2020-01-17 02:29:58 +00:00
env_logger = "0.7.1"
2020-06-07 23:29:46 +00:00
async-std = { version = "1.6.0", features = [ "attributes" ] }
tokio = { version = "0.2.21", features = [ "full" ] }
dotenv = "0.15.0"
2020-03-11 20:24:05 +00:00
trybuild = "1.0.24"
sqlx-rt = { path = "./sqlx-rt" }
sqlx-test = { path = "./sqlx-test" }
2020-06-07 23:29:46 +00:00
paste = "0.1.16"
serde = { version = "1.0.111", features = [ "derive" ] }
serde_json = "1.0.53"
#
# Any
#
[[test]]
name = "any"
path = "tests/any/any.rs"
required-features = [ "any" ]
[[test]]
name = "any-pool"
path = "tests/any/pool.rs"
required-features = [ "any" ]
#
# SQLite
#
2020-01-29 02:56:25 +00:00
2020-03-11 18:01:17 +00:00
[[test]]
name = "sqlite"
path = "tests/sqlite/sqlite.rs"
2020-03-11 18:01:17 +00:00
required-features = [ "sqlite" ]
[[test]]
name = "sqlite-types"
path = "tests/sqlite/types.rs"
2020-03-13 09:21:29 +00:00
required-features = [ "sqlite" ]
2020-03-20 09:21:15 +00:00
[[test]]
name = "sqlite-describe"
path = "tests/sqlite/describe.rs"
2020-03-13 09:21:29 +00:00
required-features = [ "sqlite" ]
[[test]]
name = "sqlite-macros"
path = "tests/sqlite/macros.rs"
required-features = [ "sqlite", "macros" ]
#
# MySQL
#
2019-12-28 01:31:01 +00:00
[[test]]
name = "mysql"
path = "tests/mysql/mysql.rs"
2019-12-28 01:31:01 +00:00
required-features = [ "mysql" ]
[[test]]
name = "mysql-types"
path = "tests/mysql/types.rs"
required-features = [ "mysql" ]
[[test]]
name = "mysql-describe"
path = "tests/mysql/describe.rs"
required-features = [ "mysql" ]
[[test]]
name = "mysql-macros"
path = "tests/mysql/macros.rs"
required-features = [ "mysql", "macros" ]
#
# PostgreSQL
#
2019-12-28 01:31:01 +00:00
[[test]]
name = "postgres"
path = "tests/postgres/postgres.rs"
required-features = [ "postgres" ]
[[test]]
name = "postgres-types"
path = "tests/postgres/types.rs"
2019-11-28 06:33:40 +00:00
required-features = [ "postgres" ]
[[test]]
name = "postgres-describe"
path = "tests/postgres/describe.rs"
required-features = [ "postgres" ]
2020-06-06 03:28:21 +00:00
[[test]]
name = "postgres-macros"
path = "tests/postgres/macros.rs"
required-features = [ "postgres", "macros" ]
2020-06-12 22:20:32 +00:00
[[test]]
name = "postgres-derives"
path = "tests/postgres/derives.rs"
required-features = [ "postgres", "macros" ]
#
# Microsoft SQL Server (MSSQL)
#
[[test]]
name = "mssql"
path = "tests/mssql/mssql.rs"
required-features = [ "mssql" ]
[[test]]
name = "mssql-types"
path = "tests/mssql/types.rs"
required-features = [ "mssql" ]
[[test]]
name = "mssql-describe"
path = "tests/mssql/describe.rs"
required-features = [ "mssql" ]
2020-06-07 23:29:46 +00:00
[[test]]
name = "mssql-macros"
path = "tests/mssql/macros.rs"
required-features = [ "mssql", "macros" ]