-
Notifications
You must be signed in to change notification settings - Fork 122
/
Cargo.toml
153 lines (131 loc) · 3.22 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
[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.2"
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"
lru = "0.12.0"
mysql_common = { version = "0.33", default-features = false }
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 = "2"
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 = "2"
url = "2.1"
hdrhistogram = { version = "7.5", optional = true }
[dependencies.tokio-rustls]
version = "0.26"
default-features = false
optional = true
[dependencies.tokio-native-tls]
version = "0.3.0"
optional = true
[dependencies.native-tls]
version = "0.2"
optional = true
[dependencies.rustls]
version = "0.23"
default-features = false
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 = [
"default-rustls-no-provider",
"aws-lc-rs",
]
default-rustls-ring = [
"default-rustls-no-provider",
"ring",
]
default-rustls-no-provider = [
"flate2/rust_backend",
"bigdecimal",
"rust_decimal",
"time",
"frunk",
"derive",
"rustls-tls",
"binlog",
"tls12",
]
# 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",
]
aws-lc-rs = ["rustls/aws_lc_rs", "tokio-rustls/aws_lc_rs"]
ring = ["rustls/ring", "tokio-rustls/ring"]
tls12 = ["rustls/tls12", "tokio-rustls/tls12"]
binlog = ["mysql_common/binlog"]
# 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"]
# other features
tracing = ["dep:tracing"]
nightly = []
[lib]
name = "mysql_async"
path = "src/lib.rs"
[profile.bench]
debug = true