#router #generate-static

static-router

(For Axum) Provides a macro to generate a static file router that serves the directory dynamically in debug mode and statically embeds the files and routes in release mode

2 releases

0.1.5 Sep 7, 2022
0.1.4 Sep 6, 2022
0.1.0 Aug 23, 2022

#30 in #generate-static


Used in dexr

MIT/Apache

8KB
131 lines

Static Router

(For Axum)

Provides a macro to generate a static file router that serves the directory dynamically in debug mode and statically embeds the files and routes in release mode.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

To get started, see the static_router! macro.

Dependencies

~8–17MB
~223K SLoC