forked from weiznich/diesel_async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
66 lines (57 loc) · 2.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
[package]
name = "diesel-async"
version = "0.4.1"
authors = ["Georg Semmler <github@weiznich.de>"]
edition = "2021"
autotests = false
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/weiznich/diesel_async"
keywords = ["orm", "database", "sql", "async"]
categories = ["database"]
description = "An async extension for Diesel the safe, extensible ORM and Query Builder"
rust-version = "1.65.0"
[dependencies]
diesel = { version = "~2.1.1", default-features = false, features = ["i-implement-a-third-party-backend-and-opt-into-breaking-changes"]}
async-trait = "0.1.66"
futures-channel = { version = "0.3.17", default-features = false, features = ["std", "sink"], optional = true }
futures-util = { version = "0.3.17", default-features = false, features = ["std", "sink"] }
tokio-postgres = { version = "0.7.10", optional = true}
tokio = { version = "1.26", optional = true}
mysql_async = { version = ">=0.32.0,<0.33", optional = true, default-features = false}
mysql_common = {version = ">=0.30.0,<0.31.0", optional = true, default-features = false}
flate2 = { version = "*", optional = true, default-features = false }
bb8 = {version = "0.8", optional = true}
deadpool = {version = "0.9", optional = true}
mobc = {version = ">=0.7,<0.9", optional = true}
scoped-futures = {version = "0.1", features = ["std"]}
bitflags = "=2.1" # TODO: remove me. only temporarily needed due to https://github.com/blackbeam/rust_mysql_common/issues/87
[dev-dependencies]
tokio = {version = "1.12.0", features = ["rt", "macros", "rt-multi-thread"]}
cfg-if = "1"
chrono = "0.4"
diesel = { version = "2.1.0", default-features = false, features = ["chrono"]}
diesel_migrations = "2.1.0"
[features]
default = []
mysql = ["futures-channel", "tokio"]
mysql-native-tls = ["diesel/mysql_backend", "mysql_async", "mysql_async/default", "mysql_common", "mysql_common/default", "flate2"]
mysql-rustls = ["diesel/mysql_backend", "mysql_async", "mysql_async/rustls-tls", "mysql_common", "mysql_common/bigdecimal", "mysql_common/rust_decimal", "mysql_common/time", "mysql_common/frunk", "mysql_common/derive", "flate2", "flate2/rust_backend"]
postgres = ["diesel/postgres_backend", "tokio-postgres", "tokio", "tokio/rt"]
async-connection-wrapper = []
r2d2 = ["diesel/r2d2"]
[[test]]
name = "integration_tests"
path = "tests/lib.rs"
harness = true
[package.metadata.docs.rs]
features = ["postgres", "mysql", "deadpool", "bb8", "mobc", "async-connection-wrapper", "r2d2"]
no-default-features = true
rustc-args = ["--cfg", "doc_cfg"]
rustdoc-args = ["--cfg", "doc_cfg"]
[workspace]
members = [
".",
"examples/postgres/pooled-with-rustls",
"examples/postgres/run-pending-migrations-with-rustls",
]