-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCargo.toml
83 lines (71 loc) · 1.74 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
[package]
name = "form-data"
version = "0.6.0"
authors = ["Fangdun Tsai <[email protected]>"]
description = "AsyncRead/AsyncWrite/Stream `multipart/form-data`"
repository = "https://github.com/viz-rs/form-data"
keywords = ["async", "form-data", "multipart", "http", "hyper"]
categories = ["asynchronous", "web-programming", "web-programming::http-server"]
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
include = [
"Cargo.toml",
"LICENSE-APACHE",
"LICENSE-MIT",
"README.md",
"src/*.rs",
]
[features]
default = ["async"]
async = ["futures-util/io"]
sync = []
[dependencies]
bytes = "1.9"
http = "1.2"
httparse = "1.9"
mime = "0.3"
memchr = "2.7"
tracing = "0.1"
thiserror = "2.0"
serde = { version = "1.0", features = ["derive"] }
[dependencies.futures-util]
version = "0.3"
default-features = false
optional = true
[dev-dependencies]
anyhow = "1.0"
async-fs = "2.1"
http-body = "1.0"
http-body-util = "0.1"
hyper = { version = "1.5", features = ["server", "http1"] }
hyper-util = { version = "0.1", features = ["tokio"] }
rand = "0.8"
tempfile = "3.14"
tiny_http = "0.12"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
tokio-util = { version = "0.7", features = ["io"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# warp = "0.3"
[[example]]
name = "hyper"
path = "examples/hyper.rs"
#[[example]]
#name = "warp"
#path = "examples/warp.rs"
[[example]]
name = "tiny_http"
path = "examples/tiny_http.rs"
required-features = ["sync"]
[[test]]
name = "form-data"
path = "tests/form-data.rs"
required-features = ["async"]
[[test]]
name = "hyper-body"
path = "tests/hyper-body.rs"
required-features = ["async"]
[[test]]
name = "tiny-body"
path = "tests/tiny-body.rs"
required-features = ["sync"]