axum_static_include

Crates.ioaxum_static_include
lib.rsaxum_static_include
version0.3.0
sourcesrc
created_at2023-08-25 03:38:59.608899
updated_at2023-08-25 04:00:40.841415
descriptionProc-Macro for embedding static fold router
homepage
repository
max_upload_size
id954284
size7,482
(dryBranch)

documentation

README

Axum Static Include

Embed files of fold in binary and create router.

Example

#[axum_static_include::static_serve("assert")]
fn assert_fold() -> axum::Router {}

#[tokio::main]
async fn main() {
    let asserts = assert_fold();
    let app = Router::new()
        .nest("/static", asserts)
    // ...
}
Commit count: 0

cargo fmt