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