Skip to content

Commit 420608b

Browse files
committed
Error on invalid dependency naming
1 parent fd25241 commit 420608b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cargo/util/toml/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,7 @@ impl TomlManifest {
10821082
};
10831083
for (n, v) in dependencies.iter() {
10841084
let dep = v.to_dependency(n, cx, kind)?;
1085+
validate_package_name(dep.name_in_toml().as_str(), "dependency name", "")?;
10851086
cx.deps.push(dep);
10861087
}
10871088

0 commit comments

Comments
 (0)