-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathCargo.toml
128 lines (114 loc) · 3.61 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[package]
authors = ["Simon Bernier St-Pierre <git.sbstp.ca@gmail.com>"]
edition = "2021"
license = "MPL-2.0"
name = "attohttpc"
version = "0.29.0"
categories = [
"network-programming",
"web-programming",
"web-programming::http-client",
]
description = "Small and lightweight HTTP client"
documentation = "https://docs.rs/attohttpc"
homepage = "https://github.com/sbstp/attohttpc"
keywords = ["http", "https", "client", "request", "response"]
readme = "README.md"
repository = "https://github.com/sbstp/attohttpc"
[dependencies]
base64 = { version = "0.22.0", optional = true }
encoding_rs = { version = "0.8.31", optional = true }
encoding_rs_io = { version = "0.1.7", optional = true }
flate2 = { version = "1.0.24", default-features = false, optional = true }
http = "1"
log = "0.4.17"
mime = { version = "0.3.16", optional = true }
multipart = { version = "0.18.0", default-features = false, features = [
"client",
], optional = true }
native-tls = { version = "0.2.10", optional = true }
rustls-native-certs = { version = "0.8.1", optional = true }
rustls = { version = "0.23.22", optional = true }
serde = { version = "1.0.143", optional = true }
serde_json = { version = "1.0.83", optional = true }
serde_urlencoded = { version = "0.7.1", optional = true }
url = "2.2.2"
webpki-roots = { version = "0.26.8", optional = true }
[dev-dependencies]
anyhow = "1.0.61"
axum = { version = "0.8.1", features = ["multipart"] }
axum-server = { version = "0.7.1", features = ["tls-rustls"] }
bytes = "1.10.0"
env_logger = "0.11.0"
http-body-util = "0.1.2"
hyper = { version = "1.6.0", features = ["full"] }
hyper-util = "0.1.10"
lazy_static = "1.4.0"
multipart = { version = "0.18.0", default-features = false, features = [
"server",
] }
rustls = "0.23.22"
tokio = { version = "1.20.1", features = ["full"] }
tokio-rustls = "0.26.1"
[features]
basic-auth = ["base64"]
charsets = ["encoding_rs", "encoding_rs_io"]
# The following three compress features are mutually exclusive.
compress = ["flate2/default"]
compress-zlib = ["flate2/zlib"]
compress-zlib-ng = ["flate2/zlib-ng"]
default = ["compress", "tls-native"]
form = ["serde", "serde_urlencoded"]
json = ["serde", "serde_json"]
multipart-form = ["multipart", "mime"]
# The following TLS features are mutually exclusive
tls-native = ["native-tls"]
tls-rustls-webpki-roots = ["__rustls", "webpki-roots"]
tls-rustls-native-roots = ["__rustls", "rustls-native-certs"]
# This feature depends on tls-native
tls-native-vendored = ["native-tls/vendored"]
# These features are provided for backwards compatibility
tls = ["tls-native"]
rustls = ["tls-rustls-webpki-roots"]
tls-rustls = ["tls-rustls-webpki-roots"]
tls-vendored = ["tls-native-vendored"]
# Internal feature used to indicate rustls support
__rustls = ["dep:rustls"]
[package.metadata.docs.rs]
all-features = true
[[example]]
name = "cat"
path = "examples/cat.rs"
required-features = ["default"]
[[example]]
name = "imdb"
path = "examples/imdb.rs"
required-features = ["tls-native"]
[[example]]
name = "nhlapi"
path = "examples/nhlapi.rs"
required-features = ["tls-native"]
[[example]]
name = "post_json"
path = "examples/post_json.rs"
required-features = ["json"]
[[example]]
name = "post"
path = "examples/post.rs"
required-features = ["tls-native"]
[[example]]
name = "charset"
path = "examples/charset.rs"
required-features = ["charsets"]
[[example]]
name = "multipart"
path = "examples/multipart.rs"
required-features = ["multipart-form"]
[[test]]
name = "test_invalid_certs"
path = "tests/test_invalid_certs.rs"
required-features = ["tls-native"]
[[test]]
name = "test_multipart"
path = "tests/test_multipart.rs"
required-features = ["multipart-form"]