N4KJX6V6VGUCAA6AV3643E75ISVAI5WCG5JYSKBW4WI2UTHG6V3QC
IUNEILYQVZBJQDWXI6ZDBZ4CTSBAJXNCFBVVJQPVF4R2HU6WER6QC
QXBGLHCP7Z6HO7ZWGNSSC3BEI7IX4QEE5U563UACDCPRAB6MDFQAC
SY4Q66QFFEQ2BPMJ5G7MSZPX52HM6QTHZXJWL2VVFB2JMWZQLJBQC
TYK5XDMD7PSITQFFPHNLD3462EODC3FQIV5DCW5KA527FXIW7CTQC
5GJRHBKCSWISBPJOAXWMXY3LMMD5GFOEHM3AEUKI5J7D4M3XM5GQC
3JRIW3OEB5GC4QRICM5JRRRMKTQPM6VMBC5YTVPIA6ERWHNAIORQC
}
impl Config {
pub fn parse() -> Result<Self, Box<dyn Error>> {
let config_path = directories::BaseDirs::new()
.and_then(|bd| Some(bd.config_dir().to_owned()))
.unwrap_or(PathBuf::from("."))
.join("nfp")
.join("config.toml");
let mut config_str = String::new();
fs::File::open(config_path)?.read_to_string(&mut config_str)?;
Ok(toml::from_str(&config_str)?)
}
confy = "^0.4.0"