|
1 | 1 | # Changelog |
2 | 2 |
|
3 | 3 | ## Cargo 1.92 (2025-12-11) |
4 | | -[24bb93c3...HEAD](https://github.com/rust-lang/cargo/compare/24bb93c3...HEAD) |
| 4 | +[24bb93c3...rust-1.92.0](https://github.com/rust-lang/cargo/compare/24bb93c3...rust-1.92.0) |
5 | 5 |
|
6 | 6 | ### Added |
7 | 7 |
|
8 | | -- Adds ghostty as supported terminal for term integration (OSC 9;4) |
| 8 | +- Add Ghostty as a supported terminal for term integration (OSC 9;4) |
9 | 9 | [#15977](https://github.com/rust-lang/cargo/pull/15977) |
| 10 | +- Add retry for `git fetch` failures in `net.git-fetch-with-cli` path |
| 11 | + [#16016](https://github.com/rust-lang/cargo/pull/16016) |
10 | 12 |
|
11 | 13 | ### Changed |
12 | 14 |
|
| 15 | +- Migrate some diagnostic formatting to rustc-like style (annotate-snippets style) |
| 16 | + [#15943](https://github.com/rust-lang/cargo/pull/15943) |
| 17 | + [#15945](https://github.com/rust-lang/cargo/pull/15945) |
| 18 | + [#16019](https://github.com/rust-lang/cargo/pull/16019) |
| 19 | + [#16035](https://github.com/rust-lang/cargo/pull/16035) |
| 20 | + [#16066](https://github.com/rust-lang/cargo/pull/16066) |
| 21 | + [#16113](https://github.com/rust-lang/cargo/pull/16113) |
| 22 | + [#16126](https://github.com/rust-lang/cargo/pull/16126) |
| 23 | +- Suggested `cargo fix` command from compilation diagnostics is now more accurate. |
| 24 | + [#16127](https://github.com/rust-lang/cargo/pull/16127) |
13 | 25 | - Prefer unicode ellipses when truncating progress |
14 | 26 | [#15955](https://github.com/rust-lang/cargo/pull/15955) |
15 | 27 | - Eliminate the last three "did you mean" warning phrasings |
16 | 28 | [#15356](https://github.com/rust-lang/cargo/pull/15356) |
17 | 29 | - Clarify warning for using `features` or `default-features` in `patch` |
18 | 30 | [#15953](https://github.com/rust-lang/cargo/pull/15953) |
19 | | -- Report all future-incompat content as a single annotate-snippet Report |
20 | | - [#15943](https://github.com/rust-lang/cargo/pull/15943) |
| 31 | +- Config parsing errors now show more precise key path with array index |
| 32 | + [#16004](https://github.com/rust-lang/cargo/pull/16004) |
| 33 | +- Improve error message for `rust-version` incompatibility diagnostics |
| 34 | + [#16021](https://github.com/rust-lang/cargo/pull/16021) |
| 35 | +- cargo-add: Report a missing source error for workspace dependencies |
| 36 | + [#16063](https://github.com/rust-lang/cargo/pull/16063) |
21 | 37 | - cargo-info: Suggest a more universal `cargo tree` command |
22 | 38 | [#15954](https://github.com/rust-lang/cargo/pull/15954) |
23 | 39 | - cargo-publish: Switch the 'ctrl-c on wait' line to a help message |
24 | 40 | [#15942](https://github.com/rust-lang/cargo/pull/15942) |
| 41 | +- cargo-publish: soft-deprecate the `--token` option |
| 42 | + [#16046](https://github.com/rust-lang/cargo/pull/16046) |
25 | 43 |
|
26 | 44 | ### Fixed |
27 | 45 |
|
28 | 46 | ### Nightly only |
29 | 47 |
|
| 48 | +- 🔥 `immediate-abort`: Add `panic=immediate-abort` support |
| 49 | + [#16041](https://github.com/rust-lang/cargo/pull/16041) |
| 50 | + [#16054](https://github.com/rust-lang/cargo/pull/16054) |
| 51 | +- `-Zbuild-dir-new-layout`: Reorganize build-dir layout |
| 52 | + [#15947](https://github.com/rust-lang/cargo/pull/15947) |
30 | 53 | - `-Zbuild-std`: test move away from panic_immediate_abort |
31 | 54 | [#16006](https://github.com/rust-lang/cargo/pull/16006) |
32 | 55 | - `-Zcargo-lints`: Add lint for global use of `hint-mostly-unused` |
33 | 56 | [#15995](https://github.com/rust-lang/cargo/pull/15995) |
34 | | -- `-Zscript`: Try alternative len code fences |
35 | | - [#15952](https://github.com/rust-lang/cargo/pull/15952) |
36 | | -- `-Zscript`: Improve error quality |
| 57 | +- `-Zpublic-dependency`: `cargo add` now considers public dependencies when choosing a version |
| 58 | + [#15966](https://github.com/rust-lang/cargo/pull/15966) |
| 59 | +- `-Zpublic-dependency`: Switch from `--depth public` to `--edges public` for `cargo tree` to display public dependencies |
| 60 | + [#16081](https://github.com/rust-lang/cargo/pull/16081) |
| 61 | +- `-Zpublic-dependency`: Improve public-in-private manifest errors |
| 62 | + [#16002](https://github.com/rust-lang/cargo/pull/16002) |
| 63 | + [#16075](https://github.com/rust-lang/cargo/pull/16075) |
| 64 | +- `-Zscript`: Improve frontmatter parsing error quality |
37 | 65 | [#15972](https://github.com/rust-lang/cargo/pull/15972) |
38 | | -- `-Zscript`: Show error source to users |
39 | 66 | [#15939](https://github.com/rust-lang/cargo/pull/15939) |
| 67 | + [#15952](https://github.com/rust-lang/cargo/pull/15952) |
40 | 68 | - `-Zscript`: Only allow horizontal whitespace after fences |
41 | 69 | [#15975](https://github.com/rust-lang/cargo/pull/15975) |
| 70 | +- `-Zscript`: Override arg0 for cargo scripts |
| 71 | + [#16027](https://github.com/rust-lang/cargo/pull/16027) |
| 72 | +- `-Zscript`: Tweak cargo script build-dir / target-dir |
| 73 | + [#16086](https://github.com/rust-lang/cargo/pull/16086) |
| 74 | +- `-Zscript`: Remove name sanitiztion outside what is strictly required |
| 75 | + [#16120](https://github.com/rust-lang/cargo/pull/16120) |
| 76 | +- `-Zscript`: Store cargo script lockfiles in build-dir |
| 77 | + [#16087](https://github.com/rust-lang/cargo/pull/16087) |
| 78 | +- `-Zscript`: Define cargo script's target-dir using build-dir templating |
| 79 | + [#16073](https://github.com/rust-lang/cargo/pull/16073) |
| 80 | +- `-Zscript`: Prevent non-script fields in Cargo scripts |
| 81 | + [#16026](https://github.com/rust-lang/cargo/pull/16026) |
| 82 | +- `-Zscript`: Default bin.name to package.name |
| 83 | + [#16064](https://github.com/rust-lang/cargo/pull/16064) |
| 84 | +- `multiple-build-scripts`: Access each build script's `OUT_DIR` via `<script-name>_OUT_DIR` |
| 85 | + [#15891](https://github.com/rust-lang/cargo/pull/15891) |
42 | 86 | - `native-completions`: Added completion for `--features` flag |
43 | 87 | [#15309](https://github.com/rust-lang/cargo/pull/15309) |
44 | 88 | - `native-completions`: Show local crates/features over other members |
45 | 89 | [#15956](https://github.com/rust-lang/cargo/pull/15956) |
46 | | -- `native-completions`:: Allow completions for third-party subcommand names |
| 90 | +- `native-completions`: Allow completions for third-party subcommand names |
47 | 91 | [#15961](https://github.com/rust-lang/cargo/pull/15961) |
48 | 92 |
|
49 | 93 | ### Documentation |
50 | 94 |
|
51 | 95 | - 🎉 Add a new "Optimizing Build Performance" chapter |
52 | 96 | [#15924](https://github.com/rust-lang/cargo/pull/15924) |
53 | 97 | [#15970](https://github.com/rust-lang/cargo/pull/15970) |
| 98 | + [#15991](https://github.com/rust-lang/cargo/pull/15991) |
| 99 | + [#16078](https://github.com/rust-lang/cargo/pull/16078) |
| 100 | + [#16085](https://github.com/rust-lang/cargo/pull/16085) |
| 101 | + [#16107](https://github.com/rust-lang/cargo/pull/16107) |
| 102 | + [#16108](https://github.com/rust-lang/cargo/pull/16108) |
54 | 103 | - Clarify git sources vs git registries in source replacement documentation |
55 | 104 | [#15974](https://github.com/rust-lang/cargo/pull/15974) |
56 | 105 | - Clarify what we mean by omitting features in registry index documentation |
|
59 | 108 | [#15958](https://github.com/rust-lang/cargo/pull/15958) |
60 | 109 | - Clarify multiple version requirement behavior |
61 | 110 | [#15979](https://github.com/rust-lang/cargo/pull/15979) |
| 111 | +- Clarify that `target.<cfg>.linker` is supported |
| 112 | + [#16112](https://github.com/rust-lang/cargo/pull/16112) |
| 113 | +- Explain Cargo config deserialization internals |
| 114 | + [#16105](https://github.com/rust-lang/cargo/pull/16105) |
| 115 | + [#16094](https://github.com/rust-lang/cargo/pull/16094) |
62 | 116 | - contrib: Move docs building process to contributor guide |
63 | 117 | [#15854](https://github.com/rust-lang/cargo/pull/15854) |
| 118 | +- SemVer: Recommend `package.rust-version` in the Rust version section |
| 119 | + [#15806](https://github.com/rust-lang/cargo/pull/15806) |
64 | 120 |
|
65 | 121 | ### Internal |
66 | 122 |
|
67 | 123 | - Make GlobalContext Sync |
68 | 124 | [#15967](https://github.com/rust-lang/cargo/pull/15967) |
| 125 | +- Centralize Cargo console output styling |
| 126 | + [#16124](https://github.com/rust-lang/cargo/pull/16124) |
| 127 | + [#16135](https://github.com/rust-lang/cargo/pull/16135) |
| 128 | +- Refactor `Layout` into `BuildDirLayout` and `ArtifactDirLayout` |
| 129 | + [#16092](https://github.com/rust-lang/cargo/pull/16092) |
| 130 | +- cargo-test-support: Add track_caller to know the actual failure |
| 131 | + [#16069](https://github.com/rust-lang/cargo/pull/16069) |
| 132 | +- cargo-test-support: Added better filesystem layout testing harness |
| 133 | + [#15874](https://github.com/rust-lang/cargo/pull/15874) |
69 | 134 | - cargo-util-schemas: Move lockfile schemas in |
70 | 135 | [#15980](https://github.com/rust-lang/cargo/pull/15980) |
71 | 136 | [#15990](https://github.com/rust-lang/cargo/pull/15990) |
| 137 | + [#16039](https://github.com/rust-lang/cargo/pull/16039) |
72 | 138 | - ci: Skip check-version-bump ci job in forks |
73 | 139 | [#15959](https://github.com/rust-lang/cargo/pull/15959) |
| 140 | +- config: various internal cleanup and refactor for `ConfigValue` |
| 141 | + [#16067](https://github.com/rust-lang/cargo/pull/16067) |
| 142 | + [#16084](https://github.com/rust-lang/cargo/pull/16084) |
| 143 | + [#16091](https://github.com/rust-lang/cargo/pull/16091) |
| 144 | + [#16100](https://github.com/rust-lang/cargo/pull/16100) |
| 145 | + [#16109](https://github.com/rust-lang/cargo/pull/16109) |
| 146 | +- perf: JSON message with less allocations |
| 147 | + [#16130](https://github.com/rust-lang/cargo/pull/16130) |
| 148 | +- test: null-terminated path for reserved windows name detection |
| 149 | + [#16052](https://github.com/rust-lang/cargo/pull/16052) |
| 150 | +- test: Don't look for a specific ANSI color |
| 151 | + [#16118](https://github.com/rust-lang/cargo/pull/16118) |
| 152 | +- test: Fix test that assumes `CARGO_CFG_TARGET_FAMILY` is a single value |
| 153 | + [#16079](https://github.com/rust-lang/cargo/pull/16079) |
74 | 154 | - Update dependencies. |
75 | 155 | [#15988](https://github.com/rust-lang/cargo/pull/15988) |
76 | 156 | [#15984](https://github.com/rust-lang/cargo/pull/15984) |
77 | 157 | [#15989](https://github.com/rust-lang/cargo/pull/15989) |
| 158 | + [#15992](https://github.com/rust-lang/cargo/pull/15992) |
78 | 159 | [#15993](https://github.com/rust-lang/cargo/pull/15993) |
| 160 | + [#16009](https://github.com/rust-lang/cargo/pull/16009) |
| 161 | + [#16031](https://github.com/rust-lang/cargo/pull/16031) |
| 162 | + [#16034](https://github.com/rust-lang/cargo/pull/16034) |
79 | 163 |
|
80 | 164 | ## Cargo 1.91 (2025-10-30) |
81 | 165 | [840b83a1...rust-1.91.0](https://github.com/rust-lang/cargo/compare/840b83a1...rust-1.91.0) |
|
0 commit comments