forked from wslongchen/labrador
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
81 lines (73 loc) · 2.25 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
[package]
name = "labrador"
version = "0.2.4"
authors = ["mrpan <1049058427@qq.com>"]
edition = "2018"
description = "Labrador - Mini thirdpart client for rust."
readme = "README.md"
keywords = ["alipay", "wechat", "jd", "taobao", "pdd"]
categories = ["api-bindings"]
homepage = "https://github.com/wslongchen/labrador"
repository = "https://github.com/wslongchen/labrador"
documentation = "https://docs.rs/labrador"
license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
redis = { version = "0.21.0", features = ["r2d2"]}
reqwest = { version = "0.11.0", features = ["blocking", "json","native-tls","__rustls", "native-tls-crate", "multipart"] }
bytes = { version = "1.1.0", features = ["serde"] }
r2d2 = {version = "0.8.9"}
chrono = { version = "0.4", features = ["serde"]}
rand = "0.7.3"
uuid = { version = "0.7.4", features = ["serde", "v4"] }
byteorder = {version = "1.3.4"}
sxd-document = {version = "0.2", optional= true}
sxd-xpath = {version = "0.2", optional= true}
serde-xml-rs = "0.6.0"
serde_urlencoded = "0.7.1"
urlencoding = "2.1.0"
openssl = { version = "0.10.41", features=["vendored"],optional= true }
log = {version = "0.4"}
tracing = { version = "0.1.35"}
dashmap = "5.3.4"
json = {version = "0.12.4", optional= true }
once_cell = "1.8"
# about crypt
md5 = { version = "0.7.0" }
sha-1 = { version = "0.10" }
sha2 = { version = "0.10" }
hmac = { version = "0.12" }
hex = { version = "0.4.3" }
aes = { version = "0.7.5" }
aes-gcm = { version = "0.10" }
base64 = "0.12"
bincode = "1.3.3"
block-modes = "0.8.1"
rsa = {version = "0.6.1", optional= true}
x509-parser = {version = "0.14.0", features=["verify"], optional= true}
[dev-dependencies]
tokio = { version = "1", features=["full"] }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs"
]
### FEATURES #################################################################
[features]
default = ["rsa", "x509-parser"]
openssl-crypto = ["openssl"]
# Provide wechat
wechat = [ "sxd-document", "sxd-xpath"]
# Provide alipay
alipay = [ "json"]
# Provide taobao
taobao = []
# Provide pinduoduo
pdd = []
# Provide jingdong
jd = []
# Provide qiniu
qiniu = []