Skip to content

Commit

Permalink
test(publish): Show bad dev-dep stripping
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jul 30, 2024
1 parent 244a91e commit 5a3ead9
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions tests/testsuite/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,12 @@ fn publish_dev_dep_stripping() {
Package::new("optional-namespaced", "1.0.0")
.feature("cat", &[])
.publish();
Package::new("optional-renamed-dep-feature", "1.0.0")
.feature("cat", &[])
.publish();
Package::new("optional-renamed-namespaced", "1.0.0")
.feature("cat", &[])
.publish();
Package::new("build-only", "1.0.0")
.feature("cat", &[])
.publish();
Expand Down Expand Up @@ -1653,13 +1659,17 @@ fn publish_dev_dep_stripping() {
"target-normal-and-dev/cat",
"optional-dep-feature/cat",
"dep:optional-namespaced",
"dep:optional-renamed-dep-feature10",
"dep:optional-renamed-namespaced10",
]
[dependencies]
normal-only = { version = "1.0", features = ["cat"] }
normal-and-dev = { version = "1.0", features = ["cat"] }
optional-dep-feature = { version = "1.0", features = ["cat"], optional = true }
optional-namespaced = { version = "1.0", features = ["cat"], optional = true }
optional-renamed-dep-feature10 = { version = "1.0", features = ["cat"], optional = true, package = "optional-renamed-dep-feature" }
optional-renamed-namespaced10 = { version = "1.0", features = ["cat"], optional = true, package = "optional-renamed-namespaced" }
[build-dependencies]
build-only = { version = "1.0", features = ["cat"] }
Expand Down Expand Up @@ -1792,6 +1802,30 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
"target": null,
"version_req": "^1.0"
},
{
"default_features": true,
"explicit_name_in_toml": "optional-renamed-dep-feature10",
"features": [
"cat"
],
"kind": "normal",
"name": "optional-renamed-dep-feature",
"optional": true,
"target": null,
"version_req": "^1.0"
},
{
"default_features": true,
"explicit_name_in_toml": "optional-renamed-namespaced10",
"features": [
"cat"
],
"kind": "normal",
"name": "optional-renamed-namespaced",
"optional": true,
"target": null,
"version_req": "^1.0"
},
{
"default_features": true,
"features": [
Expand Down Expand Up @@ -1931,6 +1965,18 @@ version = "1.0"
features = ["cat"]
optional = true
[dependencies.optional-renamed-dep-feature10]
version = "1.0"
features = ["cat"]
optional = true
package = "optional-renamed-dep-feature"
[dependencies.optional-renamed-namespaced10]
version = "1.0"
features = ["cat"]
optional = true
package = "optional-renamed-namespaced"
[dev-dependencies.normal-and-dev]
version = "1.0"
features = ["cat"]
Expand All @@ -1949,6 +1995,8 @@ foo_feature = [
"target-normal-and-dev/cat",
"optional-dep-feature/cat",
"dep:optional-namespaced",
"dep:optional-renamed-dep-feature10",
"dep:optional-renamed-namespaced10",
]
[target."cfg(unix)".dependencies.target-normal-and-dev]
Expand Down

0 comments on commit 5a3ead9

Please sign in to comment.