1[package]
2name = "miniserve"
3version = "0.18.0"
4description = "For when you really just want to serve some files over HTTP right now!"
5authors = ["Sven-Hendrik Haase <svenstaro@gmail.com>", "Boastful Squirrel <boastful.squirrel@gmail.com>"]
6repository = "https://github.com/svenstaro/miniserve"
7license = "MIT"
8readme = "README.md"
9keywords = ["serve", "http-server", "static-files", "http", "server"]
10categories = ["command-line-utilities", "network-programming", "web-programming::http-server"]
11edition = "2021"
12
13[profile.release]
14lto = true
15opt-level = 'z'
16codegen-units = 1
17panic = 'abort'
18
19[dependencies]
20actix-web = "4.0.0-beta.8"
21actix-files = "0.6.0-beta.6"
22actix-multipart = "0.4.0-beta.5"
23actix-web-httpauth = "0.6.0-beta.2"
24maud = "0.22"
25yansi = "0.5"
26simplelog = "0.10"
27percent-encoding = "2"
28port_check = "0.1"
29bytesize = "1"
30nanoid = "0.4"
31alphanumeric-sort = "1"
32clap = { version = "3.0.0-beta.5", features = ["wrap_help"] }
33clap_generate = "3.0.0-beta.5"
34chrono = "0.4"
35chrono-humanize = "0.2"
36serde = { version = "1", features = ["derive"] }
37tar = "0.4"
38futures = "0.3"
39libflate = "1"
40thiserror = "1"
41anyhow = "1"
42log = "0.4"
43strum = "0.22"
44strum_macros = "0.22"
45sha2 = "0.9"
46hex = "0.4"
47zip = "0.5.11"
48qrcodegen = "1"
49mime = "0.3"
50httparse = "1"
51http = "0.2"
52atty = "0.2"
53rustls = { version = "0.19", optional = true }
54socket2 = "0.4"
55get_if_addrs = "0.5"
56
57[features]
58default = ["tls"]
59# This feature allows us to use rustls only on architectures supported by ring.
60# See also https://github.com/briansmith/ring/issues/1182
61# and https://github.com/briansmith/ring/issues/562
62# and https://github.com/briansmith/ring/issues/1367
63tls = ["rustls", "actix-web/rustls"]
64
65[dev-dependencies]
66assert_cmd = "2"
67reqwest = { version = "0.11", features = ["blocking", "multipart", "rustls-tls"], default-features = false }
68assert_fs = "1"
69select = "0.5"
70rstest = "0.11"
71regex = "1"
72pretty_assertions = "1.0"
73url = "2"
74predicates = "2"
75
76[build-dependencies]
77grass = "0.10"
78
79# This needs to stay here at least until https://github.com/abonander/mime_guess/pull/66 is merged.
80# Also see https://github.com/svenstaro/miniserve/issues/160
81[patch.crates-io]
82mime_guess = { git = "https://github.com/svenstaro/mime_guess.git" }
83