Skip to main content

Module source

Module source 

Source
Expand description

The AssetSource trait and its three built-in implementations.

Downstream tools compose sources via crate::AssetsBuilder; implementing AssetSource manually is supported for exotic cases (in-process archives, HTTP overlays, etc.) but not required.

Structs§

DirectorySource
Layer backed by a directory on the host filesystem.
EmbeddedSource
Layer backed by a rust-embed type. Zero-sized — all storage lives in the embed’s generated static tables.
MemorySource
Layer backed by an in-memory map. Ideal for test fixtures and scaffolder scratch space.

Traits§

AssetSource
A single layer of the overlay filesystem.