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

Download history 37/week @ 2024-01-02 51/week @ 2024-01-09 47/week @ 2024-01-16 78/week @ 2024-01-23 28/week @ 2024-01-30 79/week @ 2024-02-06 33/week @ 2024-02-13 162/week @ 2024-02-20 181/week @ 2024-02-27 367/week @ 2024-03-05 201/week @ 2024-03-12 173/week @ 2024-03-19 125/week @ 2024-03-26 117/week @ 2024-04-02 83/week @ 2024-04-09 213/week @ 2024-04-16

571 downloads per month

MIT license

7KB
104 lines

axum_static

GitHub license

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