#shuttle #static #shuttle-service #plugin #deprecated #run-time #static-folder

shuttle-static-folder

Plugin to get a static folder at runtime on shuttle

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

#12 in #shuttle

Download history 2/week @ 2024-01-22 19/week @ 2024-02-12 33/week @ 2024-02-19 121/week @ 2024-02-26 42/week @ 2024-03-04 705/week @ 2024-03-11 52/week @ 2024-03-18 18/week @ 2024-03-25 166/week @ 2024-04-01 28/week @ 2024-04-08 39/week @ 2024-04-15 47/week @ 2024-04-22 34/week @ 2024-04-29 26/week @ 2024-05-06

151 downloads per month
Used in 2 crates

Apache-2.0

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
~196K SLoC