Skip to content

Commit 9e730ec

Browse files
committed
test(publish): Show bad dev-dep stripping
See #14321
1 parent 691c5a2 commit 9e730ec

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/testsuite/publish.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,9 @@ fn publish_dev_dep_stripping() {
16091609
Package::new("optional-namespaced", "1.0.0")
16101610
.feature("cat", &[])
16111611
.publish();
1612+
Package::new("optional-renamed-namespaced", "1.0.0")
1613+
.feature("cat", &[])
1614+
.publish();
16121615
Package::new("build-only", "1.0.0")
16131616
.feature("cat", &[])
16141617
.publish();
@@ -1652,13 +1655,15 @@ fn publish_dev_dep_stripping() {
16521655
"target-normal-and-dev/cat",
16531656
"optional-dep-feature/cat",
16541657
"dep:optional-namespaced",
1658+
"dep:optional-renamed-namespaced10",
16551659
]
16561660
16571661
[dependencies]
16581662
normal-only = { version = "1.0", features = ["cat"] }
16591663
normal-and-dev = { version = "1.0", features = ["cat"] }
16601664
optional-dep-feature = { version = "1.0", features = ["cat"], optional = true }
16611665
optional-namespaced = { version = "1.0", features = ["cat"], optional = true }
1666+
optional-renamed-namespaced10 = { version = "1.0", features = ["cat"], optional = true, package = "optional-renamed-namespaced" }
16621667
16631668
[build-dependencies]
16641669
build-only = { version = "1.0", features = ["cat"] }
@@ -1770,6 +1775,18 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
17701775
"target": null,
17711776
"version_req": "^1.0"
17721777
},
1778+
{
1779+
"default_features": true,
1780+
"explicit_name_in_toml": "optional-renamed-namespaced10",
1781+
"features": [
1782+
"cat"
1783+
],
1784+
"kind": "normal",
1785+
"name": "optional-renamed-namespaced",
1786+
"optional": true,
1787+
"target": null,
1788+
"version_req": "^1.0"
1789+
},
17731790
{
17741791
"default_features": true,
17751792
"features": [
@@ -1909,6 +1926,12 @@ version = "1.0"
19091926
features = ["cat"]
19101927
optional = true
19111928
1929+
[dependencies.optional-renamed-namespaced10]
1930+
version = "1.0"
1931+
features = ["cat"]
1932+
optional = true
1933+
package = "optional-renamed-namespaced"
1934+
19121935
[dev-dependencies.normal-and-dev]
19131936
version = "1.0"
19141937
features = ["cat"]
@@ -1927,6 +1950,7 @@ foo_feature = [
19271950
"target-normal-and-dev/cat",
19281951
"optional-dep-feature/cat",
19291952
"dep:optional-namespaced",
1953+
"dep:optional-renamed-namespaced10",
19301954
]
19311955
19321956
[target."cfg(unix)".dependencies.target-normal-and-dev]

0 commit comments

Comments
 (0)