2019-11-21 23:29:40 +00:00
[ workspace ]
members = [
"." ,
2019-11-22 10:30:16 +00:00
"sqlx-core" ,
2020-05-26 07:39:00 +00:00
"sqlx-rt" ,
2019-11-21 23:29:40 +00:00
"sqlx-macros" ,
2020-03-02 04:07:59 +00:00
"sqlx-test" ,
2020-05-16 03:07:57 +00:00
"sqlx-cli" ,
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" ,
2020-03-31 11:35:51 +00:00
"examples/sqlite/todos" ,
2020-03-31 21:35:17 +00:00
"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"
2020-03-19 05:48:46 +00: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 13:02:55 +00:00
edition = "2018"
2020-04-01 03:58:28 +00:00
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
"Zachery Gyurkovitz <zgyurkovitz@gmail.com>" , # zach@launchbadge.com
"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 ]
2020-03-29 22:54:59 +00:00
features = [ "all" ]
2020-01-22 21:10:10 +00:00
rustdoc-args = [ "--cfg" , "docsrs" ]
2020-01-11 11:30:03 +00:00
2019-08-07 06:20:50 +00:00
[ features ]
2020-01-15 09:17:33 +00:00
default = [ "macros" , "runtime-async-std" ]
2020-01-14 20:57:55 +00:00
macros = [ "sqlx-macros" ]
2020-06-01 12:34:52 +00:00
# [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
2020-04-14 06:00:19 +00:00
# offline building support in `sqlx-macros`
offline = [ "sqlx-macros/offline" , "sqlx-core/offline" ]
2020-03-24 09:56:52 +00:00
# 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" ]
all-types = [ "bigdecimal" , "json" , "time" , "chrono" , "ipnetwork" , "uuid" ]
2020-03-24 09:56:52 +00:00
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" ]
2020-06-01 12:34:52 +00:00
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
2019-11-28 06:33:40 +00:00
postgres = [ "sqlx-core/postgres" , "sqlx-macros/postgres" ]
2019-12-18 08:44:10 +00:00
mysql = [ "sqlx-core/mysql" , "sqlx-macros/mysql" ]
2020-03-11 16:21:15 +00:00
sqlite = [ "sqlx-core/sqlite" , "sqlx-macros/sqlite" ]
2019-12-28 01:31:01 +00:00
# types
2020-03-24 09:56:14 +00:00
bigdecimal = [ "sqlx-core/bigdecimal" , "sqlx-macros/bigdecimal" ]
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" ]
2020-03-29 00:28:47 +00:00
json = [ "sqlx-core/json" , "sqlx-macros/json" ]
2020-03-21 08:24:48 +00:00
time = [ "sqlx-core/time" , "sqlx-macros/time" ]
2019-08-07 06:20:50 +00:00
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
2019-08-28 18:01:55 +00:00
[ dev-dependencies ]
2019-12-28 12:02:52 +00:00
anyhow = "1.0.26"
2020-03-21 09:34:21 +00:00
time_ = { version = "0.2.9" , package = "time" }
2020-03-02 08:29:52 +00:00
futures = "0.3.4"
2020-01-17 02:29:58 +00:00
env_logger = "0.7.1"
2020-03-02 08:29:52 +00:00
async-std = { version = "1.5.0" , features = [ "attributes" ] }
tokio = { version = "0.2.13" , features = [ "full" ] }
2019-12-03 23:31:49 +00:00
dotenv = "0.15.0"
2020-03-11 20:24:05 +00:00
trybuild = "1.0.24"
2020-05-30 21:51:57 +00:00
sqlx-rt = { path = "./sqlx-rt" }
2020-03-02 04:07:59 +00:00
sqlx-test = { path = "./sqlx-test" }
2020-03-02 08:29:52 +00:00
paste = "0.1.7"
2020-02-22 11:17:47 +00:00
serde = { version = "1.0" , features = [ "derive" ] }
2020-03-21 08:16:34 +00:00
serde_json = "1.0.48"
2019-08-28 18:01:55 +00:00
2020-05-30 21:51:57 +00:00
#
# SQLite
#
2020-01-29 02:56:25 +00:00
2020-03-11 18:01:17 +00:00
[ [ test ] ]
name = "sqlite"
2020-05-30 21:51:57 +00:00
path = "tests/sqlite/sqlite.rs"
2020-03-11 18:01:17 +00:00
required-features = [ "sqlite" ]
2020-03-17 04:05:48 +00:00
[ [ test ] ]
2020-05-30 21:51:57 +00:00
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 ] ]
2020-05-30 21:51:57 +00:00
name = "sqlite-describe"
path = "tests/sqlite/describe.rs"
2020-03-13 09:21:29 +00:00
required-features = [ "sqlite" ]
2020-05-30 21:51:57 +00:00
#
# MySQL
#
2019-12-28 01:31:01 +00:00
[ [ test ] ]
name = "mysql"
2020-05-30 21:51:57 +00:00
path = "tests/mysql/mysql.rs"
2019-12-28 01:31:01 +00:00
required-features = [ "mysql" ]
2020-03-11 08:40:57 +00:00
[ [ test ] ]
2020-05-30 21:51:57 +00:00
name = "mysql-types"
path = "tests/mysql/types.rs"
2020-03-11 08:40:57 +00:00
required-features = [ "mysql" ]
2020-03-18 02:26:59 +00:00
[ [ test ] ]
2020-05-30 21:51:57 +00:00
name = "mysql-describe"
path = "tests/mysql/describe.rs"
required-features = [ "mysql" ]
2020-03-18 02:26:59 +00:00
2020-05-30 21:51:57 +00:00
#
# PostgreSQL
#
2019-12-28 01:31:01 +00:00
2020-03-01 10:01:00 +00:00
[ [ test ] ]
2020-05-30 21:51:57 +00:00
name = "postgres"
path = "tests/postgres/postgres.rs"
2020-03-01 10:01:00 +00:00
required-features = [ "postgres" ]
2019-11-23 09:02:56 +00:00
[ [ test ] ]
name = "postgres-types"
2020-05-30 21:51:57 +00:00
path = "tests/postgres/types.rs"
2019-11-28 06:33:40 +00:00
required-features = [ "postgres" ]
2019-11-23 09:02:56 +00:00
2020-03-18 02:26:59 +00:00
[ [ test ] ]
2020-05-30 21:51:57 +00:00
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" ]