sqlx/Cargo.toml

284 lines
6.4 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-08-24 19:44:55 +00:00
"examples/postgres/json",
2020-03-30 23:35:07 +00:00
"examples/postgres/listen",
2020-09-25 18:11:08 +00:00
"examples/postgres/todos",
2020-11-18 14:25:40 +00:00
"examples/postgres/mockable-todos",
"examples/postgres/transaction",
"examples/sqlite/todos",
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"
2021-10-01 22:52:52 +00:00
version = "0.5.9"
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"
2021-04-16 01:38:50 +00:00
keywords = ["database", "async", "postgres", "mysql", "sqlite"]
categories = ["database", "asynchronous"]
2019-11-20 17:05:21 +00:00
authors = [
2021-04-16 01:38:50 +00:00
"Ryan Leckey <leckey.ryan@gmail.com>",
"Austin Bonander <austin.bonander@gmail.com>",
"Chloe Ross <orangesnowfox@gmail.com>",
"Daniel Akhterov <akhterovd@gmail.com>",
2021-05-22 00:27:15 +00:00
]
2019-06-06 13:02:55 +00:00
2020-01-11 11:30:03 +00:00
[package.metadata.docs.rs]
2021-04-16 01:38:50 +00:00
features = ["all", "runtime-async-std-native-tls"]
2020-01-22 21:10:10 +00:00
rustdoc-args = ["--cfg", "docsrs"]
2020-01-11 11:30:03 +00:00
[features]
2021-04-16 01:38:50 +00:00
default = ["macros", "migrate"]
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
2021-04-16 01:38:50 +00:00
tls = []
2020-01-15 09:17:33 +00:00
# offline building support in `sqlx-macros`
2021-04-16 01:38:50 +00:00
offline = ["sqlx-macros/offline", "sqlx-core/offline"]
# intended mainly for CI and docs
2021-04-16 01:38:50 +00:00
all = ["tls", "all-databases", "all-types"]
all-databases = ["mysql", "sqlite", "postgres", "mssql", "any"]
all-types = [
"bigdecimal",
"decimal",
"json",
"time",
"chrono",
"ipnetwork",
2021-07-19 23:55:53 +00:00
"mac_address",
2021-04-16 01:38:50 +00:00
"uuid",
"bit-vec",
"bstr",
"git2",
]
# previous runtimes, available as features for error messages better than just
# "feature doesn't exist"
runtime-actix = []
runtime-async-std = []
runtime-tokio = []
# actual runtimes
2021-04-16 01:38:50 +00:00
runtime-actix-native-tls = [
"sqlx-core/runtime-actix-native-tls",
"sqlx-macros/runtime-actix-native-tls",
"_rt-actix",
]
runtime-async-std-native-tls = [
"sqlx-core/runtime-async-std-native-tls",
"sqlx-macros/runtime-async-std-native-tls",
"_rt-async-std",
]
runtime-tokio-native-tls = [
"sqlx-core/runtime-tokio-native-tls",
"sqlx-macros/runtime-tokio-native-tls",
"_rt-tokio",
]
2021-04-16 01:38:50 +00:00
runtime-actix-rustls = [
"sqlx-core/runtime-actix-rustls",
"sqlx-macros/runtime-actix-rustls",
"_rt-actix",
]
runtime-async-std-rustls = [
"sqlx-core/runtime-async-std-rustls",
"sqlx-macros/runtime-async-std-rustls",
"_rt-async-std",
]
runtime-tokio-rustls = [
"sqlx-core/runtime-tokio-rustls",
"sqlx-macros/runtime-tokio-rustls",
"_rt-tokio",
]
2020-10-20 10:21:01 +00:00
# for conditional compilation
_rt-actix = []
_rt-async-std = []
_rt-tokio = []
2019-12-28 01:31:01 +00:00
# database
2021-04-16 01:38:50 +00:00
any = ["sqlx-core/any"]
postgres = ["sqlx-core/postgres", "sqlx-macros/postgres"]
mysql = ["sqlx-core/mysql", "sqlx-macros/mysql"]
sqlite = ["sqlx-core/sqlite", "sqlx-macros/sqlite"]
mssql = ["sqlx-core/mssql", "sqlx-macros/mssql"]
2019-12-28 01:31:01 +00:00
# types
2021-04-16 01:38:50 +00:00
bigdecimal = ["sqlx-core/bigdecimal", "sqlx-macros/bigdecimal"]
decimal = ["sqlx-core/decimal", "sqlx-macros/decimal"]
chrono = ["sqlx-core/chrono", "sqlx-macros/chrono"]
ipnetwork = ["sqlx-core/ipnetwork", "sqlx-macros/ipnetwork"]
2021-07-19 23:55:53 +00:00
mac_address = ["sqlx-core/mac_address", "sqlx-macros/mac_address"]
2021-04-16 01:38:50 +00:00
uuid = ["sqlx-core/uuid", "sqlx-macros/uuid"]
json = ["sqlx-core/json", "sqlx-macros/json"]
time = ["sqlx-core/time", "sqlx-macros/time"]
bit-vec = ["sqlx-core/bit-vec", "sqlx-macros/bit-vec"]
bstr = ["sqlx-core/bstr"]
git2 = ["sqlx-core/git2"]
2019-06-06 13:02:55 +00:00
[dependencies]
2021-10-01 22:52:52 +00:00
sqlx-core = { version = "0.5.9", path = "sqlx-core", default-features = false }
sqlx-macros = { version = "0.5.9", 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"
2021-04-09 07:31:07 +00:00
env_logger = "0.8.3"
2021-04-16 01:38:50 +00:00
async-std = { version = "1.8.0", features = ["attributes"] }
tokio = { version = "1.0.1", 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-09-30 18:34:14 +00:00
paste = "1.0.1"
2021-04-16 01:38:50 +00:00
serde = { version = "1.0.111", features = ["derive"] }
2020-06-07 23:29:46 +00:00
serde_json = "1.0.53"
url = "2.1.1"
rand = "0.8.4"
rand_xoshiro = "0.6.0"
hex = "0.4"
#
# Any
#
[[test]]
name = "any"
path = "tests/any/any.rs"
2021-04-16 01:38:50 +00:00
required-features = ["any"]
[[test]]
name = "any-pool"
path = "tests/any/pool.rs"
2021-04-16 01:38:50 +00:00
required-features = ["any"]
2020-07-23 21:46:27 +00:00
#
# Migrations
#
[[test]]
name = "migrate-macro"
path = "tests/migrate/macro.rs"
2021-04-16 01:38:50 +00:00
required-features = ["macros", "migrate"]
2020-07-23 21:46:27 +00:00
#
# 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"
2021-04-16 01:38:50 +00:00
required-features = ["sqlite"]
2020-03-11 18:01:17 +00:00
[[test]]
name = "sqlite-types"
path = "tests/sqlite/types.rs"
2021-04-16 01:38:50 +00:00
required-features = ["sqlite"]
2020-03-13 09:21:29 +00:00
2020-03-20 09:21:15 +00:00
[[test]]
name = "sqlite-describe"
path = "tests/sqlite/describe.rs"
2021-04-16 01:38:50 +00:00
required-features = ["sqlite"]
2020-03-13 09:21:29 +00:00
[[test]]
name = "sqlite-macros"
path = "tests/sqlite/macros.rs"
2021-04-16 01:38:50 +00:00
required-features = ["sqlite", "macros"]
[[test]]
name = "sqlite-derives"
path = "tests/sqlite/derives.rs"
2021-04-16 01:38:50 +00:00
required-features = ["sqlite", "macros"]
#
# MySQL
#
2019-12-28 01:31:01 +00:00
[[test]]
name = "mysql"
path = "tests/mysql/mysql.rs"
2021-04-16 01:38:50 +00:00
required-features = ["mysql"]
2019-12-28 01:31:01 +00:00
[[test]]
name = "mysql-types"
path = "tests/mysql/types.rs"
2021-04-16 01:38:50 +00:00
required-features = ["mysql"]
[[test]]
name = "mysql-describe"
path = "tests/mysql/describe.rs"
2021-04-16 01:38:50 +00:00
required-features = ["mysql"]
[[test]]
name = "mysql-macros"
path = "tests/mysql/macros.rs"
2021-04-16 01:38:50 +00:00
required-features = ["mysql", "macros"]
#
# PostgreSQL
#
2019-12-28 01:31:01 +00:00
[[test]]
name = "postgres"
path = "tests/postgres/postgres.rs"
2021-04-16 01:38:50 +00:00
required-features = ["postgres"]
[[test]]
name = "postgres-types"
path = "tests/postgres/types.rs"
2021-04-16 01:38:50 +00:00
required-features = ["postgres"]
[[test]]
name = "postgres-describe"
path = "tests/postgres/describe.rs"
2021-04-16 01:38:50 +00:00
required-features = ["postgres"]
2020-06-06 03:28:21 +00:00
[[test]]
name = "postgres-macros"
path = "tests/postgres/macros.rs"
2021-04-16 01:38:50 +00:00
required-features = ["postgres", "macros"]
2020-06-12 22:20:32 +00:00
[[test]]
name = "postgres-derives"
path = "tests/postgres/derives.rs"
2021-04-16 01:38:50 +00:00
required-features = ["postgres", "macros"]
2020-06-12 22:20:32 +00:00
#
# Microsoft SQL Server (MSSQL)
#
[[test]]
name = "mssql"
path = "tests/mssql/mssql.rs"
2021-04-16 01:38:50 +00:00
required-features = ["mssql"]
[[test]]
name = "mssql-types"
path = "tests/mssql/types.rs"
2021-04-16 01:38:50 +00:00
required-features = ["mssql"]
[[test]]
name = "mssql-describe"
path = "tests/mssql/describe.rs"
2021-04-16 01:38:50 +00:00
required-features = ["mssql"]
2020-06-07 23:29:46 +00:00
[[test]]
name = "mssql-macros"
path = "tests/mssql/macros.rs"
2021-04-16 01:38:50 +00:00
required-features = ["mssql", "macros"]