|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.74 (2023-11-16) |
| 4 | +[80eca0e5...HEAD](https://github.com/rust-lang/cargo/compare/80eca0e5...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +### Fixed |
| 11 | + |
| 12 | +### Nightly only |
| 13 | + |
| 14 | +### Documentation |
| 15 | + |
| 16 | +- ❗ Policy change: always check `Cargo.lock` in verison control, even for |
| 17 | + libraries. Lockfile and CI integration documentations are also expanded. |
| 18 | + [Policy docs](https://doc.rust-lang.org/nightly/cargo/faq.html#why-have-cargolock-in-version-control), |
| 19 | + [Lockfile docs](https://doc.rust-lang.org/nightly/cargo/guide/cargo-toml-vs-cargo-lock.html), |
| 20 | + [CI docs](https://doc.rust-lang.org/nightly/cargo/guide/continuous-integration.html), |
| 21 | + [#12382](https://github.com/rust-lang/cargo/pull/12382) |
| 22 | + |
3 | 23 | ## Cargo 1.73 (2023-10-05)
|
4 |
| -[45782b6b...HEAD](https://github.com/rust-lang/cargo/compare/45782b6b...HEAD) |
| 24 | +[45782b6b...rust-1.73.0](https://github.com/rust-lang/cargo/compare/45782b6b...rust-1.73.0) |
5 | 25 |
|
6 | 26 | ### Added
|
7 | 27 |
|
| 28 | +- Print environment variables for `cargo run/bench/test` in extra verbose mode `-vv`. |
| 29 | + [#12498](https://github.com/rust-lang/cargo/pull/12498) |
| 30 | +- Display package versions on Cargo timings graph. |
| 31 | + [#12420](https://github.com/rust-lang/cargo/pull/12420) |
| 32 | + |
8 | 33 | ### Changed
|
9 | 34 |
|
| 35 | +- Cargo now bails out when using `cargo::` in custom build scripts. This is |
| 36 | + a preparation for an upcoming change in build script invocations. |
| 37 | + [#12332](https://github.com/rust-lang/cargo/pull/12332) |
| 38 | +- Make Cargo `--help` easier to browse. |
| 39 | + [#11905](https://github.com/rust-lang/cargo/pull/11905) |
| 40 | +- Prompt the use of `--nocapture` flag if `cargo test` process is terminated via a signal. |
| 41 | + [#12463](https://github.com/rust-lang/cargo/pull/12463) |
| 42 | +- Preserve jobserver file descriptors on the rustc invocation for getting target information. |
| 43 | + [#12447](https://github.com/rust-lang/cargo/pull/12447) |
| 44 | +- Clarify in `--help` that `cargo test --all-targets` excludes doctests. |
| 45 | + [#12422](https://github.com/rust-lang/cargo/pull/12422) |
| 46 | +- Normalize `cargo.toml` to `Cargo.toml` on publish, and warn on other cases of `Cargo.toml`. |
| 47 | + [#12399](https://github.com/rust-lang/cargo/pull/12399) |
| 48 | + |
10 | 49 | ### Fixed
|
11 | 50 |
|
| 51 | +- Only skip mtime check on `~/.cargo/{git,registry}`. |
| 52 | + [#12369](https://github.com/rust-lang/cargo/pull/12369) |
| 53 | +- Fixed `cargo doc --open` crash on WSL2. |
| 54 | + [#12373](https://github.com/rust-lang/cargo/pull/12373) |
| 55 | +- Fixed panic when enabling `http.debug` for certain strings. |
| 56 | + [#12468](https://github.com/rust-lang/cargo/pull/12468) |
| 57 | +- Fixed `cargo remove` incorrectly removing used patches. |
| 58 | + [#12454](https://github.com/rust-lang/cargo/pull/12454) |
| 59 | +- Fixed crate checksum lookup query should match on semver build metadata. |
| 60 | + [#11447](https://github.com/rust-lang/cargo/pull/11447) |
| 61 | +- Fixed printing multiple warning messages for unused fields in `[registries]` table. |
| 62 | + [#12439](https://github.com/rust-lang/cargo/pull/12439) |
| 63 | + |
12 | 64 | ### Nightly only
|
13 | 65 |
|
| 66 | +- 🔥 The `-Zcredential-process` has been reimplemented with a clearer way to |
| 67 | + communicate with different credential providers. Several built-in providers |
| 68 | + are also added to Cargo. |
| 69 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process) |
| 70 | + [#12334](https://github.com/rust-lang/cargo/pull/12334) |
| 71 | + [#12396](https://github.com/rust-lang/cargo/pull/12396) |
| 72 | + [#12424](https://github.com/rust-lang/cargo/pull/12424) |
| 73 | + [#12440](https://github.com/rust-lang/cargo/pull/12440) |
| 74 | + [#12461](https://github.com/rust-lang/cargo/pull/12461) |
| 75 | + [#12469](https://github.com/rust-lang/cargo/pull/12469) |
| 76 | + [#12483](https://github.com/rust-lang/cargo/pull/12483) |
| 77 | + [#12499](https://github.com/rust-lang/cargo/pull/12499) |
| 78 | + [#12507](https://github.com/rust-lang/cargo/pull/12507) |
| 79 | + [#12512](https://github.com/rust-lang/cargo/pull/12512) |
| 80 | + [#12518](https://github.com/rust-lang/cargo/pull/12518) |
| 81 | + [#12521](https://github.com/rust-lang/cargo/pull/12521) |
| 82 | + [#12526](https://github.com/rust-lang/cargo/pull/12526) |
| 83 | + Some notable changes: |
| 84 | + - Renamed `credential-process` to `credential-provider` in Cargo configurations. |
| 85 | + - New JSON protocol for communicating with external credential providers via stdin/stdout. |
| 86 | + - The GNOME Secert provider now dynamically loads `libsecert`. |
| 87 | + - The 1password provider is no longer built-in. |
| 88 | + - Changed the unstable key for asymmetric tokens from `registry-auth` to `credential-process`. |
| 89 | +- ❗️ Removed `--keep-going` flag support from `cargo test` and `cargo bench`. |
| 90 | + [#12478](https://github.com/rust-lang/cargo/pull/12478) |
| 91 | + [#12492](https://github.com/rust-lang/cargo/pull/12492) |
14 | 92 | - Fixed invalid package names generated by `-Zscript`.
|
15 | 93 | [#12349](https://github.com/rust-lang/cargo/pull/12349)
|
16 | 94 | - `-Zscript` now errors out on unsupported commands — `publish` and `package`.
|
17 | 95 | [#12350](https://github.com/rust-lang/cargo/pull/12350)
|
| 96 | +- Encode URL params correctly for source ID in Cargo.lock. |
| 97 | + [#12280](https://github.com/rust-lang/cargo/pull/12280) |
| 98 | +- Replaced invalid `panic_unwind` std feature with `panic-unwind`. |
| 99 | + [#12364](https://github.com/rust-lang/cargo/pull/12364) |
| 100 | +- `-Zlints`: doctest extraction should respect `[lints]`. |
| 101 | + [#12501](https://github.com/rust-lang/cargo/pull/12501) |
18 | 102 |
|
19 | 103 | ### Documentation
|
20 | 104 |
|
| 105 | +- SemVer: Adding a section for changing the alignment, layout, or size of a |
| 106 | + well-defined type. |
| 107 | + [#12169](https://github.com/rust-lang/cargo/pull/12169) |
21 | 108 | - Use heading attributes to control the fragment.
|
22 | 109 | [#12339](https://github.com/rust-lang/cargo/pull/12339)
|
23 | 110 | - Use "number" instead of "digit" when explaining Cargo's use of semver.
|
|
26 | 113 | [#12344](https://github.com/rust-lang/cargo/pull/12344)
|
27 | 114 | - Clarify "Package ID" and "Source ID" in `cargo metadata` are opaque strings.
|
28 | 115 | [#12313](https://github.com/rust-lang/cargo/pull/12313)
|
29 |
| -- Added `profile.strip` to configuration docs. |
30 |
| - [#12337](https://github.com/rust-lang/cargo/pull/12337) |
31 |
| -- Multiple versions that differ only in the metadata tag are disallowed on crates.io. |
| 116 | +- Clarify that `rerun-if-env-changed` doesn't monitor the environment variables |
| 117 | + it set for crates and build script. |
| 118 | + [#12482](https://github.com/rust-lang/cargo/pull/12482) |
| 119 | +- Clarify that multiple versions that differ only in the metadata tag are |
| 120 | + disallowed on crates.io. |
32 | 121 | [#12335](https://github.com/rust-lang/cargo/pull/12335)
|
| 122 | +- Clarify `lto` setting passing `-Clinker-plugin-lto`. |
| 123 | + [#12407](https://github.com/rust-lang/cargo/pull/12407) |
| 124 | +- Added `profile.strip` to configuration and environment variable docs. |
| 125 | + [#12337](https://github.com/rust-lang/cargo/pull/12337) |
| 126 | + [#12408](https://github.com/rust-lang/cargo/pull/12408) |
| 127 | +- Added docs for artifact JSON debuginfo levels. |
| 128 | + [#12376](https://github.com/rust-lang/cargo/pull/12376) |
| 129 | +- Added a notice for the backward compatible `.cargo/credential` file existence. |
| 130 | + [#12479](https://github.com/rust-lang/cargo/pull/12479) |
| 131 | +- Raised the awareness of `resolver = 2` used inside workspaces. |
| 132 | + [#12388](https://github.com/rust-lang/cargo/pull/12388) |
| 133 | +- Replaced `master` branch by default branch in documentation. |
| 134 | + [#12435](https://github.com/rust-lang/cargo/pull/12435) |
33 | 135 |
|
34 | 136 | ### Internal
|
35 | 137 |
|
36 | 138 | - Updated to `criterion` 0.5.1.
|
37 | 139 | [#12338](https://github.com/rust-lang/cargo/pull/12338)
|
| 140 | +- Updated to `curl-sys` 0.4.65, which corresponds to curl 8.2.1. |
| 141 | + [#12406](https://github.com/rust-lang/cargo/pull/12406) |
| 142 | +- Updated to `indexmap` v2. |
| 143 | + [#12368](https://github.com/rust-lang/cargo/pull/12368) |
| 144 | +- Updated to `miow` 0.6.0, which drops old versions of `windows-sys`. |
| 145 | + [#12453](https://github.com/rust-lang/cargo/pull/12453) |
38 | 146 | - ci: automatically test new packages by using `--workspace`.
|
39 | 147 | [#12342](https://github.com/rust-lang/cargo/pull/12342)
|
40 | 148 | - ci: automatically update dependencies monthly with Renovate.
|
41 | 149 | [#12341](https://github.com/rust-lang/cargo/pull/12341)
|
| 150 | + [#12466](https://github.com/rust-lang/cargo/pull/12466) |
| 151 | +- ci: rewrote `xtask-bump-check` for respecting semver by adopting `cargo-semver-checks`. |
| 152 | + [#12395](https://github.com/rust-lang/cargo/pull/12395) |
| 153 | + [#12513](https://github.com/rust-lang/cargo/pull/12513) |
| 154 | + [#12508](https://github.com/rust-lang/cargo/pull/12508) |
| 155 | +- Rearranged and renamed test directories |
| 156 | + [#12397](https://github.com/rust-lang/cargo/pull/12397) |
| 157 | + [#12398](https://github.com/rust-lang/cargo/pull/12398) |
| 158 | +- Migrated from `log` to `tracing`. |
| 159 | + [#12458](https://github.com/rust-lang/cargo/pull/12458) |
| 160 | + [#12488](https://github.com/rust-lang/cargo/pull/12488) |
| 161 | +- Track `--help` output in tests. |
| 162 | + [#11912](https://github.com/rust-lang/cargo/pull/11912) |
| 163 | +- Cleaned up and shared package metadata within workspace. |
| 164 | + [#12352](https://github.com/rust-lang/cargo/pull/12352) |
| 165 | +- `crates-io`: expose HTTP headers and `Error` type. |
| 166 | + [#12310](https://github.com/rust-lang/cargo/pull/12310) |
| 167 | +- For `cargo update`, caught CLI flags conflict between `--aggressive` and `--precise` in clap. |
| 168 | + [#12428](https://github.com/rust-lang/cargo/pull/12428) |
| 169 | +- Several fixes for either making Cargo testsuite pass on nightly or in `rust-lang/rust`. |
| 170 | + [#12413](https://github.com/rust-lang/cargo/pull/12413) |
| 171 | + [#12416](https://github.com/rust-lang/cargo/pull/12416) |
| 172 | + [#12429](https://github.com/rust-lang/cargo/pull/12429) |
| 173 | + [#12450](https://github.com/rust-lang/cargo/pull/12450) |
| 174 | + [#12491](https://github.com/rust-lang/cargo/pull/12491) |
| 175 | + [#12500](https://github.com/rust-lang/cargo/pull/12500) |
42 | 176 |
|
43 | 177 | ## Cargo 1.72 (2023-08-24)
|
44 | 178 | [64fb38c9...rust-1.72.0](https://github.com/rust-lang/cargo/compare/64fb38c9...rust-1.72.0)
|
|
75 | 209 | [#12231](https://github.com/rust-lang/cargo/pull/12231)
|
76 | 210 | - Added a message when `rustup` override shorthand is put in a wrong position.
|
77 | 211 | [#12226](https://github.com/rust-lang/cargo/pull/12226)
|
| 212 | +- Respect scp-like URL as much as possible when fetching nested submodules. |
| 213 | + [#12359](https://github.com/rust-lang/cargo/pull/12359) |
| 214 | + [#12411](https://github.com/rust-lang/cargo/pull/12411) |
78 | 215 |
|
79 | 216 | ### Fixed
|
80 | 217 |
|
|
184 | 321 | - Show a better error when container tests fail.
|
185 | 322 | [#12264](https://github.com/rust-lang/cargo/pull/12264)
|
186 | 323 |
|
| 324 | +## Cargo 1.71.1 (2023-08-03) |
| 325 | + |
| 326 | +### Fixed |
| 327 | + |
| 328 | +- [CVE-2023-38497](https://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87): |
| 329 | + Cargo 1.71.1 or later respects umask when extracting crate archives. It also |
| 330 | + purges the caches it tries to access if they were generated by older Cargo versions. |
| 331 | + |
187 | 332 | ## Cargo 1.71 (2023-07-13)
|
188 | 333 | [84b7041f...rust-1.71.0](https://github.com/rust-lang/cargo/compare/84b7041f...rust-1.71.0)
|
189 | 334 |
|
|
0 commit comments