axum_static_include 0.3.0

Proc-Macro for embedding static fold router
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Axum Static Include


Embed files of fold in binary and create router.

## Example

```rust
#[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)
    // ...
}
```