@@ -6,40 +6,41 @@ keywords = ["mysql", "database", "asynchronous", "async", "wasi"]
6
6
license = " MIT/Apache-2.0"
7
7
name = " mysql_async_wasi"
8
8
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 "
11
11
exclude = [" test/*" ]
12
12
edition = " 2018"
13
13
categories = [" asynchronous" , " database" ]
14
14
15
15
[dependencies ]
16
- bytes = " 1.0 "
16
+ bytes = " 1.4 "
17
17
crossbeam = " 0.8.1"
18
18
flate2 = { version = " 1.0" , default-features = false }
19
19
futures-core = " 0.3"
20
20
futures-util = " 0.3"
21
21
futures-sink = " 0.3"
22
+ keyed_priority_queue = " 0.4"
22
23
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 }
25
26
once_cell = " 1.7.2"
26
- pem = " 1.0.1 "
27
+ pem = " 3.0 "
27
28
percent-encoding = " 2.1.0"
28
29
pin-project = " 1.0.2"
29
- priority-queue = " 1 "
30
+ rand = " 0.8.5 "
30
31
serde = " 1"
31
32
serde_json = " 1"
32
33
thiserror = " 1.0.4"
34
+ tracing = { version = " 0.1.37" , default-features = false , features = [
35
+ " attributes" ,
36
+ ], optional = true }
33
37
twox-hash = " 1"
34
38
url = " 2.1"
35
39
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" ] }
43
44
44
45
[target .'cfg(target_os="wasi")' .dependencies ]
45
46
tokio_wasi = { version = " 1" , features = [
@@ -57,44 +58,20 @@ wasmedge_rustls_api = { version = "0.1.0", optional = true, features = [
57
58
" tokio_async" ,
58
59
] }
59
60
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
-
84
61
[dependencies .tokio-rustls ]
85
- version = " 0.23.4 "
62
+ version = " 0.24.0 "
86
63
optional = true
87
64
88
- [dependencies .tokio-native-tls ]
65
+ [target . 'cfg(not(target_os="wasi"))' . dependencies .tokio-native-tls ]
89
66
version = " 0.3.0"
90
67
optional = true
91
68
92
- [dependencies .native-tls ]
69
+ [target . 'cfg(not(target_os="wasi"))' . dependencies .native-tls ]
93
70
version = " 0.2"
94
71
optional = true
95
72
96
73
[dependencies .rustls ]
97
- version = " 0.20 .0"
74
+ version = " 0.21 .0"
98
75
features = [" dangerous_configuration" ]
99
76
optional = true
100
77
@@ -103,42 +80,63 @@ version = "1.0.1"
103
80
optional = true
104
81
105
82
[dependencies .webpki ]
106
- version = " 0.22.0"
83
+ version = " >=0.22.1"
84
+ features = [" std" ]
107
85
optional = true
108
86
109
87
[dependencies .webpki-roots ]
110
- version = " 0.22.1 "
88
+ version = " 0.25.0 "
111
89
optional = true
112
90
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
+
113
108
[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
+ ]
116
117
common = [
117
- " mysql_common/bigdecimal03 " ,
118
+ " mysql_common/bigdecimal " ,
118
119
" mysql_common/rust_decimal" ,
119
- " mysql_common/time03" ,
120
- " mysql_common/uuid" ,
120
+ " mysql_common/time" ,
121
121
" mysql_common/frunk" ,
122
122
]
123
+ minimal = [" flate2/zlib" ]
123
124
native-tls-tls = [" native-tls" , " tokio-native-tls" ]
124
- rust_backend = [" flate2/rust_backend" ]
125
125
rustls-tls = [
126
126
" rustls" ,
127
127
" tokio-rustls" ,
128
128
" webpki" ,
129
129
" webpki-roots" ,
130
130
" rustls-pemfile" ,
131
131
]
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" ]
136
134
nightly = []
135
+ binlog = [" mysql_common/binlog" ]
137
136
138
137
[lib ]
139
138
name = " mysql_async"
140
139
path = " src/lib.rs"
141
140
142
141
[profile .bench ]
143
142
debug = true
144
-
0 commit comments