11 releases (stable)
new 1.7.0 | Apr 24, 2024 |
---|---|
1.6.0 | Apr 24, 2024 |
1.2.3 | Oct 24, 2023 |
1.2.2 | Jul 16, 2023 |
0.1.2 | Jan 22, 2023 |
#1002 in HTTP server
571 downloads per month
7KB
104 lines
axum_static
static file serving for axum
Version
You must use axum_static that matches your axum version.
- axum 0.7 => axum_static 1.7
Usage
cargo add axum_static
let app = Router::new()
.nest("/", axum_static::static_router("public"))
Dependencies
~8.5MB
~153K SLoC