Error on invalid dependency naming

This commit is contained in:
Matt Stavola 2020-04-08 23:15:33 -07:00
parent fd25241d3e
commit 420608bc70
No known key found for this signature in database
GPG Key ID: C28E1EDF448C32ED

View File

@ -1082,6 +1082,7 @@ impl TomlManifest {
};
for (n, v) in dependencies.iter() {
let dep = v.to_dependency(n, cx, kind)?;
validate_package_name(dep.name_in_toml().as_str(), "dependency name", "")?;
cx.deps.push(dep);
}