Skip to main content

load_file

Function load_file 

Source
pub fn load_file<P: AsRef<Path>>(path: P) -> Result<LoadedSpec>
Expand description

Load a single .unit.spec file

Returns the parsed SpecStruct with its source file information. Performs UTF-8 validation before YAML parsing.