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

#18 in #shuttle

40 downloads per month
Used in 2 crates

Apache-2.0

23KB
391 lines

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

~8–14MB
~223K SLoC