Skip to main content

outside_embeds_dir_error

Function outside_embeds_dir_error 

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

bynk.embed.outside_embeds_dir for e, when its path is safe but does not lie inside the project’s embeds folder ([bynk_project::assets::PROJECT_EMBEDS_DIR]). An embed is compiled into the deployed code, so it comes only from that folder, and a declaration can never pull .env or a source file into a bundle by mistake.