Skip to main content

load_config

Function load_config 

Source
pub fn load_config(dir: &Path) -> Res<Config>
Expand description

Loads the local configuration from dir/config.toml, returning the default if it is absent.

ยงErrors

Returns an error if the config file exists but cannot be read or parsed.