| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
name = "sqlx" |
| 15 |
version = "0.8.3" |
| 16 |
authors = [ |
| 17 |
"Ryan Leckey <[email protected]>", |
| 18 |
"Austin Bonander <[email protected]>", |
| 19 |
"Chloe Ross <[email protected]>", |
| 20 |
"Daniel Akhterov <[email protected]>", |
| 21 |
] |
| 22 |
description = "🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite." |
| 23 |
documentation = "https://docs.rs/sqlx" |
| 24 |
readme = "README.md" |
| 25 |
license = "MIT OR Apache-2.0" |
| 26 |
repository = "https://github.com/launchbadge/sqlx" |
| 27 |
|
| 28 |
[package.metadata.docs.rs] |
| 29 |
features = [ |
| 30 |
"all-databases", |
| 31 |
"_unstable-all-types", |
| 32 |
] |
| 33 |
rustdoc-args = [ |
| 34 |
"--cfg", |
| 35 |
"docsrs", |
| 36 |
] |
| 37 |
|
| 38 |
# requires sqlx_test |
| 39 |
#[[test]] |
| 40 |
#name = "any" |
| 41 |
#path = "tests/any/any.rs" |
| 42 |
#required-features = ["any"] |
| 43 |
|
| 44 |
# requires sqlx_test |
| 45 |
#[[test]] |
| 46 |
#name = "any-pool" |
| 47 |
#path = "tests/any/pool.rs" |
| 48 |
#required-features = ["any"] |
| 49 |
|
| 50 |
#[[test]] |
| 51 |
#name = "migrate-macro" |
| 52 |
#path = "tests/migrate/macro.rs" |
| 53 |
#required-features = [ |
| 54 |
# "macros", |
| 55 |
# "migrate", |
| 56 |
#] |
| 57 |
|
| 58 |
# requires sqlx_test |
| 59 |
#[[test]] |
| 60 |
#name = "sqlite" |
| 61 |
#path = "tests/sqlite/sqlite.rs" |
| 62 |
#required-features = ["sqlite"] |
| 63 |
|
| 64 |
# requires sqlx_test |
| 65 |
#[[test]] |
| 66 |
#name = "sqlite-any" |
| 67 |
#path = "tests/sqlite/any.rs" |
| 68 |
#required-features = ["sqlite"] |
| 69 |
|
| 70 |
# requires sqlx_test |
| 71 |
#[[test]] |
| 72 |
#name = "sqlite-types" |
| 73 |
#path = "tests/sqlite/types.rs" |
| 74 |
#required-features = ["sqlite"] |
| 75 |
|
| 76 |
# requires sqlx_test |
| 77 |
#[[test]] |
| 78 |
#name = "sqlite-describe" |
| 79 |
#path = "tests/sqlite/describe.rs" |
| 80 |
#required-features = ["sqlite"] |
| 81 |
|
| 82 |
# requires sqlx_test |
| 83 |
#[[test]] |
| 84 |
#name = "sqlite-macros" |
| 85 |
#path = "tests/sqlite/macros.rs" |
| 86 |
#required-features = [ |
| 87 |
# "sqlite", |
| 88 |
# "macros", |
| 89 |
#] |
| 90 |
|
| 91 |
[[test]] |
| 92 |
name = "sqlite-unbundled-macros" |
| 93 |
path = "tests/sqlite/macros.rs" |
| 94 |
required-features = [ |
| 95 |
"sqlite-unbundled", |
| 96 |
"macros", |
| 97 |
] |
| 98 |
|
| 99 |
# requires sqlx_test |
| 100 |
#[[test]] |
| 101 |
#name = "sqlite-derives" |
| 102 |
#path = "tests/sqlite/derives.rs" |
| 103 |
#required-features = [ |
| 104 |
# "sqlite", |
| 105 |
# "macros", |
| 106 |
#] |
| 107 |
|
| 108 |
# requires sqlx_test |
| 109 |
#[[test]] |
| 110 |
#name = "sqlite-error" |
| 111 |
#path = "tests/sqlite/error.rs" |
| 112 |
#required-features = ["sqlite"] |
| 113 |
|
| 114 |
[[test]] |
| 115 |
name = "sqlite-sqlcipher" |
| 116 |
path = "tests/sqlite/sqlcipher.rs" |
| 117 |
required-features = ["sqlite"] |
| 118 |
|
| 119 |
#[[test]] |
| 120 |
#name = "sqlite-test-attr" |
| 121 |
#path = "tests/sqlite/test-attr.rs" |
| 122 |
#required-features = [ |
| 123 |
# "sqlite", |
| 124 |
# "macros", |
| 125 |
# "migrate", |
| 126 |
#] |
| 127 |
|
| 128 |
#[[test]] |
| 129 |
#name = "sqlite-migrate" |
| 130 |
#path = "tests/sqlite/migrate.rs" |
| 131 |
#required-features = [ |
| 132 |
# "sqlite", |
| 133 |
# "macros", |
| 134 |
# "migrate", |
| 135 |
#] |
| 136 |
|
| 137 |
[[test]] |
| 138 |
name = "sqlite-rustsec" |
| 139 |
path = "tests/sqlite/rustsec.rs" |
| 140 |
required-features = ["sqlite", "macros"] |
| 141 |
|
| 142 |
[[test]] |
| 143 |
name = "mysql" |
| 144 |
path = "tests/mysql/mysql.rs" |
| 145 |
required-features = ["mysql"] |
| 146 |
|
| 147 |
[[test]] |
| 148 |
name = "mysql-types" |
| 149 |
path = "tests/mysql/types.rs" |
| 150 |
required-features = ["mysql"] |
| 151 |
|
| 152 |
[[test]] |
| 153 |
name = "mysql-describe" |
| 154 |
path = "tests/mysql/describe.rs" |
| 155 |
required-features = ["mysql"] |
| 156 |
|
| 157 |
[[test]] |
| 158 |
name = "mysql-derives" |
| 159 |
path = "tests/mysql/derives.rs" |
| 160 |
required-features = [ |
| 161 |
"mysql", |
| 162 |
"derive", |
| 163 |
] |
| 164 |
|
| 165 |
[[test]] |
| 166 |
name = "mysql-macros" |
| 167 |
path = "tests/mysql/macros.rs" |
| 168 |
required-features = [ |
| 169 |
"mysql", |
| 170 |
"macros", |
| 171 |
] |
| 172 |
|
| 173 |
[[test]] |
| 174 |
name = "mysql-error" |
| 175 |
path = "tests/mysql/error.rs" |
| 176 |
required-features = ["mysql"] |
| 177 |
|
| 178 |
#[[test]] |
| 179 |
#name = "mysql-test-attr" |
| 180 |
#path = "tests/mysql/test-attr.rs" |
| 181 |
#required-features = [ |
| 182 |
# "mysql", |
| 183 |
# "macros", |
| 184 |
# "migrate", |
| 185 |
#] |
| 186 |
|
| 187 |
#[[test]] |
| 188 |
#name = "mysql-migrate" |
| 189 |
#path = "tests/mysql/migrate.rs" |
| 190 |
#required-features = [ |
| 191 |
# "mysql", |
| 192 |
# "macros", |
| 193 |
# "migrate", |
| 194 |
#] |
| 195 |
|
| 196 |
[[test]] |
| 197 |
name = "mysql-rustsec" |
| 198 |
path = "tests/mysql/rustsec.rs" |
| 199 |
required-features = ["mysql"] |
| 200 |
|
| 201 |
# requires sqlx_test |
| 202 |
#[[test]] |
| 203 |
#name = "postgres" |
| 204 |
#path = "tests/postgres/postgres.rs" |
| 205 |
#required-features = ["postgres"] |
| 206 |
|
| 207 |
# requires sqlx_test |
| 208 |
#[[test]] |
| 209 |
#name = "postgres-types" |
| 210 |
#path = "tests/postgres/types.rs" |
| 211 |
#required-features = ["postgres"] |
| 212 |
|
| 213 |
# requires sqlx_test |
| 214 |
#[[test]] |
| 215 |
#name = "postgres-describe" |
| 216 |
#path = "tests/postgres/describe.rs" |
| 217 |
#required-features = ["postgres"] |
| 218 |
|
| 219 |
# requires sqlx_test |
| 220 |
# [[test]] |
| 221 |
# name = "postgres-macros" |
| 222 |
# path = "tests/postgres/macros.rs" |
| 223 |
# required-features = [ |
| 224 |
# "postgres", |
| 225 |
# "macros", |
| 226 |
#] |
| 227 |
|
| 228 |
# requires sqlx_test |
| 229 |
#[[test]] |
| 230 |
#name = "postgres-derives" |
| 231 |
#path = "tests/postgres/derives.rs" |
| 232 |
#required-features = [ |
| 233 |
# "postgres", |
| 234 |
# "macros", |
| 235 |
#] |
| 236 |
|
| 237 |
# requires sqlx_test |
| 238 |
#[[test]] |
| 239 |
#name = "postgres-error" |
| 240 |
#path = "tests/postgres/error.rs" |
| 241 |
#required-features = ["postgres"] |
| 242 |
|
| 243 |
#[[test]] |
| 244 |
#name = "postgres-test-attr" |
| 245 |
#path = "tests/postgres/test-attr.rs" |
| 246 |
#required-features = [ |
| 247 |
# "postgres", |
| 248 |
# "macros", |
| 249 |
# "migrate", |
| 250 |
#] |
| 251 |
|
| 252 |
#[[test]] |
| 253 |
#name = "postgres-migrate" |
| 254 |
#path = "tests/postgres/migrate.rs" |
| 255 |
#required-features = [ |
| 256 |
# "postgres", |
| 257 |
# "macros", |
| 258 |
# "migrate", |
| 259 |
#] |
| 260 |
|
| 261 |
#[[test]] |
| 262 |
#[[test]] |
| 263 |
#name = "postgres-query-builder" |
| 264 |
#path = "tests/postgres/query_builder.rs" |
| 265 |
#required-features = ["postgres"] |
| 266 |
|
| 267 |
# requires database |
| 268 |
#[[test]] |
| 269 |
#name = "postgres-rustsec" |
| 270 |
#path = "tests/postgres/rustsec.rs" |
| 271 |
#required-features = [ |
| 272 |
# "postgres", |
| 273 |
# "macros", |
| 274 |
# "migrate", |
| 275 |
#] |
| 276 |
|
| 277 |
# requires sqlx_test |
| 278 |
#[[bench]] |
| 279 |
#name = "sqlite-describe" |
| 280 |
#path = "benches/sqlite/describe.rs" |
| 281 |
#harness = false |
| 282 |
#required-features = ["sqlite"] |
| 283 |
|
| 284 |
[dependencies.sqlx-core] |
| 285 |
version = "=0.8.3" |
| 286 |
features = [ |
| 287 |
"offline", |
| 288 |
"migrate", |
| 289 |
] |
| 290 |
|
| 291 |
[dependencies.sqlx-macros] |
| 292 |
version = "=0.8.3" |
| 293 |
optional = true |
| 294 |
|
| 295 |
[dependencies.sqlx-mysql] |
| 296 |
version = "=0.8.3" |
| 297 |
optional = true |
| 298 |
|
| 299 |
[dependencies.sqlx-postgres] |
| 300 |
version = "=0.8.3" |
| 301 |
optional = true |
| 302 |
|
| 303 |
[dependencies.sqlx-sqlite] |
| 304 |
version = "=0.8.3" |
| 305 |
optional = true |
| 306 |
|
| 307 |
[dev-dependencies.anyhow] |
| 308 |
version = "1.0.52" |
| 309 |
|
| 310 |
[dev-dependencies.async-std] |
| 311 |
version = "1.12" |
| 312 |
features = ["attributes"] |
| 313 |
|
| 314 |
[dev-dependencies.criterion] |
| 315 |
version = "0.5.1" |
| 316 |
features = ["async_tokio"] |
| 317 |
|
| 318 |
[dev-dependencies.dotenvy] |
| 319 |
version = "0.15.0" |
| 320 |
|
| 321 |
[dev-dependencies.env_logger] |
| 322 |
version = ">=0.10" |
| 323 |
|
| 324 |
[dev-dependencies.futures] |
| 325 |
version = "0.3.19" |
| 326 |
|
| 327 |
[dev-dependencies.hex] |
| 328 |
version = "0.4.3" |
| 329 |
|
| 330 |
[dev-dependencies.paste] |
| 331 |
version = "1.0.6" |
| 332 |
|
| 333 |
[dev-dependencies.rand] |
| 334 |
version = "0.8.4" |
| 335 |
|
| 336 |
[dev-dependencies.rand_xoshiro] |
| 337 |
version = "0.6.0" |
| 338 |
|
| 339 |
[dev-dependencies.serde] |
| 340 |
version = "1.0.132" |
| 341 |
features = ["derive"] |
| 342 |
|
| 343 |
[dev-dependencies.serde_json] |
| 344 |
version = "1.0.73" |
| 345 |
|
| 346 |
[dev-dependencies.tempfile] |
| 347 |
version = "3.10.1" |
| 348 |
|
| 349 |
[dev-dependencies.time_] |
| 350 |
version = "0.3.2" |
| 351 |
package = "time" |
| 352 |
|
| 353 |
[dev-dependencies.tokio] |
| 354 |
version = "1.15.0" |
| 355 |
features = ["full"] |
| 356 |
|
| 357 |
[dev-dependencies.trybuild] |
| 358 |
version = "1.0.53" |
| 359 |
|
| 360 |
[dev-dependencies.url] |
| 361 |
version = "2.2.2" |
| 362 |
|
| 363 |
[features] |
| 364 |
_rt-async-std = [] |
| 365 |
_rt-tokio = [] |
| 366 |
_sqlite = [] |
| 367 |
_unstable-all-types = [ |
| 368 |
"bigdecimal", |
| 369 |
"rust_decimal", |
| 370 |
"json", |
| 371 |
"time", |
| 372 |
"chrono", |
| 373 |
"ipnetwork", |
| 374 |
"mac_address", |
| 375 |
"uuid", |
| 376 |
"bit-vec", |
| 377 |
] |
| 378 |
all-databases = [ |
| 379 |
"mysql", |
| 380 |
"sqlite", |
| 381 |
"postgres", |
| 382 |
"any", |
| 383 |
] |
| 384 |
any = [ |
| 385 |
"sqlx-core/any", |
| 386 |
"sqlx-mysql?/any", |
| 387 |
"sqlx-postgres?/any", |
| 388 |
"sqlx-sqlite?/any", |
| 389 |
] |
| 390 |
bigdecimal = [ |
| 391 |
"sqlx-core/bigdecimal", |
| 392 |
"sqlx-macros?/bigdecimal", |
| 393 |
"sqlx-mysql?/bigdecimal", |
| 394 |
"sqlx-postgres?/bigdecimal", |
| 395 |
] |
| 396 |
bit-vec = [ |
| 397 |
"sqlx-core/bit-vec", |
| 398 |
"sqlx-macros?/bit-vec", |
| 399 |
"sqlx-postgres?/bit-vec", |
| 400 |
] |
| 401 |
chrono = [ |
| 402 |
"sqlx-core/chrono", |
| 403 |
"sqlx-macros?/chrono", |
| 404 |
"sqlx-mysql?/chrono", |
| 405 |
"sqlx-postgres?/chrono", |
| 406 |
"sqlx-sqlite?/chrono", |
| 407 |
] |
| 408 |
default = [ |
| 409 |
"any", |
| 410 |
"macros", |
| 411 |
"migrate", |
| 412 |
"json", |
| 413 |
] |
| 414 |
derive = ["sqlx-macros/derive"] |
| 415 |
ipnetwork = [ |
| 416 |
"sqlx-core/ipnetwork", |
| 417 |
"sqlx-macros?/ipnetwork", |
| 418 |
"sqlx-postgres?/ipnetwork", |
| 419 |
] |
| 420 |
json = [ |
| 421 |
"sqlx-macros?/json", |
| 422 |
"sqlx-mysql?/json", |
| 423 |
"sqlx-postgres?/json", |
| 424 |
"sqlx-sqlite?/json", |
| 425 |
] |
| 426 |
mac_address = [ |
| 427 |
"sqlx-core/mac_address", |
| 428 |
"sqlx-macros?/mac_address", |
| 429 |
"sqlx-postgres?/mac_address", |
| 430 |
] |
| 431 |
macros = [ |
| 432 |
"derive", |
| 433 |
"sqlx-macros/macros", |
| 434 |
] |
| 435 |
migrate = [ |
| 436 |
"sqlx-core/migrate", |
| 437 |
"sqlx-macros?/migrate", |
| 438 |
"sqlx-mysql?/migrate", |
| 439 |
"sqlx-postgres?/migrate", |
| 440 |
"sqlx-sqlite?/migrate", |
| 441 |
] |
| 442 |
mysql = [ |
| 443 |
"sqlx-mysql", |
| 444 |
"sqlx-macros?/mysql", |
| 445 |
] |
| 446 |
postgres = [ |
| 447 |
"sqlx-postgres", |
| 448 |
"sqlx-macros?/postgres", |
| 449 |
] |
| 450 |
regexp = ["sqlx-sqlite?/regexp"] |
| 451 |
runtime-async-std = [ |
| 452 |
"_rt-async-std", |
| 453 |
"sqlx-core/_rt-async-std", |
| 454 |
"sqlx-macros?/_rt-async-std", |
| 455 |
] |
| 456 |
runtime-async-std-native-tls = [ |
| 457 |
"runtime-async-std", |
| 458 |
"tls-native-tls", |
| 459 |
] |
| 460 |
runtime-async-std-rustls = [ |
| 461 |
"runtime-async-std", |
| 462 |
"tls-rustls-ring", |
| 463 |
] |
| 464 |
runtime-tokio = [ |
| 465 |
"_rt-tokio", |
| 466 |
"sqlx-core/_rt-tokio", |
| 467 |
"sqlx-macros?/_rt-tokio", |
| 468 |
] |
| 469 |
runtime-tokio-native-tls = [ |
| 470 |
"runtime-tokio", |
| 471 |
"tls-native-tls", |
| 472 |
] |
| 473 |
runtime-tokio-rustls = [ |
| 474 |
"runtime-tokio", |
| 475 |
"tls-rustls-ring", |
| 476 |
] |
| 477 |
rust_decimal = [ |
| 478 |
"sqlx-core/rust_decimal", |
| 479 |
"sqlx-macros?/rust_decimal", |
| 480 |
"sqlx-mysql?/rust_decimal", |
| 481 |
"sqlx-postgres?/rust_decimal", |
| 482 |
] |
| 483 |
sqlite = [ |
| 484 |
"_sqlite", |
| 485 |
"sqlx-sqlite/unbundled", |
| 486 |
"sqlx-macros?/sqlite", |
| 487 |
] |
| 488 |
sqlite-unbundled = [ |
| 489 |
"_sqlite", |
| 490 |
"sqlx-sqlite/unbundled", |
| 491 |
"sqlx-macros?/sqlite-unbundled", |
| 492 |
] |
| 493 |
time = [ |
| 494 |
"sqlx-core/time", |
| 495 |
"sqlx-macros?/time", |
| 496 |
"sqlx-mysql?/time", |
| 497 |
"sqlx-postgres?/time", |
| 498 |
"sqlx-sqlite?/time", |
| 499 |
] |
| 500 |
tls-native-tls = [ |
| 501 |
"sqlx-core/_tls-native-tls", |
| 502 |
"sqlx-macros?/_tls-native-tls", |
| 503 |
] |
| 504 |
tls-none = [] |
| 505 |
tls-rustls = ["tls-rustls-ring"] |
| 506 |
tls-rustls-ring = ["tls-rustls-ring-native-roots"] |
| 507 |
tls-rustls-ring-native-roots = [ |
| 508 |
"sqlx-core/_tls-rustls-ring-native-roots", |
| 509 |
"sqlx-macros?/_tls-rustls-ring-native-roots", |
| 510 |
] |
| 511 |
uuid = [ |
| 512 |
"sqlx-core/uuid", |
| 513 |
"sqlx-macros?/uuid", |
| 514 |
"sqlx-mysql?/uuid", |
| 515 |
"sqlx-postgres?/uuid", |
| 516 |
"sqlx-sqlite?/uuid", |
| 517 |
] |
| 518 |
|
| 519 |
[target."cfg(sqlite_test_sqlcipher)".dev-dependencies.libsqlite3-sys] |
| 520 |
version = ">=0.26" |
| 521 |
features = ["sqlcipher"] |