forked from seanmonstar/reqwest
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
126 lines (104 loc) · 2.55 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
[package]
authors = ["Yuriy Voshchepynets <[email protected]>"]
autotests = true
categories = ["web-programming::http-client", "wasm"]
description = "higher level HTTP client library for the lunatic runtime"
documentation = "https://docs.rs/nightfly"
edition = "2018"
keywords = ["http", "request", "client"]
license = "MIT/Apache-2.0"
name = "nightfly"
readme = "README.md"
repository = "https://github.com/SquattingSocrates/nightfly"
version = "0.1.6"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["wasm32-wasi"]
[package.metadata.playground]
features = [
"json", # "multipart",
]
[features]
cookies = ["cookie_crate", "cookie_store", "proc-macro-hack"]
default = ["cookies"]
# multipart = ["mime_guess"]
[dependencies]
base64 = "0.13"
bytes = "1.0"
encoding_rs = "0.8.31"
http = "0.2"
http-body = "0.4.5"
httparse = "1.7.1"
ipnet = "2.5.0"
lunatic = "0.13.1"
lunatic-log = "0.4"
mime = "0.3.16"
percent-encoding = "2.2.0"
serde = "1.0"
serde_urlencoded = "0.7.1"
thiserror = "1.0"
tower-service = "0.3"
url = {version = "2.2", features = ["serde"]}
# Optional deps...
## json
serde_json = "1.0"
## multipart
mime_guess = {version = "2.0", default-features = false, optional = true}
# Optional deps...
brotli = {version = "3.3.4"}
## cookies
cookie_crate = {version = "0.15", package = "cookie", optional = true}
cookie_store = {version = "0.15", optional = true}
proc-macro-hack = {version = "0.5.19", optional = true}
## compression
flate2 = {version = "^1.0.24"}
[dev-dependencies]
# criterion = {git = "https://github.com/bheisler/criterion.rs", branch = "version-0.4", default-features = false}
submillisecond = {version = "0.3", features = [
"cookies",
"json",
"logging",
"query",
"websocket",
]}# for examples
[[example]]
name = "blocking"
path = "examples/blocking.rs"
[[example]]
name = "json_dynamic"
path = "examples/json_dynamic.rs"
# required-features = ["json"]
[[example]]
name = "json_typed"
path = "examples/json_typed.rs"
# required-features = ["json"]
[[example]]
name = "form"
path = "examples/form.rs"
[[example]]
name = "simple"
path = "examples/simple.rs"
[[test]]
name = "blocking"
path = "tests/blocking.rs"
[[test]]
name = "cookie"
path = "tests/cookie.rs"
required-features = ["cookies"]
[[test]]
name = "gzip"
path = "tests/gzip.rs"
[[test]]
name = "brotli"
path = "tests/brotli.rs"
[[test]]
name = "deflate"
path = "tests/deflate.rs"
[[test]]
name = "chunked"
path = "tests/chunked.rs"
# [[test]]
# name = "multipart"
# path = "tests/multipart.rs"
# required-features = ["multipart"]