@@ -1598,108 +1598,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
1598
1598
}
1599
1599
1600
1600
#[ cargo_test]
1601
- fn publish_dev_dep_no_version ( ) {
1602
- let registry = RegistryBuilder :: new ( ) . http_api ( ) . http_index ( ) . build ( ) ;
1603
-
1604
- let p = project ( )
1605
- . file (
1606
- "Cargo.toml" ,
1607
- r#"
1608
- [package]
1609
- name = "foo"
1610
- version = "0.1.0"
1611
- edition = "2015"
1612
- authors = []
1613
- license = "MIT"
1614
- description = "foo"
1615
- documentation = "foo"
1616
- homepage = "foo"
1617
- repository = "foo"
1618
-
1619
- [dev-dependencies]
1620
- bar = { path = "bar" }
1621
- "# ,
1622
- )
1623
- . file ( "src/lib.rs" , "" )
1624
- . file ( "bar/Cargo.toml" , & basic_manifest ( "bar" , "0.0.1" ) )
1625
- . file ( "bar/src/lib.rs" , "" )
1626
- . build ( ) ;
1627
-
1628
- p. cargo ( "publish --no-verify" )
1629
- . replace_crates_io ( registry. index_url ( ) )
1630
- . with_stderr_data ( str![ [ r#"
1631
- [UPDATING] crates.io index
1632
- [PACKAGING] foo v0.1.0 ([ROOT]/foo)
1633
- [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
1634
- [UPLOADING] foo v0.1.0 ([ROOT]/foo)
1635
- [UPLOADED] foo v0.1.0 to registry `crates-io`
1636
- [NOTE] waiting for `foo v0.1.0` to be available at registry `crates-io`.
1637
- You may press ctrl-c to skip waiting; the crate should be available shortly.
1638
- [PUBLISHED] foo v0.1.0 at registry `crates-io`
1639
-
1640
- "# ] ] )
1641
- . run ( ) ;
1642
-
1643
- publish:: validate_upload_with_contents (
1644
- r#"
1645
- {
1646
- "authors": [],
1647
- "badges": {},
1648
- "categories": [],
1649
- "deps": [],
1650
- "description": "foo",
1651
- "documentation": "foo",
1652
- "features": {},
1653
- "homepage": "foo",
1654
- "keywords": [],
1655
- "license": "MIT",
1656
- "license_file": null,
1657
- "links": null,
1658
- "name": "foo",
1659
- "readme": null,
1660
- "readme_file": null,
1661
- "repository": "foo",
1662
- "rust_version": null,
1663
- "vers": "0.1.0"
1664
- }
1665
- "# ,
1666
- "foo-0.1.0.crate" ,
1667
- & [ "Cargo.toml" , "Cargo.toml.orig" , "src/lib.rs" ] ,
1668
- & [ (
1669
- "Cargo.toml" ,
1670
- & format ! (
1671
- r#"{}
1672
- [package]
1673
- edition = "2015"
1674
- name = "foo"
1675
- version = "0.1.0"
1676
- authors = []
1677
- build = false
1678
- autobins = false
1679
- autoexamples = false
1680
- autotests = false
1681
- autobenches = false
1682
- description = "foo"
1683
- homepage = "foo"
1684
- documentation = "foo"
1685
- readme = false
1686
- license = "MIT"
1687
- repository = "foo"
1688
-
1689
- [lib]
1690
- name = "foo"
1691
- path = "src/lib.rs"
1692
-
1693
- [dev-dependencies]
1694
- "# ,
1695
- cargo:: core:: manifest:: MANIFEST_PREAMBLE
1696
- ) ,
1697
- ) ] ,
1698
- ) ;
1699
- }
1700
-
1701
- #[ cargo_test]
1702
- fn publish_with_feature_point_diff_kinds_dep ( ) {
1601
+ fn publish_dev_dep_stripping ( ) {
1703
1602
let registry = RegistryBuilder :: new ( ) . http_api ( ) . http_index ( ) . build ( ) ;
1704
1603
Package :: new ( "normal-only" , "1.0.0" )
1705
1604
. feature ( "cat" , & [ ] )
@@ -2005,6 +1904,7 @@ features = ["cat"]
2005
1904
) ] ,
2006
1905
) ;
2007
1906
}
1907
+
2008
1908
#[ cargo_test]
2009
1909
fn credentials_ambiguous_filename ( ) {
2010
1910
// `publish` generally requires a remote registry
0 commit comments