forked from jmjoy/apollo-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
88 lines (77 loc) · 2.27 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
[package]
name = "apollo-client"
version = "0.7.3"
authors = ["jmjoy <[email protected]>"]
edition = "2021"
rust-version = "1.56"
description = "Ctrip Apollo client for Rust🦀."
repository = "https://github.com/jmjoy/apollo-client"
documentation = "https://docs.rs/apollo-client"
license = "Unlicense"
readme = "README.md"
keywords = ["ctrip", "apollo", "client"]
exclude = [
"sql",
"docker-compose.yml",
"test-coverage.sh",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["conf", "default-tls"]
default-tls = ["reqwest/default-tls"]
conf = ["async-stream", "rust-ini", "host"]
host = ["host-ip", "host-name"]
host-ip = ["systemstat", "cidr-utils"]
host-name = ["hostname"]
open = ["chrono/serde"]
full = ["open"]
auth = ["chrono","hmac","sha1","base64","urlencoding"]
[dependencies]
async-stream = { version = "0.3.2", optional = true }
async-trait = "0.1.50"
cfg-if = "1.0.0"
chrono = { version = "0.4.19", optional = true }
cidr-utils = { version = "0.5.4", optional = true }
form_urlencoded = "1.0.1"
futures-core = "0.3.15"
futures-util = "0.3.15"
hostname = { version = "0.3.1", optional = true }
http = "0.2.4"
log = "0.4.14"
once_cell = "1.8.0"
reqwest = { version = "0.11.4", features = ["cookies", "json"], default-features = false }
rust-ini = { version = "0.17.0", optional = true }
serde = "1.0.126"
serde_json = { version = "1.0.64", features = ["preserve_order"] }
systemstat = { version = "0.1.8", optional = true }
thiserror = "1.0.25"
url = "2.2.2"
hmac = { version = "0.12.1", optional = true }
sha1 = { version = "0.10.1", optional = true }
base64 = { version = "0.13.0", optional = true }
urlencoding = { version = "2.1.0", optional = true }
[dev-dependencies]
env_logger = "0.8.4"
futures = { version = "0.3.15", features = ["alloc"] }
tokio = { version = "1.7.1", features = ["full"] }
[[test]]
name = "conf"
required-features = ["conf"]
[[test]]
name = "open"
required-features = ["open"]
[[example]]
name = "basic"
required-features = ["conf"]
[[example]]
name = "auth"
required-features = ["conf","auth"]
[[example]]
name = "watch"
required-features = ["conf"]
[[example]]
name = "app"
required-features = ["open"]
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
all-features = true