Commit dd5e47a
committed
Auto merge of #13085 - ehuss:registry-support-more, r=epage
Add more options to registry test support.
This adds a few things that are missing in the registry test support code. These aren't immediately necessary, since no tests rely on them. However, I wrote it for something else that I ended up not needing, but I think it is still helpful for future work.
The additions are:
- Ability to specify `default-features=false` for a registry dependency.
- Include binary dependencies in the index for the `cargo publish` HTTTP server (current `cargo publish` tests use `file:///` upload, and don't verify the index).
- Include `rust-version` in the `cargo publish` HTTP server (current `cargo publish` tests don't verify the index).
- Include the `features=[…]` field for dependencies in the published `Cargo.toml` (cargo doesn't read features from `Cargo.toml`, it only uses the registry, but it is probably best to keep it in sync).
- Include the `package="…"` field for dependencies (for renamed dependencies) in the published `Cargo.toml` (similarly, cargo only uses the index, but it is probably good to keep in sync).1 file changed
+29
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| 560 | + | |
560 | 561 | | |
561 | 562 | | |
562 | 563 | | |
| |||
1161 | 1162 | | |
1162 | 1163 | | |
1163 | 1164 | | |
1164 | | - | |
| 1165 | + | |
1165 | 1166 | | |
1166 | 1167 | | |
1167 | 1168 | | |
1168 | 1169 | | |
1169 | 1170 | | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1170 | 1174 | | |
1171 | 1175 | | |
1172 | 1176 | | |
| |||
1179 | 1183 | | |
1180 | 1184 | | |
1181 | 1185 | | |
1182 | | - | |
| 1186 | + | |
1183 | 1187 | | |
1184 | 1188 | | |
1185 | 1189 | | |
| |||
1415 | 1419 | | |
1416 | 1420 | | |
1417 | 1421 | | |
1418 | | - | |
| 1422 | + | |
1419 | 1423 | | |
1420 | 1424 | | |
1421 | 1425 | | |
| |||
1580 | 1584 | | |
1581 | 1585 | | |
1582 | 1586 | | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
1583 | 1602 | | |
1584 | 1603 | | |
1585 | 1604 | | |
| |||
1658 | 1677 | | |
1659 | 1678 | | |
1660 | 1679 | | |
| 1680 | + | |
1661 | 1681 | | |
1662 | 1682 | | |
1663 | 1683 | | |
| |||
1710 | 1730 | | |
1711 | 1731 | | |
1712 | 1732 | | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
1713 | 1739 | | |
0 commit comments