|
1 | 1 | # Changelog
|
2 | 2 |
|
3 | 3 | ## Cargo 1.68 (2023-03-09)
|
4 |
| -[f6e737b1...HEAD](https://github.com/rust-lang/cargo/compare/f6e737b1...HEAD) |
| 4 | +[f6e737b1...rust-1.68.0](https://github.com/rust-lang/cargo/compare/f6e737b1...rust-1.68.0) |
5 | 5 |
|
6 | 6 | ### Added
|
7 | 7 |
|
8 |
| -- Cargo's file locking mechanism now supports Solaris by using fcntl. |
9 |
| - [#11439](https://github.com/rust-lang/cargo/pull/11439) |
10 |
| - [#11474](https://github.com/rust-lang/cargo/pull/11474) |
11 |
| -- `home` crate is now a subcrate in `rust-lang/cargo` repository. Welcome! |
| 8 | +- 🎉 The new "sparse" protocol has been stabilized. |
| 9 | + It should provide a significant performance improvement when accessing crates.io. |
| 10 | + ([RFC 2789](https://github.com/rust-lang/rfcs/blob/master/text/2789-sparse-index.md)) |
| 11 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#registry-protocols)) |
| 12 | + [#11224](https://github.com/rust-lang/cargo/pull/11224) |
| 13 | + [#11480](https://github.com/rust-lang/cargo/pull/11480) |
| 14 | +- 🎉 `home` crate is now a subcrate in `rust-lang/cargo` repository. Welcome! |
12 | 15 | [#11359](https://github.com/rust-lang/cargo/pull/11359)
|
13 | 16 | [#11481](https://github.com/rust-lang/cargo/pull/11481)
|
| 17 | +- Long diagnostic messages now can be truncated to be more readable. |
| 18 | + [#11494](https://github.com/rust-lang/cargo/pull/11494) |
| 19 | +- Shows the progress of crates.io index update even when `net.git-fetch-with-cli` enabled. |
| 20 | + [#11579](https://github.com/rust-lang/cargo/pull/11579) |
| 21 | +- `cargo build --verbose` tells you more about why it recompiles. |
| 22 | + [#11407](https://github.com/rust-lang/cargo/pull/11407) |
| 23 | +- Cargo's file locking mechanism now supports Solaris by using `fcntl`. |
| 24 | + [#11439](https://github.com/rust-lang/cargo/pull/11439) |
| 25 | + [#11474](https://github.com/rust-lang/cargo/pull/11474) |
| 26 | +- Added a new SemVer compatibility rule explaining the expectations around diagnostic lints |
| 27 | + [#11596](https://github.com/rust-lang/cargo/pull/11596) |
| 28 | +- `cargo vendor` generates a different source replacement entry |
| 29 | + for each revision from the same git repository. |
| 30 | + [#10690](https://github.com/rust-lang/cargo/pull/1090) |
| 31 | +- Cargo contributors can relabel issues via triagebot. |
| 32 | + [doc](https://github.com/rust-lang/triagebot/wiki/Labeling) |
| 33 | + [#11498](https://github.com/rust-lang/cargo/pull/11498) |
| 34 | +- Cargo contributors can write tests in containers. |
| 35 | + [#11583](https://github.com/rust-lang/cargo/pull/11583) |
14 | 36 |
|
15 | 37 | ### Changed
|
16 | 38 |
|
17 |
| -- Split up registry documentation into multiple sections. |
18 |
| - [#11480](https://github.com/rust-lang/cargo/pull/11480) |
| 39 | +- Cargo now by default saves credentials to `.cargo/credentials.toml`. |
| 40 | + If `.cargo/credentials` exists, writes to it for backward compatibility reasons. |
| 41 | + [#11533](https://github.com/rust-lang/cargo/pull/11533) |
| 42 | +- To prevent sensitive data from being logged, Cargo introduces a new wrapper type internally. |
| 43 | + [#11545](https://github.com/rust-lang/cargo/pull/11545) |
| 44 | +- Several documentation improvements. |
| 45 | + [#11475](https://github.com/rust-lang/cargo/pull/11475) |
| 46 | + [#11504](https://github.com/rust-lang/cargo/pull/11504) |
| 47 | + [#11516](https://github.com/rust-lang/cargo/pull/11516) |
| 48 | + [#11517](https://github.com/rust-lang/cargo/pull/11517) |
| 49 | + [#11568](https://github.com/rust-lang/cargo/pull/11568) |
| 50 | + [#11586](https://github.com/rust-lang/cargo/pull/11586) |
| 51 | + [#11592](https://github.com/rust-lang/cargo/pull/11592) |
19 | 52 |
|
20 | 53 | ### Fixed
|
21 | 54 |
|
| 55 | +- ❗ `cargo package` and `cargo publish` now respects workspace's `Cargo.lock`. |
| 56 | + This is an expected behavior but previously got overlooked. |
| 57 | + [#11477](https://github.com/rust-lang/cargo/pull/11477) |
| 58 | +- Fixed `cargo vendor` failing on resolving git dependencies inherited from a workspace. |
| 59 | + [#11414](https://github.com/rust-lang/cargo/pull/11414) |
| 60 | +- `cargo install` can now correctly install root package when `workspace.default-members` is specified. |
| 61 | + [#11067](https://github.com/rust-lang/cargo/pull/11067) |
| 62 | +- Fixed panic on target specific dependency errors. |
| 63 | + [#11541](https://github.com/rust-lang/cargo/pull/11541) |
| 64 | +- Shows `--help` if there is no man page for a subcommand. |
| 65 | + [#11473](https://github.com/rust-lang/cargo/pull/11473) |
22 | 66 | - Setting `target.cfg(…).rustflags` shouldn't erase `build.rustdocflags`.
|
23 | 67 | [#11323](https://github.com/rust-lang/cargo/pull/11323)
|
24 | 68 |
|
25 | 69 | ### Nightly only
|
26 | 70 |
|
27 |
| -- Suggests `cargo clippy --fix` when warnings/errors should be fixed with clippy. |
| 71 | +- Implemented a inital support of asymmetric token authentication for registries. |
| 72 | + ([RFC 3231](https://github.com/rust-lang/rfcs/blob/master/text/3231-cargo-asymmetric-tokens.md)) |
| 73 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#registry-auth)) |
| 74 | + [#10771](https://github.com/rust-lang/cargo/pull/10771) |
| 75 | +- Supports `codegen-backend` and `rustflags` in profiles in config file. |
| 76 | + [#11562](https://github.com/rust-lang/cargo/pull/11562) |
| 77 | +- Suggests `cargo clippy --fix` when warnings/errors could be fixed with clippy. |
28 | 78 | [#11399](https://github.com/rust-lang/cargo/pull/11399)
|
29 | 79 | - Fixed artifact deps not working when target field specified coexists with `optional = true`.
|
30 | 80 | [#11434](https://github.com/rust-lang/cargo/pull/11434)
|
| 81 | +- Make Cargo distinguish `Unit`s with and without artifact targets. |
| 82 | + [#11478](https://github.com/rust-lang/cargo/pull/11478) |
| 83 | +- `cargo metadata` supports artifact dependencies. |
| 84 | + [#11550](https://github.com/rust-lang/cargo/pull/11550) |
31 | 85 | - Allows builds of some crate to fail during optional doc-scraping.
|
32 | 86 | [#11450](https://github.com/rust-lang/cargo/pull/11450)
|
| 87 | +- Add warning if potentially-scrapable examples are skipped due to dev-dependencies. |
| 88 | + [#11503](https://github.com/rust-lang/cargo/pull/11503) |
| 89 | +- Don't scrape examples from library targets by default. |
| 90 | + [#11499](https://github.com/rust-lang/cargo/pull/11499) |
| 91 | +- Fixed examples of proc-macro crates being scraped for examples. |
| 92 | + [#11497](https://github.com/rust-lang/cargo/pull/11497) |
33 | 93 |
|
34 | 94 | ## Cargo 1.67 (2023-01-26)
|
35 | 95 | [7e484fc1...rust-1.67.0](https://github.com/rust-lang/cargo/compare/7e484fc1...rust-1.67.0)
|
|
0 commit comments