#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

#415 in Filesystem

Download history 6/week @ 2023-12-04 17/week @ 2023-12-11 27/week @ 2023-12-18 8/week @ 2023-12-25 25/week @ 2024-01-08 19/week @ 2024-01-15 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

922 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

~7–14MB
~198K SLoC