Crates.io | shuttle-static-folder |
lib.rs | shuttle-static-folder |
version | 0.28.0 |
source | src |
created_at | 2022-12-01 07:20:51.543882 |
updated_at | 2023-10-04 07:34:19.562555 |
description | Plugin to get a static folder at runtime on shuttle |
homepage | |
repository | |
max_upload_size | |
id | 727413 |
size | 3,078 |
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,
) -> __ { ... }