Skip to main content

declared_served_paths

Function declared_served_paths 

Source
pub fn declared_served_paths(
    parsed: &[ParsedFile],
    files: &BTreeMap<String, Vec<u8>>,
) -> BTreeMap<String, String>
Expand description

Every declared asset’s served path, keyed by asset_key — what the emitter writes as each .url: its fixed path (at "/favicon.ico", slice 2) or its content-hashed one (served_path). Only declarations whose file is in files appear (a missing one is bynk.asset.missing_file).