forked from launchbadge/sqlx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
218 lines (181 loc) · 5.34 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
[workspace]
members = [
".",
"sqlx-core",
"sqlx-rt",
"sqlx-macros",
"sqlx-test",
"sqlx-cli",
"sqlx-bench",
"examples/mysql/todos",
"examples/postgres/listen",
"examples/sqlite/todos",
]
[package]
name = "sqlx"
version = "0.4.0-beta.1"
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]
"Chloe Ross <[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", "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
tls = [ ]
# offline building support in `sqlx-macros`
offline = [ "sqlx-macros/offline", "sqlx-core/offline" ]
# intended mainly for CI and docs
all = [ "tls", "all-databases", "all-types" ]
all-databases = [ "mysql", "sqlite", "postgres", "mssql", "any" ]
all-types = [ "bigdecimal", "decimal", "json", "time", "chrono", "ipnetwork", "uuid", "bit-vec" ]
# runtime
runtime-async-std = [ "sqlx-core/runtime-async-std", "sqlx-macros/runtime-async-std" ]
runtime-actix = [ "sqlx-core/runtime-actix", "sqlx-macros/runtime-actix" ]
runtime-tokio = [ "sqlx-core/runtime-tokio", "sqlx-macros/runtime-tokio" ]
# database
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" ]
# types
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" ]
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"]
[dependencies]
sqlx-core = { version = "=0.4.0-beta.1", path = "sqlx-core", default-features = false }
sqlx-macros = { version = "=0.4.0-beta.1", path = "sqlx-macros", default-features = false, optional = true }
[dev-dependencies]
anyhow = "1.0.31"
time_ = { version = "0.2.16", package = "time" }
futures = "0.3.5"
env_logger = "0.7.1"
async-std = { version = "1.6.0", features = [ "attributes" ] }
tokio = { version = "0.2.21", features = [ "full" ] }
dotenv = "0.15.0"
trybuild = "1.0.24"
sqlx-rt = { path = "./sqlx-rt" }
sqlx-test = { path = "./sqlx-test" }
paste = "0.1.16"
serde = { version = "1.0.111", features = [ "derive" ] }
serde_json = "1.0.53"
url = "2.1.1"
#
# Any
#
[[test]]
name = "any"
path = "tests/any/any.rs"
required-features = [ "any" ]
[[test]]
name = "any-pool"
path = "tests/any/pool.rs"
required-features = [ "any" ]
#
# Migrations
#
[[test]]
name = "migrate-macro"
path = "tests/migrate/macro.rs"
required-features = [ "macros", "migrate" ]
#
# SQLite
#
[[test]]
name = "sqlite"
path = "tests/sqlite/sqlite.rs"
required-features = [ "sqlite" ]
[[test]]
name = "sqlite-types"
path = "tests/sqlite/types.rs"
required-features = [ "sqlite" ]
[[test]]
name = "sqlite-describe"
path = "tests/sqlite/describe.rs"
required-features = [ "sqlite" ]
[[test]]
name = "sqlite-macros"
path = "tests/sqlite/macros.rs"
required-features = [ "sqlite", "macros" ]
#
# MySQL
#
[[test]]
name = "mysql"
path = "tests/mysql/mysql.rs"
required-features = [ "mysql" ]
[[test]]
name = "mysql-types"
path = "tests/mysql/types.rs"
required-features = [ "mysql" ]
[[test]]
name = "mysql-describe"
path = "tests/mysql/describe.rs"
required-features = [ "mysql" ]
[[test]]
name = "mysql-macros"
path = "tests/mysql/macros.rs"
required-features = [ "mysql", "macros" ]
#
# PostgreSQL
#
[[test]]
name = "postgres"
path = "tests/postgres/postgres.rs"
required-features = [ "postgres" ]
[[test]]
name = "postgres-types"
path = "tests/postgres/types.rs"
required-features = [ "postgres" ]
[[test]]
name = "postgres-describe"
path = "tests/postgres/describe.rs"
required-features = [ "postgres" ]
[[test]]
name = "postgres-macros"
path = "tests/postgres/macros.rs"
required-features = [ "postgres", "macros" ]
[[test]]
name = "postgres-derives"
path = "tests/postgres/derives.rs"
required-features = [ "postgres", "macros" ]
#
# Microsoft SQL Server (MSSQL)
#
[[test]]
name = "mssql"
path = "tests/mssql/mssql.rs"
required-features = [ "mssql" ]
[[test]]
name = "mssql-types"
path = "tests/mssql/types.rs"
required-features = [ "mssql" ]
[[test]]
name = "mssql-describe"
path = "tests/mssql/describe.rs"
required-features = [ "mssql" ]
[[test]]
name = "mssql-macros"
path = "tests/mssql/macros.rs"
required-features = [ "mssql", "macros" ]