Skip to main content

unsafe_path_error

Function unsafe_path_error 

Source
pub fn unsafe_path_error(e: &EmbedDecl) -> Option<CompileError>
Expand description

bynk.embed.unsafe_path for e, when its path is empty, absolute or contains a .. segment. The same rule as an asset’s path (crate::assets::unsafe_asset_path_reason): the path is joined onto the project root to find the file, so nothing outside the project may be named.