Skip to main content

with_embed_assets

Function with_embed_assets 

Source
pub fn with_embed_assets<R>(f: impl FnOnce() -> R) -> R
Expand description

Run f with the embedded-assets Serve lowering enabled (B4), restoring the previous mode afterwards (panic-safe). largo build wraps the web-project compile in this so the generated Serve consults logos_assets.