mirror of
https://github.com/svenstaro/miniserve
synced 2025-04-29 16:27:18 +08:00
87 lines
2.6 KiB
TOML
87 lines
2.6 KiB
TOML
[package]
|
|
name = "miniserve"
|
|
version = "0.29.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 = "2024"
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
lto = true
|
|
opt-level = 'z'
|
|
panic = 'abort'
|
|
strip = true
|
|
|
|
[dependencies]
|
|
actix-files = "0.6.5"
|
|
actix-multipart = "0.7"
|
|
actix-web = { version = "4", features = ["macros", "compress-brotli", "compress-gzip", "compress-zstd"], default-features = false }
|
|
actix-web-httpauth = "0.8"
|
|
alphanumeric-sort = "1"
|
|
anyhow = "1"
|
|
async-walkdir = "2.1.0"
|
|
bytesize = "2"
|
|
chrono = "0.4"
|
|
chrono-humanize = "0.2"
|
|
clap = { version = "4", features = ["derive", "cargo", "wrap_help", "deprecated", "env"] }
|
|
clap_complete = "4"
|
|
clap_mangen = "0.2"
|
|
colored = "3"
|
|
comrak = { version = "0.38", default-features = false }
|
|
dav-server = { version = "0.8", features = ["actix-compat"] }
|
|
fast_qr = { version = "0.13", features = ["svg"] }
|
|
futures = "0.3"
|
|
grass = { version = "0.13", features = ["macro"], default-features = false }
|
|
hex = "0.4"
|
|
httparse = "1"
|
|
if-addrs = "0.13"
|
|
libflate = "2"
|
|
log = "0.4"
|
|
maud = "0.27"
|
|
mime = "0.3"
|
|
nanoid = "0.4"
|
|
percent-encoding = "2"
|
|
port_check = "0.2"
|
|
regex = "1"
|
|
rustls = { version = "0.23", features = ["ring"], optional = true, default-features = false }
|
|
rustls-pemfile = { version = "2", optional = true }
|
|
serde = { version = "1", features = ["derive"] }
|
|
sha2 = "0.10"
|
|
simplelog = "0.12"
|
|
socket2 = "0.5"
|
|
strum = { version = "0.27", features = ["derive"] }
|
|
tar = "0.4"
|
|
tempfile = "3.17.0"
|
|
thiserror = "2"
|
|
tokio = { version = "1.42.0", features = ["fs", "macros"] }
|
|
zip = { version = "2", default-features = false }
|
|
|
|
[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-0_23"]
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "2"
|
|
assert_fs = "1"
|
|
predicates = "3"
|
|
pretty_assertions = "1.2"
|
|
regex = "1"
|
|
reqwest = { version = "0.12", features = ["blocking", "multipart", "json", "rustls-tls"], default-features = false }
|
|
reqwest_dav = "0.2"
|
|
rstest = "0.25"
|
|
select = "0.6"
|
|
url = "2"
|
|
|
|
[target.'cfg(not(windows))'.dev-dependencies]
|
|
# fake_tty does not support Windows for now
|
|
fake-tty = "0.3.1"
|