Skip to main content

load_from_text

Function load_from_text 

Source
pub(crate) fn load_from_text(
    path: PathBuf,
    raw: &str,
) -> Result<LoadedConfig, WorkspaceError>
Expand description

Load + validate raw forge.toml text, with the path its errors name. The settings save validates a candidate through here before it replaces the file, so the file a save writes is one a boot would accept.