Skip to content

Commit 653025f

Browse files
committed
Add test for package filtering with old edition
1 parent c1fa840 commit 653025f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

tests/testsuite/package.rs

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6500,3 +6500,48 @@ Caused by:
65006500
"#]])
65016501
.run();
65026502
}
6503+
6504+
#[cargo_test]
6505+
fn in_package_workspace_with_members_with_features_old() {
6506+
let p = project()
6507+
.file(
6508+
"Cargo.toml",
6509+
r#"
6510+
[package]
6511+
name = "foo"
6512+
version = "0.1.0"
6513+
edition = "2015"
6514+
[workspace]
6515+
members = ["li"]
6516+
"#,
6517+
)
6518+
.file("src/main.rs", "fn main() {}")
6519+
.file(
6520+
"li/Cargo.toml",
6521+
r#"
6522+
[package]
6523+
name = "li"
6524+
version = "0.0.1"
6525+
edition = "2015"
6526+
rust-version = "1.69"
6527+
description = "li"
6528+
license = "MIT"
6529+
"#,
6530+
)
6531+
.file("li/src/main.rs", "fn main() {}")
6532+
.build();
6533+
6534+
p.cargo("package -p li --no-verify")
6535+
.with_stderr_data(str![[r#"
6536+
[WARNING] manifest has no description, license, license-file, documentation, homepage or repository.
6537+
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
6538+
[PACKAGING] foo v0.1.0 ([ROOT]/foo)
6539+
[PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6540+
[WARNING] manifest has no documentation, homepage or repository.
6541+
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
6542+
[PACKAGING] li v0.0.1 ([ROOT]/foo/li)
6543+
[PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6544+
6545+
"#]])
6546+
.run();
6547+
}

0 commit comments

Comments
 (0)