Skip to main content

outside_assets_dir_error

Function outside_assets_dir_error 

Source
pub fn outside_assets_dir_error(a: &AssetDecl) -> Option<CompileError>
Expand description

bynk.asset.outside_assets_dir for a, when its path is safe but does not lie inside the project’s assets folder ([bynk_project::assets::PROJECT_ASSETS_DIR]). Assets are public, so they come only from that folder, and a declaration can never publish .env or a source file by mistake (#1883, slice 1b).