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§
- Directory
Source - Layer backed by a directory on the host filesystem.
- Embedded
Source - Layer backed by a
rust-embedtype. Zero-sized — all storage lives in the embed’s generated static tables. - Memory
Source - Layer backed by an in-memory map. Ideal for test fixtures and scaffolder scratch space.
Traits§
- Asset
Source - A single layer of the overlay filesystem.