forked from abonander/multipart
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
44 lines (37 loc) · 1.27 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
[package]
name = "mpart"
version = "0.18.0"
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/Dylan-DPC/mpart"
documentation = "http://docs.rs/mpart/"
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
[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"
thiserror = "1.0.38"
#Server Dependencies
buf_redux = { version = "0.8", optional = true, default-features = false }
httparse = { version = "1.2", optional = true }
twoway = { version = "0.1", optional = true }
# Optional Integrations
hyper = { version = ">=0.9, <0.11", optional = true, default-features = false }
tiny_http = { version = "0.6", 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", "mock", "server", "tiny_http"]
server = ["buf_redux", "httparse", "safemem", "twoway"]
mock = []
nightly = []
bench = []