mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Validate uploaded Cargo.toml contents.
This commit is contained in:
parent
d709c10d35
commit
e4345b2e8e
@ -1217,7 +1217,7 @@ fn publish_dev_dep_no_version() {
|
||||
)
|
||||
.run();
|
||||
|
||||
publish::validate_upload(
|
||||
publish::validate_upload_with_contents(
|
||||
r#"
|
||||
{
|
||||
"authors": [],
|
||||
@ -1241,5 +1241,21 @@ fn publish_dev_dep_no_version() {
|
||||
"#,
|
||||
"foo-0.1.0.crate",
|
||||
&["Cargo.toml", "Cargo.toml.orig", "src/lib.rs"],
|
||||
&[(
|
||||
"Cargo.toml",
|
||||
r#"[..]
|
||||
[package]
|
||||
name = "foo"
|
||||
version = "0.1.0"
|
||||
authors = []
|
||||
description = "foo"
|
||||
homepage = "foo"
|
||||
documentation = "foo"
|
||||
license = "MIT"
|
||||
repository = "foo"
|
||||
|
||||
[dev-dependencies]
|
||||
"#,
|
||||
)],
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user