Skip to main content

extract_dependencies

Function extract_dependencies 

Source
pub fn extract_dependencies(asset_type: &str, bytes: &[u8]) -> Vec<AssetUUID>
Expand description

Extracts the direct asset dependencies encoded in bytes, dispatching on the canonical asset_type name.

Returns a deduplicated, sorted list so the index builder stays byte-deterministic. Unknown or not-yet-handled types return an empty list — this is the extensible seam (see the module docs). A decode failure on a handled type also yields an empty list (logged at warn): a single corrupt asset must never abort the whole index build.