2 releases
0.1.5 | Sep 7, 2022 |
---|---|
0.1.4 | Sep 6, 2022 |
0.1.0 |
|
#13 in #serves
39 downloads per month
Used in dexr
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–18MB
~229K SLoC