2019-11-21 23:29:40 +00:00
[ workspace ]
members = [
"." ,
2019-11-22 10:30:16 +00:00
"sqlx-core" ,
2020-05-26 00:39:00 -07:00
"sqlx-rt" ,
2019-11-21 23:29:40 +00:00
"sqlx-macros" ,
2020-03-01 20:07:59 -08:00
"sqlx-test" ,
2020-05-15 20:07:57 -07:00
"sqlx-cli" ,
2020-07-01 02:38:33 -07:00
"sqlx-bench" ,
2020-03-31 14:05:52 +01:00
"examples/mysql/todos" ,
2020-08-24 15:44:55 -04:00
"examples/postgres/json" ,
2020-03-31 00:35:07 +01:00
"examples/postgres/listen" ,
2020-09-25 14:11:08 -04:00
"examples/postgres/todos" ,
2020-11-18 14:25:40 +00:00
"examples/postgres/mockable-todos" ,
2021-08-17 01:33:42 +02:00
"examples/postgres/transaction" ,
2020-03-31 12:35:51 +01:00
"examples/sqlite/todos" ,
2019-11-21 23:29:40 +00:00
]
2019-06-06 06:02:55 -07:00
[ package ]
2019-06-22 20:54:43 -07:00
name = "sqlx"
2022-04-14 14:21:15 -07:00
version = "0.5.12"
2019-06-06 06:02:55 -07:00
license = "MIT OR Apache-2.0"
2019-12-27 17:31:01 -08:00
readme = "README.md"
repository = "https://github.com/launchbadge/sqlx"
documentation = "https://docs.rs/sqlx"
2020-03-18 22:48:46 -07:00
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 06:02:55 -07:00
edition = "2018"
2021-04-15 18:38:50 -07:00
keywords = [ "database" , "async" , "postgres" , "mysql" , "sqlite" ]
categories = [ "database" , "asynchronous" ]
2019-11-20 17:05:21 +00:00
authors = [
2021-04-15 18:38:50 -07: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-21 17:27:15 -07:00
]
2019-06-06 06:02:55 -07:00
2020-01-11 03:30:03 -08:00
[ package . metadata . docs . rs ]
2021-04-15 18:38:50 -07:00
features = [ "all" , "runtime-async-std-native-tls" ]
2020-01-22 13:10:10 -08:00
rustdoc-args = [ "--cfg" , "docsrs" ]
2020-01-11 03:30:03 -08:00
2019-08-06 23:20:50 -07:00
[ features ]
2021-04-15 18:38:50 -07:00
default = [ "macros" , "migrate" ]
macros = [ "sqlx-macros" ]
migrate = [ "sqlx-macros/migrate" , "sqlx-core/migrate" ]
2020-06-01 05:34:52 -07:00
# [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-15 18:38:50 -07:00
tls = [ ]
2020-01-15 01:17:33 -08:00
2020-04-13 23:00:19 -07:00
# offline building support in `sqlx-macros`
2021-04-15 18:38:50 -07:00
offline = [ "sqlx-macros/offline" , "sqlx-core/offline" ]
2020-04-13 23:00:19 -07:00
2020-03-24 02:56:52 -07:00
# intended mainly for CI and docs
2021-04-15 18:38:50 -07:00
all = [ "tls" , "all-databases" , "all-types" ]
all-databases = [ "mysql" , "sqlite" , "postgres" , "mssql" , "any" ]
all-types = [
"bigdecimal" ,
"decimal" ,
"json" ,
"time" ,
"chrono" ,
"ipnetwork" ,
2021-07-20 01:55:53 +02:00
"mac_address" ,
2021-04-15 18:38:50 -07:00
"uuid" ,
"bit-vec" ,
"bstr" ,
"git2" ,
]
2020-03-24 02:56:52 -07:00
2020-10-20 12:29:24 +02:00
# 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-15 18:38:50 -07: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" ,
]
2020-10-20 12:29:24 +02:00
2021-04-15 18:38:50 -07: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 12:21:01 +02:00
2020-10-20 12:29:24 +02:00
# for conditional compilation
_rt-actix = [ ]
_rt-async-std = [ ]
_rt-tokio = [ ]
2019-12-27 17:31:01 -08:00
# database
2021-04-15 18:38:50 -07: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-27 17:31:01 -08:00
# types
2021-04-15 18:38:50 -07: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-20 01:55:53 +02:00
mac_address = [ "sqlx-core/mac_address" , "sqlx-macros/mac_address" ]
2021-04-15 18:38:50 -07: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-08-06 23:20:50 -07:00
2019-06-06 06:02:55 -07:00
[ dependencies ]
2022-04-14 14:21:15 -07:00
sqlx-core = { version = "0.5.12" , path = "sqlx-core" , default-features = false }
sqlx-macros = { version = "0.5.12" , path = "sqlx-macros" , default-features = false , optional = true }
2019-07-26 09:20:09 -07:00
2019-08-28 11:01:55 -07:00
[ dev-dependencies ]
2021-12-29 17:25:49 -08:00
anyhow = "1.0.52"
time_ = { version = "0.2.27" , package = "time" }
futures = "0.3.19"
env_logger = "0.8.4"
async-std = { version = "1.10.0" , features = [ "attributes" ] }
tokio = { version = "1.15.0" , features = [ "full" ] }
2019-12-03 15:31:49 -08:00
dotenv = "0.15.0"
2021-12-29 17:25:49 -08:00
trybuild = "1.0.53"
2020-05-30 14:51:57 -07:00
sqlx-rt = { path = "./sqlx-rt" }
2020-03-01 20:07:59 -08:00
sqlx-test = { path = "./sqlx-test" }
2021-12-29 17:25:49 -08:00
paste = "1.0.6"
serde = { version = "1.0.132" , features = [ "derive" ] }
serde_json = "1.0.73"
url = "2.2.2"
2021-12-29 15:23:02 -08:00
rand = "0.8.4"
rand_xoshiro = "0.6.0"
2021-12-29 17:25:49 -08:00
hex = "0.4.3"
2020-06-27 04:07:40 -07:00
#
# Any
#
[ [ test ] ]
name = "any"
path = "tests/any/any.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "any" ]
2020-06-27 04:07:40 -07:00
2020-07-14 06:07:29 -07:00
[ [ test ] ]
name = "any-pool"
path = "tests/any/pool.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "any" ]
2020-07-14 06:07:29 -07:00
2020-07-23 17:46:27 -04:00
#
# Migrations
#
[ [ test ] ]
name = "migrate-macro"
path = "tests/migrate/macro.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "macros" , "migrate" ]
2020-07-23 17:46:27 -04:00
2020-05-30 14:51:57 -07:00
#
# SQLite
#
2020-01-28 18:56:25 -08:00
2020-03-11 11:01:17 -07:00
[ [ test ] ]
name = "sqlite"
2020-05-30 14:51:57 -07:00
path = "tests/sqlite/sqlite.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "sqlite" ]
2020-03-11 11:01:17 -07:00
2020-03-16 21:05:48 -07:00
[ [ test ] ]
2020-05-30 14:51:57 -07:00
name = "sqlite-types"
path = "tests/sqlite/types.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "sqlite" ]
2020-03-13 02:21:29 -07:00
2020-03-20 10:21:15 +01:00
[ [ test ] ]
2020-05-30 14:51:57 -07:00
name = "sqlite-describe"
path = "tests/sqlite/describe.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "sqlite" ]
2020-03-13 02:21:29 -07:00
2020-06-05 21:02:24 -07:00
[ [ test ] ]
name = "sqlite-macros"
path = "tests/sqlite/macros.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "sqlite" , "macros" ]
2020-06-05 21:02:24 -07:00
2021-03-18 16:12:00 -07:00
[ [ test ] ]
name = "sqlite-derives"
path = "tests/sqlite/derives.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "sqlite" , "macros" ]
2021-03-18 16:12:00 -07:00
2020-05-30 14:51:57 -07:00
#
# MySQL
#
2019-12-27 17:31:01 -08:00
[ [ test ] ]
name = "mysql"
2020-05-30 14:51:57 -07:00
path = "tests/mysql/mysql.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "mysql" ]
2019-12-27 17:31:01 -08:00
2020-03-11 01:40:57 -07:00
[ [ test ] ]
2020-05-30 14:51:57 -07:00
name = "mysql-types"
path = "tests/mysql/types.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "mysql" ]
2020-03-11 01:40:57 -07:00
2020-03-17 19:26:59 -07:00
[ [ test ] ]
2020-05-30 14:51:57 -07:00
name = "mysql-describe"
path = "tests/mysql/describe.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "mysql" ]
2020-03-17 19:26:59 -07:00
2020-06-05 21:02:24 -07:00
[ [ test ] ]
name = "mysql-macros"
path = "tests/mysql/macros.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "mysql" , "macros" ]
2020-06-05 21:02:24 -07:00
2020-05-30 14:51:57 -07:00
#
# PostgreSQL
#
2019-12-27 17:31:01 -08:00
2020-03-01 02:01:00 -08:00
[ [ test ] ]
2020-05-30 14:51:57 -07:00
name = "postgres"
path = "tests/postgres/postgres.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "postgres" ]
2020-03-01 02:01:00 -08:00
2019-11-23 09:02:56 +00:00
[ [ test ] ]
name = "postgres-types"
2020-05-30 14:51:57 -07:00
path = "tests/postgres/types.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "postgres" ]
2019-11-23 09:02:56 +00:00
2020-03-17 19:26:59 -07:00
[ [ test ] ]
2020-05-30 14:51:57 -07:00
name = "postgres-describe"
path = "tests/postgres/describe.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "postgres" ]
2020-06-02 20:47:57 -07:00
2020-06-05 20:28:21 -07:00
[ [ test ] ]
name = "postgres-macros"
path = "tests/postgres/macros.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "postgres" , "macros" ]
2020-06-07 02:35:12 -07:00
2020-06-12 15:20:32 -07:00
[ [ test ] ]
name = "postgres-derives"
path = "tests/postgres/derives.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "postgres" , "macros" ]
2020-06-12 15:20:32 -07:00
2020-06-02 20:47:57 -07:00
#
# Microsoft SQL Server (MSSQL)
#
[ [ test ] ]
name = "mssql"
path = "tests/mssql/mssql.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "mssql" ]
2020-06-06 12:09:46 -07:00
[ [ test ] ]
name = "mssql-types"
path = "tests/mssql/types.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "mssql" ]
2020-06-07 01:59:59 -07:00
[ [ test ] ]
name = "mssql-describe"
path = "tests/mssql/describe.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "mssql" ]
2020-06-07 16:29:46 -07:00
[ [ test ] ]
name = "mssql-macros"
path = "tests/mssql/macros.rs"
2021-04-15 18:38:50 -07:00
required-features = [ "mssql" , "macros" ]