use crate::common::*; const PATH: &str = "bin/gen/config.yaml"; #[derive(Deserialize)] pub(crate) struct Config { pub(crate) changelog: BTreeMap, pub(crate) examples: Vec, pub(crate) packages: Vec, } impl Config { #[throws] pub(crate) fn load(root: &Path) -> Config { let file = File::open(root.join(PATH))?; serde_yaml::from_reader(file)? } }