Crates.io | axum_static_include |
lib.rs | axum_static_include |
version | 0.3.0 |
source | src |
created_at | 2023-08-25 03:38:59.608899 |
updated_at | 2023-08-25 04:00:40.841415 |
description | Proc-Macro for embedding static fold router |
homepage | |
repository | |
max_upload_size | |
id | 954284 |
size | 7,482 |
Embed files of fold in binary and create router.
#[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)
// ...
}