@@ -1609,6 +1609,9 @@ fn publish_dev_dep_stripping() {
1609
1609
Package :: new ( "optional-namespaced" , "1.0.0" )
1610
1610
. feature ( "cat" , & [ ] )
1611
1611
. publish ( ) ;
1612
+ Package :: new ( "optional-renamed-dep-feature" , "1.0.0" )
1613
+ . feature ( "cat" , & [ ] )
1614
+ . publish ( ) ;
1612
1615
Package :: new ( "optional-renamed-namespaced" , "1.0.0" )
1613
1616
. feature ( "cat" , & [ ] )
1614
1617
. publish ( ) ;
@@ -1648,13 +1651,15 @@ fn publish_dev_dep_stripping() {
1648
1651
"normal-only/cat",
1649
1652
"build-only/cat",
1650
1653
"dev-only/cat",
1654
+ "renamed-dev-only01/cat",
1651
1655
"normal-and-dev/cat",
1652
1656
"target-normal-only/cat",
1653
1657
"target-build-only/cat",
1654
1658
"target-dev-only/cat",
1655
1659
"target-normal-and-dev/cat",
1656
1660
"optional-dep-feature/cat",
1657
1661
"dep:optional-namespaced",
1662
+ "optional-renamed-dep-feature10/cat",
1658
1663
"dep:optional-renamed-namespaced10",
1659
1664
]
1660
1665
@@ -1663,13 +1668,15 @@ fn publish_dev_dep_stripping() {
1663
1668
normal-and-dev = { version = "1.0", features = ["cat"] }
1664
1669
optional-dep-feature = { version = "1.0", features = ["cat"], optional = true }
1665
1670
optional-namespaced = { version = "1.0", features = ["cat"], optional = true }
1671
+ optional-renamed-dep-feature10 = { version = "1.0", features = ["cat"], optional = true, package = "optional-renamed-dep-feature" }
1666
1672
optional-renamed-namespaced10 = { version = "1.0", features = ["cat"], optional = true, package = "optional-renamed-namespaced" }
1667
1673
1668
1674
[build-dependencies]
1669
1675
build-only = { version = "1.0", features = ["cat"] }
1670
1676
1671
1677
[dev-dependencies]
1672
1678
dev-only = { path = "../dev-only", features = ["cat"] }
1679
+ renamed-dev-only01 = { path = "../renamed-dev-only", features = ["cat"], package = "renamed-dev-only" }
1673
1680
normal-and-dev = { version = "1.0", features = ["cat"] }
1674
1681
1675
1682
[target.'cfg(unix)'.dependencies]
@@ -1705,6 +1712,26 @@ fn publish_dev_dep_stripping() {
1705
1712
pub fn cat() {}
1706
1713
"# ,
1707
1714
)
1715
+ . file (
1716
+ "renamed-dev-only/Cargo.toml" ,
1717
+ r#"
1718
+ [package]
1719
+ name = "renamed-dev-only"
1720
+ version = "0.1.0"
1721
+ edition = "2015"
1722
+ authors = []
1723
+
1724
+ [features]
1725
+ cat = []
1726
+ "# ,
1727
+ )
1728
+ . file (
1729
+ "renamed-dev-only/src/lib.rs" ,
1730
+ r#"
1731
+ #[cfg(feature = "cat")]
1732
+ pub fn cat() {}
1733
+ "# ,
1734
+ )
1708
1735
. build ( ) ;
1709
1736
1710
1737
p. cargo ( "publish --no-verify" )
@@ -1775,6 +1802,18 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
1775
1802
"target": null,
1776
1803
"version_req": "^1.0"
1777
1804
},
1805
+ {
1806
+ "default_features": true,
1807
+ "explicit_name_in_toml": "optional-renamed-dep-feature10",
1808
+ "features": [
1809
+ "cat"
1810
+ ],
1811
+ "kind": "normal",
1812
+ "name": "optional-renamed-dep-feature",
1813
+ "optional": true,
1814
+ "target": null,
1815
+ "version_req": "^1.0"
1816
+ },
1778
1817
{
1779
1818
"default_features": true,
1780
1819
"explicit_name_in_toml": "optional-renamed-namespaced10",
@@ -1866,6 +1905,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
1866
1905
"target-normal-and-dev/cat",
1867
1906
"optional-dep-feature/cat",
1868
1907
"dep:optional-namespaced",
1908
+ "optional-renamed-dep-feature10/cat",
1869
1909
"dep:optional-renamed-namespaced10"
1870
1910
]
1871
1911
},
@@ -1927,6 +1967,12 @@ version = "1.0"
1927
1967
features = ["cat"]
1928
1968
optional = true
1929
1969
1970
+ [dependencies.optional-renamed-dep-feature10]
1971
+ version = "1.0"
1972
+ features = ["cat"]
1973
+ optional = true
1974
+ package = "optional-renamed-dep-feature"
1975
+
1930
1976
[dependencies.optional-renamed-namespaced10]
1931
1977
version = "1.0"
1932
1978
features = ["cat"]
@@ -1951,6 +1997,7 @@ foo_feature = [
1951
1997
"target-normal-and-dev/cat",
1952
1998
"optional-dep-feature/cat",
1953
1999
"dep:optional-namespaced",
2000
+ "optional-renamed-dep-feature10/cat",
1954
2001
"dep:optional-renamed-namespaced10",
1955
2002
]
1956
2003
0 commit comments