forked from launchbadge/sqlx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
140 lines (116 loc) · 3.67 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[workspace]
members = [
".",
"sqlx-core",
"sqlx-macros",
"sqlx-test",
"cargo-sqlx",
"examples/mysql/todos",
"examples/postgres/listen",
"examples/postgres/realworld",
"examples/postgres/todos",
"examples/sqlite/todos",
]
[package]
name = "sqlx"
version = "0.3.3"
license = "MIT OR Apache-2.0"
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."
edition = "2018"
keywords = [ "database", "async", "postgres", "mysql", "sqlite" ]
categories = [ "database", "asynchronous" ]
authors = [
"Ryan Leckey <[email protected]>", # [email protected]
"Austin Bonander <[email protected]>", # [email protected]
"Zachery Gyurkovitz <[email protected]>", # [email protected]
"Daniel Akhterov <[email protected]>", # [email protected]
]
[package.metadata.docs.rs]
features = [ "all" ]
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = [ "macros", "runtime-async-std" ]
macros = [ "sqlx-macros" ]
tls = [ "sqlx-core/tls" ]
# intended mainly for CI and docs
all = [ "tls", "all-database", "all-type" ]
all-database = [ "mysql", "sqlite", "postgres" ]
all-type = [ "bigdecimal", "json", "time", "chrono", "ipnetwork", "uuid" ]
# runtime
runtime-async-std = [ "sqlx-core/runtime-async-std", "sqlx-macros/runtime-async-std" ]
runtime-tokio = [ "sqlx-core/runtime-tokio", "sqlx-macros/runtime-tokio" ]
# database
postgres = [ "sqlx-core/postgres", "sqlx-macros/postgres" ]
mysql = [ "sqlx-core/mysql", "sqlx-macros/mysql" ]
sqlite = [ "sqlx-core/sqlite", "sqlx-macros/sqlite" ]
# types
bigdecimal = ["sqlx-core/bigdecimal", "sqlx-macros/bigdecimal"]
chrono = [ "sqlx-core/chrono", "sqlx-macros/chrono" ]
ipnetwork = [ "sqlx-core/ipnetwork", "sqlx-macros/ipnetwork" ]
uuid = [ "sqlx-core/uuid", "sqlx-macros/uuid" ]
json = [ "sqlx-core/json", "sqlx-macros/json" ]
time = [ "sqlx-core/time", "sqlx-macros/time" ]
[dependencies]
sqlx-core = { version = "0.3.3", path = "sqlx-core", default-features = false }
sqlx-macros = { version = "0.3.3", path = "sqlx-macros", default-features = false, optional = true }
[dev-dependencies]
anyhow = "1.0.26"
time_ = { version = "0.2.9", package = "time" }
futures = "0.3.4"
env_logger = "0.7.1"
async-std = { version = "1.5.0", features = [ "attributes" ] }
tokio = { version = "0.2.13", features = [ "full" ] }
dotenv = "0.15.0"
trybuild = "1.0.24"
sqlx-test = { path = "./sqlx-test" }
paste = "0.1.7"
serde = { version = "1.0", features = [ "derive" ] }
serde_json = "1.0.48"
[[test]]
name = "postgres-macros"
required-features = [ "postgres", "macros" ]
[[test]]
name = "mysql-macros"
required-features = [ "mysql", "macros" ]
[[test]]
name = "sqlite"
required-features = [ "sqlite" ]
[[test]]
name = "sqlite-macros"
required-features = [ "sqlite", "macros" ]
[[test]]
name = "sqlite-raw"
required-features = [ "sqlite" ]
[[test]]
name = "sqlite-derives"
required-features = [ "sqlite", "macros" ]
[[test]]
name = "sqlite-types"
required-features = [ "sqlite" ]
[[test]]
name = "mysql"
required-features = [ "mysql" ]
[[test]]
name = "mysql-raw"
required-features = [ "mysql" ]
[[test]]
name = "mysql-derives"
required-features = [ "mysql", "macros" ]
[[test]]
name = "postgres"
required-features = [ "postgres" ]
[[test]]
name = "postgres-raw"
required-features = [ "postgres" ]
[[test]]
name = "postgres-types"
required-features = [ "postgres" ]
[[test]]
name = "postgres-derives"
required-features = [ "postgres", "macros" ]
[[test]]
name = "mysql-types"
required-features = [ "mysql" ]