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

#20 in #shuttle

Download history 4/week @ 2024-11-20 9/week @ 2024-11-27 34/week @ 2024-12-04 196/week @ 2024-12-11 25/week @ 2024-12-18 18/week @ 2025-01-01 20/week @ 2025-01-08 84/week @ 2025-01-15 53/week @ 2025-01-22 103/week @ 2025-01-29 34/week @ 2025-02-05 221/week @ 2025-02-12 21/week @ 2025-02-19 132/week @ 2025-02-26 17/week @ 2025-03-05

392 downloads per month
Used in 2 crates

Apache-2.0

11KB
115 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
~220K SLoC