-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
88 lines (77 loc) · 2.31 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.8.0"
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.5", optional = true }
async-trait = "0.1.80"
cfg-if = "1.0.0"
chrono = { version = "0.4.26", optional = true }
cidr-utils = { version = "0.6.1", optional = true }
form_urlencoded = "1.2.1"
futures-core = "0.3.30"
futures-util = "0.3.30"
hostname = { version = "0.4.0", optional = true }
http = "1.1.0"
log = "0.4.18"
once_cell = "1.17.2"
reqwest = { version = "0.12.5", features = ["cookies", "json"], default-features = false }
rust-ini = { version = "0.21.0", optional = true }
serde = { version = "1.0.203", features = ["derive"] }
serde_json = { version = "1.0.117", features = ["preserve_order"] }
systemstat = { version = "0.2.3", optional = true }
thiserror = "1.0.61"
url = "2.5.2"
hmac = { version = "0.12.1", optional = true }
sha1 = { version = "0.10.6", optional = true }
base64 = { version = "0.22.1", optional = true }
urlencoding = { version = "2.1.3", optional = true }
[dev-dependencies]
env_logger = "0.11.3"
futures = { version = "0.3.30", features = ["alloc"] }
tokio = { version = "1.29.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