Skip to main content

CompiledAssets

Type Alias CompiledAssets 

Source
pub type CompiledAssets = BTreeMap<String, Vec<(String, Vec<u8>)>>;
Expand description

A component’s asset content, keyed by component id, each entry the authored relative path and the file’s bytes.

Exists because compile is the only place that holds this: the compiler is sans-IO, and a dispatch has no component directory to re-read. See write_assets.

Aliased Type§

pub struct CompiledAssets { /* private fields */ }