Skip to main content

generate_embed_code

Function generate_embed_code 

Source
pub fn generate_embed_code(recipes_root: &Path) -> Result<String>
Expand description

Walk recipes_root and return the Rust source for an crate::EmbeddedDir literal: a sorted &[(rel-path, include_bytes!(abs-path))]. A missing or empty directory yields an empty slice.