forked from svenstaro/miniserve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
83 lines (77 loc) · 2.26 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 = "miniserve"
version = "0.19.0"
description = "For when you really just want to serve some files over HTTP right now!"
authors = ["Sven-Hendrik Haase <svenstaro@gmail.com>", "Boastful Squirrel <boastful.squirrel@gmail.com>"]
repository = "https://github.com/svenstaro/miniserve"
license = "MIT"
readme = "README.md"
keywords = ["serve", "http-server", "static-files", "http", "server"]
categories = ["command-line-utilities", "network-programming", "web-programming::http-server"]
edition = "2021"
[profile.release]
lto = true
opt-level = 'z'
codegen-units = 1
panic = 'abort'
[dependencies]
actix-web = "=4.0.0-rc.3"
actix-files = "=0.6.0-beta.16"
actix-multipart = "=0.4.0-beta.13"
actix-web-httpauth = "=0.6.0-beta.7"
maud = "0.23"
yansi = "0.5"
simplelog = "0.11"
percent-encoding = "2"
port_check = "0.1"
bytesize = "1"
nanoid = "0.4"
alphanumeric-sort = "1"
clap = { version = "3.0.7", features = ["derive", "cargo", "wrap_help"] }
clap_complete = "3.0.3"
chrono = "0.4"
chrono-humanize = "0.2"
serde = { version = "1", features = ["derive"] }
tar = "0.4"
futures = "0.3"
libflate = "1"
thiserror = "1"
anyhow = "1"
log = "0.4"
strum = "0.23"
strum_macros = "0.23"
sha2 = "0.10"
hex = "0.4"
zip = "0.5.11"
qrcodegen = "1"
mime = "0.3"
httparse = "1"
http = "0.2"
atty = "0.2"
rustls = { version = "0.20", optional = true }
rustls-pemfile = { version = "0.3", optional = true }
socket2 = "0.4"
get_if_addrs = "0.5"
[features]
default = ["tls"]
# This feature allows us to use rustls only on architectures supported by ring.
# See also https://github.com/briansmith/ring/issues/1182
# and https://github.com/briansmith/ring/issues/562
# and https://github.com/briansmith/ring/issues/1367
tls = ["rustls", "rustls-pemfile", "actix-web/rustls"]
[dev-dependencies]
assert_cmd = "2"
reqwest = { version = "0.11", features = ["blocking", "multipart", "rustls-tls"], default-features = false }
assert_fs = "1"
select = "0.5"
rstest = "0.12"
regex = "1"
pretty_assertions = "1.0"
url = "2"
predicates = "2"
[build-dependencies]
grass = "0.10"
# This needs to stay here at least until https://github.com/abonander/mime_guess/pull/66 is merged.
# Also see https://github.com/svenstaro/miniserve/issues/160
[patch.crates-io]
mime_guess = { git = "https://github.com/svenstaro/mime_guess.git" }