forked from blackbeam/mysql_async
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
138 lines (120 loc) · 2.92 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
[package]
authors = ["blackbeam <[email protected]>"]
description = "Tokio based asynchronous MySql client library."
documentation = "https://docs.rs/mysql_async"
keywords = ["mysql", "database", "asynchronous", "async"]
license = "MIT/Apache-2.0"
name = "mysql_async"
readme = "README.md"
repository = "https://github.com/blackbeam/mysql_async"
version = "0.34.0"
exclude = ["test/*"]
edition = "2021"
categories = ["asynchronous", "database"]
[dependencies]
bytes = "1.4"
crossbeam = "0.8.1"
flate2 = { version = "1.0", default-features = false }
futures-core = "0.3"
futures-util = "0.3"
futures-sink = "0.3"
keyed_priority_queue = "0.4"
lazy_static = "1"
lru = "0.12.0"
mio = { version = "0.8.0", features = ["os-poll", "net"] }
mysql_common = { version = "0.32", default-features = false }
once_cell = "1.7.2"
pem = "3.0"
percent-encoding = "2.1.0"
pin-project = "1.0.2"
rand = "0.8.5"
serde = "1"
serde_json = "1"
socket2 = "0.5.2"
thiserror = "1.0.4"
tokio = { version = "1.0", features = ["io-util", "fs", "net", "time", "rt"] }
tokio-util = { version = "0.7.2", features = ["codec", "io"] }
tracing = { version = "0.1.37", default-features = false, features = [
"attributes",
], optional = true }
twox-hash = "1"
url = "2.1"
[dependencies.tokio-rustls]
version = "0.25"
optional = true
[dependencies.tokio-native-tls]
version = "0.3.0"
optional = true
[dependencies.native-tls]
version = "0.2"
optional = true
[dependencies.rustls]
version = "0.22.2"
features = []
optional = true
[dependencies.rustls-pemfile]
version = "2.1.0"
optional = true
[dependencies.webpki]
version = ">=0.22.1"
features = ["std"]
optional = true
[dependencies.webpki-roots]
version = "0.26.1"
optional = true
[dev-dependencies]
waker-fn = "1"
tempfile = "3.1.0"
socket2 = { version = "0.5.2", features = ["all"] }
tokio = { version = "1.0", features = ["macros", "rt", "rt-multi-thread"] }
[features]
default = [
"flate2/zlib",
"bigdecimal",
"rust_decimal",
"time",
"frunk",
"derive",
"native-tls-tls",
"binlog",
]
default-rustls = [
"flate2/rust_backend",
"bigdecimal",
"rust_decimal",
"time",
"frunk",
"derive",
"rustls-tls",
"binlog",
]
# minimal feature set with system flate2 impl
minimal = ["flate2/zlib"]
# minimal feature set with rust flate2 impl
minimal-rust = ["flate2/rust_backend"]
# native-tls based TLS support
native-tls-tls = ["native-tls", "tokio-native-tls"]
# rustls based TLS support
rustls-tls = [
"rustls",
"tokio-rustls",
"webpki",
"webpki-roots",
"rustls-pemfile",
]
# mysql_common features
derive = ["mysql_common/derive"]
chrono = ["mysql_common/chrono"]
time = ["mysql_common/time"]
bigdecimal = ["mysql_common/bigdecimal"]
rust_decimal = ["mysql_common/rust_decimal"]
frunk = ["mysql_common/frunk"]
binlog = ["mysql_common/binlog"]
# other features
tracing = ["dep:tracing"]
nightly = []
[lib]
name = "mysql_async"
path = "src/lib.rs"
[profile.bench]
debug = true