forked from blackbeam/mysql_async
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
127 lines (107 loc) · 3.06 KB
/
Copy pathCargo.toml
File metadata and controls
127 lines (107 loc) · 3.06 KB
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
[package]
authors = ["blackbeam <aikorsky@gmail.com>"]
description = "Tokio based asynchronous MySql client library."
documentation = "https://docs.rs/mysql_async"
keywords = ["mysql", "database", "asynchronous", "async"]
license = "MIT OR Apache-2.0"
name = "mysql_async"
readme = "README.md"
repository = "https://github.com/blackbeam/mysql_async"
version = "0.37.0"
exclude = ["test/*"]
edition = "2021"
categories = ["asynchronous", "database"]
[dependencies]
bytes = "1.4"
crossbeam-queue = "0.3"
crossbeam-utils = "0.8.21"
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.18"
mysql_common = { version = "0.37.1", default-features = false }
pem = { version = "3.0", optional = true }
percent-encoding = "2.1.0"
rand = "0.10"
serde = "1"
socket2 = "0.6"
thiserror = "2"
tokio = { version = "1.0", features = [
"io-util",
"fs",
"net",
"time",
"rt",
"sync",
] }
tokio-util = { version = "0.7.2", features = ["codec", "io"] }
tracing = { version = "0.1.37", default-features = false, features = [
"attributes",
], optional = true }
twox-hash = { version = "2", default-features = false, features = ["xxhash64"] }
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.14"
default-features = false
features = ["std"]
optional = true
[dependencies.webpki-roots]
version = "1"
optional = true
[dev-dependencies]
waker-fn = "1"
tempfile = "3.1.0"
socket2 = { version = "0.6", features = ["all"] }
tokio = { version = "1.0", features = ["macros", "rt", "rt-multi-thread"] }
[features]
default = ["flate2/zlib", "derive"]
default-rustls = ["default-rustls-no-provider", "aws-lc-rs"]
default-rustls-ring = ["default-rustls-no-provider", "ring"]
default-rustls-no-provider = [
"flate2/rust_backend",
"derive",
"rustls-tls",
"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", "pem"]
# rustls based TLS support
rustls-tls = ["rustls", "tokio-rustls", "webpki-roots"]
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"]
client_ed25519 = ["mysql_common/client_ed25519"]
client_parsec = ["mysql_common/client_parsec"]
# other features
tracing = ["dep:tracing"]
nightly = []
[lib]
name = "mysql_async"
path = "src/lib.rs"
[profile.bench]
debug = true