Skip to main content

read_generated_platform_assets

Function read_generated_platform_assets 

Source
pub fn read_generated_platform_assets(
    generated: &GeneratedAssetSet,
    platform: GeneratedAssetPlatform,
) -> Result<Vec<(Utf8PathBuf, Vec<u8>)>, AssetPipelineError>
Expand description

Read one platform subtree from a complete generated set.

Returned paths are relative to the platform directory. Every path component is checked again immediately before reading, so a modified cache cannot redirect packaging through a symlink.

ยงErrors

Returns a typed error when the cache is incomplete, unsafe, or unreadable.