Skip to main content

load_file

Function load_file 

Source
pub fn load_file(path: &Path) -> Result<&'static MachineEntry, FileError>
Expand description

A machine from a machine file (TOML, or JSON by its extension), checked in full against the tables the registered machines have; see docs/machine-files.md. Front ends take it like an entry of MACHINES. An error names the line in a TOML file; in a JSON file the key alone.