-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
61 lines (47 loc) · 1.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
[package]
name = "feignhttp"
version = "0.5.2"
authors = ["dxx <dx1898@foxmail.com>"]
edition = "2021"
description = "Declarative HTTP client for rust"
documentation = "https://docs.rs/feignhttp"
homepage = "https://github.com/dxx/feignhttp"
repository = "https://github.com/dxx/feignhttp"
categories = ["web-programming::http-client"]
keywords = ["http", "request", "client"]
readme = "README.md"
license = "MIT"
exclude = [
"examples/**",
]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[workspace]
members = ["codegen"]
[features]
default = ["reqwest-client"]
reqwest-client = ["reqwest"]
isahc-client = ["isahc"]
json = ["serde_json", "reqwest/json", "isahc/json"]
[dependencies]
feignhttp-codegen = { version = "0.5", path = "codegen" }
async-trait = "0.1"
http = "0.2"
url = "2.2"
serde = "1.0"
serde_urlencoded = "0.7"
# Optional deps...
## reqwest
reqwest = { version = "0.11", optional = true }
## isahc
isahc = { version = "1.7.0", optional = true }
## json
serde_json = { version = "1.0", optional = true }
## log
log = { version = "0.4", optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
once_cell = "1.12.0"
mockito = "0.23.3"
env_logger = "0.8.3"