FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    register_assets

    function · ferroui-base · v0.5.0

    fn register_assets(crate_name: &str, assets: &[(&str, &'static [u8])])
    

    Registers the assets embedded by a crate, addressable as <asset scheme>://<crate_name>/<path>.

    Paths are relative to the crate's asset root; a leading / is optional. Registering a path again replaces its content. Asset loaders that already cached the crate see the change after IAssetLoader::invalidate_assembly_cache.

    View source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.