21 breaking releases
0.28.0 | Oct 4, 2023 |
---|---|
0.26.0 | Sep 18, 2023 |
0.22.0 | Jul 31, 2023 |
0.13.1 | Mar 28, 2023 |
0.8.0 | Dec 12, 2022 |
#326 in Asynchronous
942 downloads per month
Used in 2 crates
4KB
Shuttle Static Folder
This plugin is deprecated.
Your binaries now execute in the workspace root, meaning paths can be declared with strings or paths as per usual.
Using the macro still works for backward compatibility:
#[shuttle_runtime::main]
async fn app(
#[shuttle_static_folder::StaticFolder] static_folder: PathBuf,
) -> __ { ... }
#[shuttle_runtime::main]
async fn app(
#[shuttle_static_folder::StaticFolder(folder = "public")] public_folder: PathBuf,
) -> __ { ... }
Dependencies
~6–13MB
~192K SLoC