Skip to content

Commit 088f62a

Browse files
committed
Merge commit 'v0.33.0' into feat/support_rustls
2 parents 1b1bd45 + 514d6db commit 088f62a

39 files changed

+2477
-689
lines changed

Cargo.toml

Lines changed: 53 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,41 @@ keywords = ["mysql", "database", "asynchronous", "async", "wasi"]
66
license = "MIT/Apache-2.0"
77
name = "mysql_async_wasi"
88
readme = "README.md"
9-
repository = "https://github.com/WasmEdge/mysql_async_wasi"
10-
version = "0.31.6"
9+
repository = "https://github.com/blackbeam/mysql_async"
10+
version = "0.33.0"
1111
exclude = ["test/*"]
1212
edition = "2018"
1313
categories = ["asynchronous", "database"]
1414

1515
[dependencies]
16-
bytes = "1.0"
16+
bytes = "1.4"
1717
crossbeam = "0.8.1"
1818
flate2 = { version = "1.0", default-features = false }
1919
futures-core = "0.3"
2020
futures-util = "0.3"
2121
futures-sink = "0.3"
22+
keyed_priority_queue = "0.4"
2223
lazy_static = "1"
23-
lru = "0.8.1"
24-
mysql_common = { version = "0.29.2", default-features = false }
24+
lru = "0.12.0"
25+
mysql_common = { version = "0.31", default-features = false }
2526
once_cell = "1.7.2"
26-
pem = "1.0.1"
27+
pem = "3.0"
2728
percent-encoding = "2.1.0"
2829
pin-project = "1.0.2"
29-
priority-queue = "1"
30+
rand = "0.8.5"
3031
serde = "1"
3132
serde_json = "1"
3233
thiserror = "1.0.4"
34+
tracing = { version = "0.1.37", default-features = false, features = [
35+
"attributes",
36+
], optional = true }
3337
twox-hash = "1"
3438
url = "2.1"
3539

36-
# [target.'cfg(not(target_os="wasi"))'.dependencies]
37-
# tokio = { version = "1.0", features = ["io-util", "fs", "net", "time", "rt"] }
38-
# tokio-util = { version = "0.7.2", features = ["codec", "io"] }
39-
# tokio-native-tls = "0.3.0"
40-
# socket2 = "0.4.2"
41-
# native-tls = "0.2"
42-
# mio = { version = "0.8.0", features = ["os-poll", "net"] }
40+
[target.'cfg(not(target_os="wasi"))'.dependencies]
41+
socket2 = "0.5.2"
42+
tokio = { version = "1.0", features = ["io-util", "fs", "net", "time", "rt"] }
43+
tokio-util = { version = "0.7.2", features = ["codec", "io"] }
4344

4445
[target.'cfg(target_os="wasi")'.dependencies]
4546
tokio_wasi = { version = "1", features = [
@@ -57,44 +58,20 @@ wasmedge_rustls_api = { version = "0.1.0", optional = true, features = [
5758
"tokio_async",
5859
] }
5960

60-
# [target.'cfg(not(target_os="wasi"))'.dev-dependencies]
61-
# tempfile = "3.1.0"
62-
# socket2 = { version = "0.4.0", features = ["all"] }
63-
# tokio = { version = "1.0", features = ["macros", "rt", "rt-multi-thread"] }
64-
# rand = "0.8.0"
65-
66-
[dev-dependencies]
67-
tempfile = "3.1.0"
68-
tokio = { version = "1.0", features = ["io-util", "fs", "net", "time", "rt"] }
69-
tokio-util = { version = "0.7.2", features = ["codec", "io"] }
70-
71-
[target.'cfg(target_os="wasi")'.dev-dependencies]
72-
tempfile = "3.1.0"
73-
tokio_wasi = { version = "1", features = [
74-
"io-util",
75-
"fs",
76-
"net",
77-
"time",
78-
"rt",
79-
"macros",
80-
] }
81-
rand = "0.8.0"
82-
83-
8461
[dependencies.tokio-rustls]
85-
version = "0.23.4"
62+
version = "0.24.0"
8663
optional = true
8764

88-
[dependencies.tokio-native-tls]
65+
[target.'cfg(not(target_os="wasi"))'.dependencies.tokio-native-tls]
8966
version = "0.3.0"
9067
optional = true
9168

92-
[dependencies.native-tls]
69+
[target.'cfg(not(target_os="wasi"))'.dependencies.native-tls]
9370
version = "0.2"
9471
optional = true
9572

9673
[dependencies.rustls]
97-
version = "0.20.0"
74+
version = "0.21.0"
9875
features = ["dangerous_configuration"]
9976
optional = true
10077

@@ -103,42 +80,63 @@ version = "1.0.1"
10380
optional = true
10481

10582
[dependencies.webpki]
106-
version = "0.22.0"
83+
version = ">=0.22.1"
84+
features = ["std"]
10785
optional = true
10886

10987
[dependencies.webpki-roots]
110-
version = "0.22.1"
88+
version = "0.25.0"
11189
optional = true
11290

91+
[target.'cfg(not(target_os="wasi"))'.dev-dependencies]
92+
tempfile = "3.1.0"
93+
socket2 = { version = "0.5.2", features = ["all"] }
94+
tokio = { version = "1.0", features = ["macros", "rt", "rt-multi-thread"] }
95+
96+
[target.'cfg(target_os="wasi")'.dev-dependencies]
97+
tempfile = "3.1.0"
98+
tokio_wasi = { version = "1", features = [
99+
"io-util",
100+
"fs",
101+
"net",
102+
"time",
103+
"rt",
104+
"macros",
105+
] }
106+
wasmedge_wasi_socket = "0.5"
107+
113108
[features]
114-
default = ["common", "rust_backend"]
115-
default-rustls = ["common", "rust_backend", "wasmedge-tls"]
109+
default = ["flate2/zlib", "common", "derive", "native-tls-tls", "binlog"]
110+
default-rustls = [
111+
"flate2/rust_backend",
112+
"common",
113+
"derive",
114+
"rustls-tls",
115+
"binlog",
116+
]
116117
common = [
117-
"mysql_common/bigdecimal03",
118+
"mysql_common/bigdecimal",
118119
"mysql_common/rust_decimal",
119-
"mysql_common/time03",
120-
"mysql_common/uuid",
120+
"mysql_common/time",
121121
"mysql_common/frunk",
122122
]
123+
minimal = ["flate2/zlib"]
123124
native-tls-tls = ["native-tls", "tokio-native-tls"]
124-
rust_backend = ["flate2/rust_backend"]
125125
rustls-tls = [
126126
"rustls",
127127
"tokio-rustls",
128128
"webpki",
129129
"webpki-roots",
130130
"rustls-pemfile",
131131
]
132-
wasmedge-tls = ["wasmedge_rustls_api"]
133-
minimal = ["flate2/zlib"]
134-
zlib = ["flate2/zlib"]
135-
full = ["default", "zlib"]
132+
tracing = ["dep:tracing"]
133+
derive = ["mysql_common/derive"]
136134
nightly = []
135+
binlog = ["mysql_common/binlog"]
137136

138137
[lib]
139138
name = "mysql_async"
140139
path = "src/lib.rs"
141140

142141
[profile.bench]
143142
debug = true
144-

0 commit comments

Comments
 (0)