4 releases (2 breaking)
Uses new Rust 2024
| 0.3.0 | Apr 9, 2026 |
|---|---|
| 0.2.1 | Dec 27, 2025 |
| 0.2.0 | Mar 12, 2025 |
| 0.1.0 | Dec 29, 2023 |
#5 in #file-serving
217 downloads per month
Used in xitca-web
105KB
2K
SLoC
an async static file serving crate
use http::Request;
use http_file::ServeDir;
async fn serve(req: &Request<()>) {
let dir = ServeDir::new("sample");
let res = dir.serve(&req).await;
}
Requirement
Dependencies
~2.4–5MB
~84K SLoC