pub fn save_config(dir: &Path, config: &Config) -> Void
Writes the local configuration to dir/config.toml.
dir/config.toml
Returns an error if the config cannot be serialized or written.