-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
56 lines (49 loc) · 1.48 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
[package]
name = "http_dir"
version = "0.1.9"
edition = "2021"
authors = ["Sherlock Holo <[email protected]>"]
readme = "README.md"
keywords = ["http"]
license = "MIT"
repository = "https://github.com/Sherlock-Holo/http_dir"
rust-version = "1.72"
description = "HTTP file server"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package.metadata.docs.rs]
features = ["__internal_test"]
[[example]]
name = "disk"
required-features = ["disk"]
[[example]]
name = "include_dir"
required-features = ["include_dir"]
[dependencies]
tower-service = "0.3"
http = "0.2"
bytes = "1"
http-body = "0.4"
pin-project = "1"
futures-util = { version = "0.3" }
httpdate = "1"
mime_guess = "2"
http-range-header = "0.4"
tokio = { version = "1", features = ["io-util"] }
tokio-util = { version = "0.7", features = ["io"] }
percent-encoding = "2"
tower-http = { version = "0.4", features = ["set-status"] }
include_dir = { version = "0.7", optional = true }
[features]
default = ["disk", "include-dir"]
compression-gzip = []
compression-br = []
compression-deflate = []
disk = ["tokio/fs"]
include-dir = ["include_dir/metadata"]
__internal_test = ["compression-gzip", "compression-br", "compression-deflate", "disk", "include-dir"]
[dev-dependencies]
tokio = { version = "1", features = ["io-util", "rt", "macros"] }
hyper = { version = "0.14", features = ["server", "runtime", "tcp", "http1"] }
tower = { version = "0.4", features = ["make", "util"] }
brotli = "3"
flate2 = "1"