This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
/
Cargo.toml
90 lines (67 loc) · 2.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
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
[package]
name = "multipart"
version = "0.18.0"
authors = ["Austin Bonander <austin.bonander@gmail.com>"]
description = "A backend-agnostic extension for HTTP libraries that provides support for POST multipart/form-data requests on both client and server."
keywords = ["form-data", "hyper", "iron", "http", "upload"]
repository = "http://github.com/abonander/multipart"
documentation = "http://docs.rs/multipart/"
license = "MIT OR Apache-2.0"
readme = "README.md"
[dependencies]
lazy_static = { version = "1.2.0", optional = true }
log = "0.4"
mime = "0.3.14"
mime_guess = "2.0.1"
rand = "0.8"
safemem = { version = "0.3", optional = true }
tempfile = "3"
clippy = { version = ">=0.0, <0.1", optional = true}
#Server Dependencies
buf_redux = { version = "0.8", optional = true, default-features = false }
httparse = { version = "1.2", optional = true }
twoway = { version = "0.1", optional = true }
quick-error = { version = "1.2", optional = true }
# Optional Integrations
hyper = { version = ">=0.9, <0.11", optional = true, default-features = false }
iron = { version = ">=0.4,<0.7", optional = true }
tiny_http = { version = "0.6", optional = true }
nickel = { version = ">=0.10.1", optional = true }
# Only for Rocket example but dev-dependencies can't be optional
rocket = { version = "0.4", optional = true }
[dev-dependencies]
env_logger = "0.5"
[features]
client = []
default = ["client", "hyper", "iron", "mock", "nickel", "server", "tiny_http"]
server = ["buf_redux", "httparse", "quick-error", "safemem", "twoway"]
mock = []
nightly = []
bench = []
[[example]]
name = "hyper_client"
required-features = ["client", "mock", "hyper"]
[[example]]
name = "hyper_reqbuilder"
required-features = ["client", "mock", "hyper"]
[[example]]
name = "hyper_server"
required-features = ["mock", "hyper", "server"]
[[example]]
name = "iron"
required-features = ["mock", "iron", "server"]
[[example]]
name = "iron_intercept"
required-features = ["mock", "iron", "server"]
[[example]]
name = "nickel"
required-features = ["mock", "nickel", "server"]
[[example]]
name = "tiny_http"
required-features = ["mock", "tiny_http", "server"]
[[example]]
name = "rocket"
required-features = ["mock", "rocket", "server"]
[[bin]]
name = "form_test"
required-features = ["mock", "hyper", "server"]