fn check_metadata(pkg: &Package, config: &Config) -> CargoResult<()>