in license-tool/src/main.rs [203:211]
fn parse_licenses_file<P>(licenses_file: P) -> Result<HashMap<String, PackageLicense>>
where
P: AsRef<Path>,
{
let licenses_file = licenses_file.as_ref();
Ok(toml::from_slice(&fs::read(&licenses_file).context(
format!("Failed to read file '{}'", licenses_file.display()),
)?)?)
}