forked from blackbeam/rust-mysql-simple
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
113 lines (96 loc) · 2.35 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
[package]
name = "mysql_wasi"
version = "23.0.2"
authors = ["blackbeam", "Tricster"]
description = "Mysql client library implemented in rust for WASI."
license = "MIT/Apache-2.0"
repository = "https://github.com/WasmEdge/rust-mysql-simple-wasi"
keywords = ["database", "sql", "WASI", "WasmEdge"]
exclude = ["tests/*", ".*", "Makefile"]
categories = ["database"]
edition = "2021"
build = "build.rs"
# [badges.azure-devops]
# build = "1"
# pipeline = "blackbeam.rust-mysql-simple"
# project = "aikorsky/mysql Rust"
[lib]
name = "mysql"
path = "src/lib.rs"
[profile.bench]
debug = true
[features]
default = [
# "native-tls",
# It is necessary to choose one of `flate2` backends.
# "flate2/zlib",
# "flate2",
# set of enabled-by-default mysql_common features
"mysql_common/bigdecimal03",
"mysql_common/rust_decimal",
"mysql_common/time03",
"mysql_common/uuid",
"mysql_common/frunk",
# use global buffer pool by default
"buffer-pool",
]
default-rustls = [
"rustls-tls",
"flate2/zlib",
"mysql_common/bigdecimal03",
"mysql_common/rust_decimal",
"mysql_common/time03",
"mysql_common/uuid",
"mysql_common/frunk",
"buffer-pool",
]
minimal = ["flate2/zlib"]
rustls-tls = ["rustls", "webpki", "webpki-roots", "rustls-pemfile"]
buffer-pool = []
nightly = []
[dev-dependencies]
lazy_static = "1.4.0"
rand = "0.8.2"
serde_derive = "1"
time = "0.3"
frunk = "0.4"
[dependencies]
bufstream = "~0.1"
bytes = "1.0.1"
crossbeam = "0.8.1"
io-enum = "1.0.0"
flate2 = { version = "1.0", default-features = true }
lru = "0.8.1"
mysql_common = { version = "0.29.2", default-features = false }
# socket2 = "0.4"
once_cell = "1.7.2"
pem = "1.0.1"
percent-encoding = "2.1.0"
serde = "1"
serde_json = "1"
twox-hash = "1"
url = "2.1"
[dependencies.native-tls]
version = "0.2.3"
optional = true
[dependencies.rustls]
version = "0.20.0"
features = ["dangerous_configuration"]
optional = true
[dependencies.rustls-pemfile]
version = "1.0.0"
optional = true
[dependencies.webpki]
version = "0.22.0"
optional = true
[dependencies.webpki-roots]
version = "0.22.1"
optional = true
[target.'cfg(target_os = "windows")'.dependencies]
named_pipe = "~0.4"
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[target.'cfg(not(target_os = "wasi"))'.dependencies]
socket2 = "0.4"
[target.'cfg(target_os = "wasi")'.dependencies]
wasmedge_wasi_socket = "0.5"