shuttle-static-folder

Crates.ioshuttle-static-folder
lib.rsshuttle-static-folder
version0.28.0
sourcesrc
created_at2022-12-01 07:20:51.543882
updated_at2023-10-04 07:34:19.562555
descriptionPlugin to get a static folder at runtime on shuttle
homepage
repository
max_upload_size
id727413
size3,078
Release (github:shuttle-hq:release)

documentation

README

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,
) -> __ { ... }
Commit count: 0

cargo fmt