|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.72 (2023-08-24) |
| 4 | +[64fb38c9...HEAD](https://github.com/rust-lang/cargo/compare/64fb38c9...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +- Cargo now warns when an edition 2021 package is in a virtual workspace and |
| 11 | + `workspace.resolver` is not set. It is recommended to set the resolver |
| 12 | + version for workspaces explicitly. |
| 13 | + [#10910](https://github.com/rust-lang/cargo/pull/10910) |
| 14 | +- Set IBM AIX shared libraries search path to `LIBPATH`. |
| 15 | + [#11968](https://github.com/rust-lang/cargo/pull/11968) |
| 16 | +- Don't pass `-C debuginfo=0` to rustc as it is the default value. |
| 17 | + [#12022](https://github.com/rust-lang/cargo/pull/12022) |
| 18 | + [#12205](https://github.com/rust-lang/cargo/pull/12205) |
| 19 | + |
| 20 | +### Fixed |
| 21 | + |
| 22 | +- `cargo clean` uses `remove_dir_all` as a fallback to resolve race conditions. |
| 23 | + [#11442](https://github.com/rust-lang/cargo/pull/11442) |
| 24 | +- Reduced the chance Cargo re-formats the user's `[features]` table. |
| 25 | + [#12191](https://github.com/rust-lang/cargo/pull/12191) |
| 26 | + |
| 27 | +### Nightly only |
| 28 | + |
| 29 | +- Automatically inherit workspace lints when running `cargo new`/`cargo init`. |
| 30 | + [#12174](https://github.com/rust-lang/cargo/pull/12174) |
| 31 | + |
| 32 | +### Documentation |
| 33 | + |
| 34 | +- Added a description of `Cargo.lock` conflicts in the Cargo FAQ. |
| 35 | + [#12185](https://github.com/rust-lang/cargo/pull/12185) |
| 36 | +- Added a small note about indexes ignoring SemVer build metadata. |
| 37 | + [#12206](https://github.com/rust-lang/cargo/pull/12206) |
| 38 | +- Added doc comments for `GitSource` types and friends. |
| 39 | + [#12192](https://github.com/rust-lang/cargo/pull/12192) |
| 40 | + |
| 41 | +### Internal |
| 42 | + |
| 43 | +- Removed unused features from `windows-sys` dependency. |
| 44 | + [#12176](https://github.com/rust-lang/cargo/pull/12176) |
| 45 | +- Refactor compiler invocations |
| 46 | + [#12211](https://github.com/rust-lang/cargo/pull/12211) |
| 47 | +- Reuse `make_dep_prefix` implementation |
| 48 | + [#12203](https://github.com/rust-lang/cargo/pull/12203) |
| 49 | +- Lexicographically order `-Z` flags |
| 50 | + [#12182](https://github.com/rust-lang/cargo/pull/12182) |
| 51 | +- Several Cargo's own test infra improvements and speed-ups. |
| 52 | + [#12184](https://github.com/rust-lang/cargo/pull/12184) |
| 53 | + [#12188](https://github.com/rust-lang/cargo/pull/12188) |
| 54 | + [#12189](https://github.com/rust-lang/cargo/pull/12189) |
| 55 | + [#12194](https://github.com/rust-lang/cargo/pull/12194) |
| 56 | + [#12199](https://github.com/rust-lang/cargo/pull/12199) |
| 57 | + |
3 | 58 | ## Cargo 1.71 (2023-07-13)
|
4 |
| -[84b7041f...HEAD](https://github.com/rust-lang/cargo/compare/84b7041f...HEAD) |
| 59 | +[84b7041f...rust-1.71.0](https://github.com/rust-lang/cargo/compare/84b7041f...rust-1.71.0) |
5 | 60 |
|
6 | 61 | ### Added
|
7 | 62 |
|
| 63 | +- Allowed named debuginfo options in Cargo.toml. |
| 64 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#debug) |
| 65 | + [#11958](https://github.com/rust-lang/cargo/pull/11958) |
| 66 | +- Added `workspace_default_members` to the output of `cargo metadata`. |
| 67 | + [#11978](https://github.com/rust-lang/cargo/pull/11978) |
| 68 | +- `cargo add` now considers `rust-version` when selecting packages. |
| 69 | + [#12078](https://github.com/rust-lang/cargo/pull/12078) |
| 70 | +- Automatically inherit workspace fields when running `cargo new`/`cargo init`. |
| 71 | + [#12069](https://github.com/rust-lang/cargo/pull/12069) |
| 72 | + |
8 | 73 | ### Changed
|
9 | 74 |
|
10 | 75 | - ❗ Optimized the usage under `rustup`. When Cargo detects it will run `rustc`
|
|
23 | 88 | [#12107](https://github.com/rust-lang/cargo/pull/12107)
|
24 | 89 | - Better error message when getting an empty dependency table in Cargo.toml.
|
25 | 90 | [#11997](https://github.com/rust-lang/cargo/pull/11997)
|
26 |
| -- Use restricted Damerau-Levenshtein algorithm to provide typo suggestions. |
27 |
| - [#11963](https://github.com/rust-lang/cargo/pull/11963) |
| 91 | +- Better error message when empty dependency was specified in Cargo.toml. |
| 92 | + [#12001](https://github.com/rust-lang/cargo/pull/12001) |
| 93 | +- `--help` text is now wrapping for readability on narrow screens. |
| 94 | + [#12013](https://github.com/rust-lang/cargo/pull/12013) |
| 95 | +- Tweaked the order of arguments in `--help` text to clarify role of `--bin`. |
| 96 | + [#12157](https://github.com/rust-lang/cargo/pull/12157) |
| 97 | +- `rust-version` is included in `cargo publish` requests to registries. |
| 98 | + [#12041](https://github.com/rust-lang/cargo/pull/12041) |
28 | 99 |
|
29 | 100 | ### Fixed
|
30 | 101 |
|
31 | 102 | - Corrected the bug report URL for `cargo clippy --fix`.
|
32 | 103 | [#11882](https://github.com/rust-lang/cargo/pull/11882)
|
| 104 | +- Cargo now applies `[env]` to rust invocations for target info discovery. |
| 105 | + [#12029](https://github.com/rust-lang/cargo/pull/12029) |
| 106 | +- Fixed tokens not redacted in http debug when using HTTP/2. |
| 107 | + [#12095](https://github.com/rust-lang/cargo/pull/12095) |
| 108 | +- Fixed `-C debuginfo` not passed in some situation, leading to build cache miss. |
| 109 | + [#12165](https://github.com/rust-lang/cargo/pull/12165) |
| 110 | +- Fixed the ambiguity when `cargo install` found packages with the same name. |
| 111 | + The ambiguity happened in a situation like a package depending on old versions |
| 112 | + of itself. |
| 113 | + [#12015](https://github.com/rust-lang/cargo/pull/12015) |
| 114 | +- Fixed a false positive that `cargo package` checks for conflict files. |
| 115 | + [#12135](https://github.com/rust-lang/cargo/pull/12135) |
| 116 | +- Fixed `dep/feat` syntax not working when co-exist with `dep:` syntax, and |
| 117 | + trying to enable features of an optional dependency. |
| 118 | + [#12130](https://github.com/rust-lang/cargo/pull/12130) |
| 119 | +- Fixed `cargo tree` not handling the output with `-e no-proc-macro` correctly. |
| 120 | + [#12044](https://github.com/rust-lang/cargo/pull/12044) |
| 121 | +- Warn instead of error in `cargo package` on empty `readme` or `license-file` |
| 122 | + in Cargo.toml. |
| 123 | + [#12036](https://github.com/rust-lang/cargo/pull/12036) |
33 | 124 |
|
34 | 125 | ### Nightly only
|
35 | 126 |
|
| 127 | +- 🔥 The `-Zgitxoide` feature now supports shallow clones and fetches for |
| 128 | + dependencies and registry indexes. |
| 129 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#gitoxide) |
| 130 | + [#11840](https://github.com/rust-lang/cargo/pull/11840) |
| 131 | +- 🔥 The `-Zlints` feature enables configuring lints rules in Cargo.toml |
| 132 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#lints) |
| 133 | + [#12148](https://github.com/rust-lang/cargo/pull/12148) |
| 134 | + [#12168](https://github.com/rust-lang/cargo/pull/12168) |
36 | 135 | - The `-Zbuild-std` breakage of missing features in `nightly-2023-05-04` has
|
37 | 136 | been fixed in `nightly-2023-05-05`.
|
38 | 137 | [#12088](https://github.com/rust-lang/cargo/pull/12088)
|
39 | 138 | - Recompile on profile rustflags changes.
|
40 | 139 | [#11981](https://github.com/rust-lang/cargo/pull/11981)
|
| 140 | +- Added `-Zmsrv-policy` feature flag placeholder. |
| 141 | + [#12043](https://github.com/rust-lang/cargo/pull/12043) |
41 | 142 |
|
42 | 143 | ### Documentation
|
43 | 144 |
|
| 145 | +- Added Cargo team charter. |
| 146 | + [docs](https://doc.crates.io/contrib/team.html) |
| 147 | + [#12010](https://github.com/rust-lang/cargo/pull/12010) |
| 148 | +- SemVer: Adding `#[non_exhaustive]` on existing items is a breaking change. |
| 149 | + [#10877](https://github.com/rust-lang/cargo/pull/10877) |
| 150 | +- SemVer: It is not a breaking change to make an unsafe function safe. |
| 151 | + [#12116](https://github.com/rust-lang/cargo/pull/12116) |
| 152 | +- SemVer: changeing MSRV is generally a minor change. |
| 153 | + [#12122](https://github.com/rust-lang/cargo/pull/12122) |
| 154 | +- Clarify when and how to `cargo yank`. |
| 155 | + [#11862](https://github.com/rust-lang/cargo/pull/11862) |
| 156 | +- Clarify that crates.io doesn't link to docs.rs right away. |
| 157 | + [#12146](https://github.com/rust-lang/cargo/pull/12146) |
| 158 | +- Clarify documentation around test target setting. |
| 159 | + [#12032](https://github.com/rust-lang/cargo/pull/12032) |
| 160 | +- Specify `rust_version` in Index format. |
| 161 | + [#12040](https://github.com/rust-lang/cargo/pull/12040) |
| 162 | +- Specify `msg` in owner-remove registry API response. |
| 163 | + [#12068](https://github.com/rust-lang/cargo/pull/12068) |
| 164 | +- Added more documentation for artifact-dependencies. |
| 165 | + [#12110](https://github.com/rust-lang/cargo/pull/12110) |
| 166 | +- Added doc comments for `Source` and build script for cargo-the-library. |
| 167 | + [#12133](https://github.com/rust-lang/cargo/pull/12133) |
| 168 | + [#12153](https://github.com/rust-lang/cargo/pull/12153) |
| 169 | + [#12159](https://github.com/rust-lang/cargo/pull/12159) |
| 170 | +- Several typo and broken link fixes. |
| 171 | + [#12018](https://github.com/rust-lang/cargo/pull/12018) |
| 172 | + [#12020](https://github.com/rust-lang/cargo/pull/12020) |
| 173 | + [#12049](https://github.com/rust-lang/cargo/pull/12049) |
| 174 | + [#12067](https://github.com/rust-lang/cargo/pull/12067) |
| 175 | + [#12073](https://github.com/rust-lang/cargo/pull/12073) |
| 176 | + [#12143](https://github.com/rust-lang/cargo/pull/12143) |
| 177 | +- home: clarify the behavior on each platform |
| 178 | + [#12047](https://github.com/rust-lang/cargo/pull/12047) |
| 179 | + |
44 | 180 | ### Internal
|
45 | 181 |
|
46 |
| -- Cargo is now a Cargo workspace. We dogfood ourselves finally. |
| 182 | +- Updated to `linux-raw-sys` 0.3.2 |
| 183 | + [#11998](https://github.com/rust-lang/cargo/pull/11998) |
| 184 | +- Updated to `git2` 0.17.1, which corresponds to libgit2 1.6.4. |
| 185 | + [#12096](https://github.com/rust-lang/cargo/pull/12096) |
| 186 | +- Updated to `windows-sys` 0.48.0 |
| 187 | + [#12021](https://github.com/rust-lang/cargo/pull/12021) |
| 188 | +- Updated to `libc` 0.2.144 |
| 189 | + [#12014](https://github.com/rust-lang/cargo/pull/12014) |
| 190 | + [#12098](https://github.com/rust-lang/cargo/pull/12098) |
| 191 | +- Updated to `openssl-src` 111.25.3+1.1.1t |
| 192 | + [#12005](https://github.com/rust-lang/cargo/pull/12005) |
| 193 | +- Updated to `home` 0.5.5 |
| 194 | + [#12037](https://github.com/rust-lang/cargo/pull/12037) |
| 195 | +- Enabled feature `Win32_System_Console` feature since it is used. |
| 196 | + [#12016](https://github.com/rust-lang/cargo/pull/12016) |
| 197 | +- Cargo is now a Cargo workspace. We dogfood ourselves finally! |
47 | 198 | [#11851](https://github.com/rust-lang/cargo/pull/11851)
|
48 | 199 | [#11994](https://github.com/rust-lang/cargo/pull/11994)
|
49 | 200 | [#11996](https://github.com/rust-lang/cargo/pull/11996)
|
50 |
| -- Allow win/mac credential managers to build on all platforms. |
51 |
| - [#11993](https://github.com/rust-lang/cargo/pull/11993) |
52 |
| -- Use `openssl` only on non-Windows platforms. |
53 |
| - [#11979](https://github.com/rust-lang/cargo/pull/11979) |
54 |
| -- A new, straightforward issue labels system for Cargo contributors. |
| 201 | + [#12024](https://github.com/rust-lang/cargo/pull/12024) |
| 202 | + [#12025](https://github.com/rust-lang/cargo/pull/12025) |
| 203 | + [#12057](https://github.com/rust-lang/cargo/pull/12057) |
| 204 | +- 🔥 A new, straightforward issue labels system for Cargo contributors. |
55 | 205 | [docs](https://doc.crates.io/contrib/issues.html)
|
56 | 206 | [#11995](https://github.com/rust-lang/cargo/pull/11995)
|
57 | 207 | [#12002](https://github.com/rust-lang/cargo/pull/12002)
|
58 | 208 | [#12003](https://github.com/rust-lang/cargo/pull/12003)
|
| 209 | +- Allow win/mac credential managers to build on all platforms. |
| 210 | + [#11993](https://github.com/rust-lang/cargo/pull/11993) |
| 211 | + [#12027](https://github.com/rust-lang/cargo/pull/12027) |
| 212 | +- Use `openssl` only on non-Windows platforms. |
| 213 | + [#11979](https://github.com/rust-lang/cargo/pull/11979) |
| 214 | +- Use restricted Damerau-Levenshtein algorithm to provide typo suggestions. |
| 215 | + [#11963](https://github.com/rust-lang/cargo/pull/11963) |
| 216 | +- Added a new xtask `cargo build-man`. |
| 217 | + [#12048](https://github.com/rust-lang/cargo/pull/12048) |
| 218 | +- Added a new xtask `cargo stale-label`. |
| 219 | + [#12051](https://github.com/rust-lang/cargo/pull/12051) |
| 220 | +- Added a new xtask `cargo unpublished`. |
| 221 | + [#12039](https://github.com/rust-lang/cargo/pull/12039) |
| 222 | + [#12045](https://github.com/rust-lang/cargo/pull/12045) |
| 223 | + [#12085](https://github.com/rust-lang/cargo/pull/12085) |
| 224 | +- CI: check if any version bump needed for member crates. |
| 225 | + [#12126](https://github.com/rust-lang/cargo/pull/12126) |
| 226 | +- Fixed some test infra issues. |
| 227 | + [#11976](https://github.com/rust-lang/cargo/pull/11976) |
| 228 | + [#12026](https://github.com/rust-lang/cargo/pull/12026) |
| 229 | + [#12055](https://github.com/rust-lang/cargo/pull/12055) |
| 230 | + [#12117](https://github.com/rust-lang/cargo/pull/12117) |
59 | 231 |
|
60 | 232 | ## Cargo 1.70 (2023-06-01)
|
61 | 233 | [9880b408...rust-1.70.0](https://github.com/rust-lang/cargo/compare/9880b408...rust-1.70.0)
|
|
0 commit comments