sqlx/Cargo.toml

65 lines
1.4 KiB
TOML
Raw Normal View History

2019-11-21 23:29:40 +00:00
[workspace]
members = [
".",
"sqlx-core",
2019-11-21 23:29:40 +00:00
"sqlx-macros",
2019-12-28 01:31:01 +00:00
"examples/realworld-postgres"
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"
version = "0.1.1-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"
2019-09-11 06:31:12 +00:00
description = "The Rust SQL Toolkit."
2019-06-06 13:02:55 +00:00
edition = "2018"
2019-11-20 17:05:21 +00:00
authors = [
"Ryan Leckey <leckey.ryan@gmail.com>",
"Austin Bonander <austin.bonander@gmail.com>"
2019-11-20 17:05:21 +00:00
]
2019-06-06 13:02:55 +00:00
[features]
2019-11-28 06:33:40 +00:00
default = [ "macros" ]
2019-12-28 01:31:01 +00:00
macros = [ "sqlx-macros", "proc-macro-hack" ]
# database
2019-11-28 06:33:40 +00:00
postgres = [ "sqlx-core/postgres", "sqlx-macros/postgres" ]
mysql = [ "sqlx-core/mysql", "sqlx-macros/mysql" ]
2019-12-28 01:31:01 +00:00
# types
chrono = [ "sqlx-core/chrono", "sqlx-macros/chrono" ]
2019-11-28 06:33:40 +00:00
uuid = [ "sqlx-core/uuid", "sqlx-macros/uuid" ]
2019-06-06 13:02:55 +00:00
[dependencies]
2019-11-22 11:52:03 +00:00
sqlx-core = { version = "0.1.0-pre", path = "sqlx-core" }
sqlx-macros = { version = "0.1.0-pre", path = "sqlx-macros", optional = true }
proc-macro-hack = { version = "0.5.11", optional = true }
2019-07-26 16:20:09 +00:00
[dev-dependencies]
2019-12-28 01:31:01 +00:00
anyhow = "1.0.25"
futures = "0.3.1"
async-std = { version = "1.2.0", features = [ "attributes" ] }
dotenv = "0.15.0"
[[test]]
2019-11-28 06:33:40 +00:00
name = "macros"
required-features = [ "postgres", "uuid", "macros" ]
2019-11-21 18:18:42 +00:00
2019-12-28 01:31:01 +00:00
[[test]]
name = "mysql"
required-features = [ "mysql" ]
[[test]]
name = "postgres"
required-features = [ "postgres" ]
[[test]]
name = "postgres-types"
2019-11-28 06:33:40 +00:00
required-features = [ "postgres" ]
[[test]]
name = "mysql-types"
required-features = [ "mysql" ]