forked from abonander/multipart-async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
71 lines (53 loc) · 2.04 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
[package]
name = "multipart-async"
version = "0.0.2"
authors = ["Austin Bonander <[email protected]>"]
description = "A backend-agnostic extension for asynchronous HTTP libraries that provides support for POST multipart/form-data requests on for both client and server."
keywords = ["form-data", "hyper", "async", "http", "upload"]
repository = "http://github.com/abonander/multipart-async"
license = "MIT OR Apache-2.0"
edition = "2018"
categories = ["web-programming::http-client", "web-programming::http-server", "asynchronous"]
[dependencies]
bytes = "0.5"
display_bytes = "0.2.1"
http = "0.2"
log = "0.4"
mime = "0.3"
mime_guess = { version = "2.0", optional = true }
rand = { version = "0.7", optional = true }
pin-utils = "0.1.0"
httparse = { version = "1.0", optional = true }
twoway = { version = "0.2", optional = true }
futures-core = "0.3.5"
futures-util = { version = "0.3.5", default-features = false, optional = true }
futures-test = { version = "0.3.5", optional = true }
hyper = { version = "0.13.6", optional = true, default-features = false, features = ["stream"] }
tokio = { version = "0.2.21", optional = true, default-features = false, features = ["io-util"] }
# only used in integration testing; optional instead of dev dep so it doesn't require cURL
# to be installed for all contributors
curl = { version = "0.4", optional = true }
[features]
client = ["rand", "tokio", "mime_guess", "futures-util"]
default = ["client", "server"]
server = ["twoway", "httparse"]
# Expose APIs used for fuzzing
# Note: these APIs are not considered part of the public API and may break
fuzzing = ["futures-util", "futures-test"]
[dev-dependencies]
hyper = "0.13.6"
lazy_static = "1.3.0"
futures = "0.3.5"
futures-test = "0.3.5"
env_logger = "0.6.2"
tokio = { version = "0.2.21", features = ["macros"] }
#[[bin]]
#name = "form_test"
#path = "bin/form_test.rs"
#required-features = ["hyper", "server"]
[[example]]
name = "hyper-server"
required-features = ["hyper", "server"]
[[test]]
name = "curl-hyper"
required-features = ["hyper", "server", "curl"]