-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
85 lines (69 loc) · 2.19 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
[package]
name = "http_api_service"
version = "0.3.2"
license = "MIT"
authors = ["JunYi JohnTeee Lee <[email protected]>"]
edition = "2018"
include = ["src/**/*.rs", "Cargo.toml"]
readme = "README.md"
description = "A Retrofit inspired implementation for Rust."
documentation = "https://docs.rs/http_api_service/"
homepage = "https://github.com/TeaEntityLab/httpAPIService"
repository = "https://github.com/TeaEntityLab/httpAPIService"
keywords = ["retrofit","http","api","binding","hyper"]
[badges.maintenance]
status = "actively-developed"
[lib]
name = "http_api_service"
path = "src/lib.rs"
[features]
default = [
"for_hyper", "multipart", "for_serde"
]
pure = []
for_hyper = [ "hyper", "tokio", "http" ]
for_ureq = [ "ureq", "fp_rust", ]
multipart = [ "formdata", "multer", "mime" ]
for_serde = [ "serde", "serde_json" ]
test_runtime = [
"for_hyper", "for_ureq",
"multipart", "for_serde",
"hyper/full",
"fp_rust/sync",
]
[dependencies]
# Required
bytes = "^1.0.0"
url="^2.2.0"
futures = { version = "0.3", default-features = false, features = ["thread-pool"] }
# for_hyper
hyper = { version = "^0.14.0", optional = true, features = ["client", "http1", "http2", "stream", "tcp",] }
tokio = { version = "^1.8.0", optional = true, features = ["time", "macros",] }
http = { version = "^0.2.4", optional = true }
# for_ureq
ureq = { version = "^2.1.0", optional = true, features = ["tls",] }
# multipart
formdata = { version = "^0.13.0", optional = true }
multer = { version = "^2.0.0", optional = true }
mime = { version = "^0.3.0", optional = true }
# for_serde
serde = { version = "^1.0", features = ["derive"], optional = true }
serde_json = { version = "^1.0", optional = true }
# test_runtime
fp_rust={ version = "^0.3.5", default-features = false, features = ["for_futures"], optional = true }
[[test]]
name = "ureq_simple_http"
path = "tests/ureq_simple_http.rs"
required-features = ["test_runtime"]
[[test]]
name = "ureq_simple_api"
path = "tests/ureq_simple_api.rs"
required-features = ["test_runtime"]
[[test]]
name = "hyper_simple_http"
path = "tests/hyper_simple_http.rs"
required-features = ["test_runtime"]
[[test]]
name = "hyper_simple_api"
path = "tests/hyper_simple_api.rs"
required-features = ["test_runtime"]