|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.78 (2024-05-02) |
| 4 | +[7bb7b539...HEAD](https://github.com/rust-lang/cargo/compare/7bb7b539...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +- Stabilize lockfile format v4. Lockfile v3 is still the default version. |
| 9 | + [#12852](https://github.com/rust-lang/cargo/pull/12852) |
| 10 | + |
| 11 | +### Changed |
| 12 | + |
| 13 | +- cargo-new: Print a 'Creating', rather than 'Created' status |
| 14 | + [#13367](https://github.com/rust-lang/cargo/pull/13367) |
| 15 | +- cargo-new: Print a note, rather than a comment, for more information |
| 16 | + [#13371](https://github.com/rust-lang/cargo/pull/13371) |
| 17 | +- Deprecate non-extension `.cargo/config` files. |
| 18 | + [#13349](https://github.com/rust-lang/cargo/pull/13349) |
| 19 | +- Don't print rustdoc command lines on failure by default |
| 20 | + [#13387](https://github.com/rust-lang/cargo/pull/13387) |
| 21 | + |
| 22 | +### Fixed |
| 23 | + |
| 24 | +- Don't panic on empty spans when parsing Cargo.toml. |
| 25 | + [#13375](https://github.com/rust-lang/cargo/pull/13375) |
| 26 | + [#13376](https://github.com/rust-lang/cargo/pull/13376) |
| 27 | +- cargo-run: use Package ID Spec match packages |
| 28 | + [#13335](https://github.com/rust-lang/cargo/pull/13335) |
| 29 | + |
| 30 | +### Nightly only |
| 31 | + |
| 32 | +- 🔥 cargo-update: allows `--precise` to specify a yanked version of a package |
| 33 | + [#13333](https://github.com/rust-lang/cargo/pull/13333) |
| 34 | +- `-Zcheck-cfg`: Add `docsrs` cfg as a well known `--check-cfg` |
| 35 | + [#13383](https://github.com/rust-lang/cargo/pull/13383) |
| 36 | +- `-Zscript`: Improve errors related to cargo script |
| 37 | + [#13346](https://github.com/rust-lang/cargo/pull/13346) |
| 38 | +- `-Zpanic-abort-tests`: applies to doctests too |
| 39 | + [#13388](https://github.com/rust-lang/cargo/pull/13388) |
| 40 | + |
| 41 | +### Documentation |
| 42 | + |
| 43 | +- cargo-fetch: hide `cargo-fetch` recursive link in `--offline` man page. |
| 44 | + [#13364](https://github.com/rust-lang/cargo/pull/13364) |
| 45 | +- cargo-install: `--list` option description starting with uppercase |
| 46 | + [#13344](https://github.com/rust-lang/cargo/pull/13344) |
| 47 | +- Clarify the `version` field in `[package]` is optional in Cargo.toml |
| 48 | + [#13390](https://github.com/rust-lang/cargo/pull/13390) |
| 49 | +- Improve "Registry Authentication" docs |
| 50 | + [#13351](https://github.com/rust-lang/cargo/pull/13351) |
| 51 | + |
| 52 | +### Internal |
| 53 | + |
| 54 | +- ci: enable m1 runner |
| 55 | + [#13377](https://github.com/rust-lang/cargo/pull/13377) |
| 56 | +- console: Use new fancy `anstyle` API |
| 57 | + [#13368](https://github.com/rust-lang/cargo/pull/13368) |
| 58 | +- fingerprint: remove unnecessary Option in `Freshness::Dirty` |
| 59 | + [#13361](https://github.com/rust-lang/cargo/pull/13361) |
| 60 | + |
3 | 61 | ## Cargo 1.77 (2024-03-21)
|
4 |
| -[1a2666dd...HEAD](https://github.com/rust-lang/cargo/compare/1a2666dd...HEAD) |
| 62 | +[1a2666dd...rust-1.77.0](https://github.com/rust-lang/cargo/compare/1a2666dd...rust-1.77.0) |
5 | 63 |
|
6 | 64 | ### Added
|
7 | 65 |
|
| 66 | +- 🎉 Stabilize the package identifier format as [Package ID Spec](https://doc.rust-lang.org/nightly/cargo/reference/pkgid-spec.html). |
| 67 | + This format can be used across most of the commands in Cargo, including the |
| 68 | + `--package`/`-p` flag, `cargo pkgid`, `cargo metadata`, and JSON messages |
| 69 | + from `--message-format=json`. |
| 70 | + [#12914](https://github.com/rust-lang/cargo/pull/12914) |
| 71 | + [#13202](https://github.com/rust-lang/cargo/pull/13202) |
| 72 | + [#13311](https://github.com/rust-lang/cargo/pull/13311) |
| 73 | + [#13298](https://github.com/rust-lang/cargo/pull/13298) |
| 74 | + [#13322](https://github.com/rust-lang/cargo/pull/13322) |
| 75 | +- Add colors to `-Zhelp` console output |
| 76 | + [#13269](https://github.com/rust-lang/cargo/pull/13269) |
| 77 | +- build script: Extend the build directive syntax with `cargo::`. |
| 78 | + [#12201](https://github.com/rust-lang/cargo/pull/12201) |
| 79 | + [#13212](https://github.com/rust-lang/cargo/pull/13212) |
| 80 | + |
8 | 81 | ### Changed
|
9 | 82 |
|
| 83 | +- 🎉 Cargo now implicitly sets `strip = "debuginfo"` when `strip` is not set |
| 84 | + explicitly, and debuginfo is not enabled for any package being compiled. |
| 85 | + This would strip pre-existing debuginfo coming from the standard library, |
| 86 | + reducing the default size of release binaries considerably |
| 87 | + (from ~4.5 MiB down to ~450 KiB for helloworld on Linux x64). |
| 88 | + [#13257](https://github.com/rust-lang/cargo/pull/13257) |
| 89 | +- Add `rustc` style errors for manifest parsing. |
| 90 | + [#13172](https://github.com/rust-lang/cargo/pull/13172) |
| 91 | +- Deprecate rustc plugin support in cargo |
| 92 | + [#13248](https://github.com/rust-lang/cargo/pull/13248) |
10 | 93 | - cargo-vendor: Hold the mutate exclusive lock when vendoring.
|
11 | 94 | [#12509](https://github.com/rust-lang/cargo/pull/12509)
|
| 95 | +- crates-io: Set `Content-Type: application/json` only for requests with a body payload |
| 96 | + [#13264](https://github.com/rust-lang/cargo/pull/13264) |
12 | 97 |
|
13 | 98 | ### Fixed
|
14 | 99 |
|
| 100 | +- jobserver: inherit jobserver from env for all kinds of runner |
| 101 | + [#12776](https://github.com/rust-lang/cargo/pull/12776) |
| 102 | +- build script: Set `OUT_DIR` for all units with build scripts |
| 103 | + [#13204](https://github.com/rust-lang/cargo/pull/13204) |
| 104 | +- cargo-add: find the correct package with given features from Git repositories |
| 105 | + with multiple packages. |
| 106 | + [#13213](https://github.com/rust-lang/cargo/pull/13213) |
| 107 | +- cargo-fix: always inherit the jobserver |
| 108 | + [#13225](https://github.com/rust-lang/cargo/pull/13225) |
| 109 | +- cargo-fix: Call rustc fewer times to improve the performance. |
| 110 | + [#13243](https://github.com/rust-lang/cargo/pull/13243) |
| 111 | +- cargo-new: only inherit workspace package table if the new package is a member |
| 112 | + [#13261](https://github.com/rust-lang/cargo/pull/13261) |
| 113 | +- cargo-update: `--precise` accepts arbitrary git revisions |
| 114 | + [#13250](https://github.com/rust-lang/cargo/pull/13250) |
| 115 | +- manifest: Provide unused key warnings for lints table |
| 116 | + [#13262](https://github.com/rust-lang/cargo/pull/13262) |
| 117 | +- rustfix: Support inserting new lines. |
| 118 | + [#13226](https://github.com/rust-lang/cargo/pull/13226) |
| 119 | + |
15 | 120 | ### Nightly only
|
16 | 121 |
|
| 122 | +- 🔥 `-Zgit`: Implementation of shallow libgit2 fetches behind an unstable flag |
| 123 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#git) |
| 124 | + [#13252](https://github.com/rust-lang/cargo/pull/13252) |
| 125 | +- 🔥 Add unstable `--output-format` option to `cargo rustdoc`, providing tools |
| 126 | + with a way to lean on rustdoc’s experimental JSON format. |
| 127 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#output-format-for-rustdoc) |
| 128 | + [#12252](https://github.com/rust-lang/cargo/pull/12252) |
| 129 | + [#13284](https://github.com/rust-lang/cargo/pull/13284) |
| 130 | + [#13325](https://github.com/rust-lang/cargo/pull/13325) |
| 131 | +- `-Zcheck-cfg`: Rework `--check-cfg` generation comment |
| 132 | + [#13195](https://github.com/rust-lang/cargo/pull/13195) |
| 133 | +- `-Zcheck-cfg`: Go back to passing an empty `values()` when no features are declared |
| 134 | + [#13316](https://github.com/rust-lang/cargo/pull/13316) |
| 135 | +- `-Zprecise-pre-release`: the flag is added but not implemented yet. |
| 136 | + [#13296](https://github.com/rust-lang/cargo/pull/13296) |
| 137 | + [#13320](https://github.com/rust-lang/cargo/pull/13320) |
| 138 | +- `-Zpublic-dependency`: support publish package with a `public` field. |
| 139 | + [#13245](https://github.com/rust-lang/cargo/pull/13245) |
| 140 | +- `-Zpublic-dependency`: help text of `--public`/`--no-public` flags for `cargo add` |
| 141 | + [#13272](https://github.com/rust-lang/cargo/pull/13272) |
| 142 | +- `-Zscript`: Add prefix-char frontmatter syntax support |
| 143 | + [#13247](https://github.com/rust-lang/cargo/pull/13247) |
| 144 | +- `-Zscript`: Add multiple experimental manifest syntaxes |
| 145 | + [#13241](https://github.com/rust-lang/cargo/pull/13241) |
| 146 | +- `-Ztrim-paths`: remap common prefix only |
| 147 | + [#13210](https://github.com/rust-lang/cargo/pull/13210) |
| 148 | + |
17 | 149 | ### Documentation
|
18 | 150 |
|
| 151 | +- Added guidance on setting homepage in manifest |
| 152 | + [#13293](https://github.com/rust-lang/cargo/pull/13293) |
| 153 | +- Clarified how custom subcommands are looked up. |
| 154 | + [#13203](https://github.com/rust-lang/cargo/pull/13203) |
| 155 | +- Clarified why `du` function uses mutex |
| 156 | + [#13273](https://github.com/rust-lang/cargo/pull/13273) |
| 157 | +- Highlighted "How to find features enabled on dependencies" |
| 158 | + [#13305](https://github.com/rust-lang/cargo/pull/13305) |
| 159 | +- Delete sentence about parentheses being unsupported in license |
| 160 | + [#13292](https://github.com/rust-lang/cargo/pull/13292) |
| 161 | +- resolver: clarify how pre-release version is handled in dependency resolution. |
| 162 | + [#13286](https://github.com/rust-lang/cargo/pull/13286) |
| 163 | +- cargo-test: clarify the target selection of the test options. |
| 164 | + [#13236](https://github.com/rust-lang/cargo/pull/13236) |
| 165 | +- cargo-install: clarify `--path` is the installation source not destination |
| 166 | + [#13205](https://github.com/rust-lang/cargo/pull/13205) |
| 167 | +- contrib: Fix team HackMD links |
| 168 | + [#13237](https://github.com/rust-lang/cargo/pull/13237) |
| 169 | +- contrib: Highlight the non-blocking feature gating technique |
| 170 | + [#13307](https://github.com/rust-lang/cargo/pull/13307) |
| 171 | + |
19 | 172 | ### Internal
|
20 | 173 |
|
21 | 174 | - 🎉 New member crate [`cargo-util-schemas`](https://crates.io/crates/cargo-util-schemas)!
|
|
28 | 181 | [#13178](https://github.com/rust-lang/cargo/pull/13178)
|
29 | 182 | [#13185](https://github.com/rust-lang/cargo/pull/13185)
|
30 | 183 | [#13186](https://github.com/rust-lang/cargo/pull/13186)
|
| 184 | + [#13209](https://github.com/rust-lang/cargo/pull/13209) |
| 185 | + [#13267](https://github.com/rust-lang/cargo/pull/13267) |
| 186 | +- Updated to `gix` 0.57.1. |
| 187 | + [#13230](https://github.com/rust-lang/cargo/pull/13230) |
| 188 | +- cargo-fix: Remove error-format special-case in `cargo fix` |
| 189 | + [#13224](https://github.com/rust-lang/cargo/pull/13224) |
| 190 | +- cargo-credential: bump to 0.4.3 |
| 191 | + [#13221](https://github.com/rust-lang/cargo/pull/13221) |
| 192 | +- mdman: updated to `handlebars` 5.0.0. |
| 193 | + [#13168](https://github.com/rust-lang/cargo/pull/13168) |
| 194 | + [#13249](https://github.com/rust-lang/cargo/pull/13249) |
| 195 | +- rustfix: remove useless clippy rules and fix a typo |
| 196 | + [#13182](https://github.com/rust-lang/cargo/pull/13182) |
| 197 | +- ci: fix Dependabot's MSRV auto-update |
| 198 | + [#13265](https://github.com/rust-lang/cargo/pull/13265) |
| 199 | + [#13324](https://github.com/rust-lang/cargo/pull/13324) |
| 200 | + [#13268](https://github.com/rust-lang/cargo/pull/13268) |
| 201 | +- ci: Add [dependency dashboard](https://github.com/rust-lang/cargo/issues/13256). |
| 202 | + [#13255](https://github.com/rust-lang/cargo/pull/13255) |
| 203 | +- ci: update alpine docker tag to v3.19 |
| 204 | + [#13228](https://github.com/rust-lang/cargo/pull/13228) |
| 205 | +- ci: Improve GitHub Actions CI config |
| 206 | + [#13317](https://github.com/rust-lang/cargo/pull/13317) |
| 207 | +- resolver: do not panic when sorting empty summaries |
| 208 | + [#13287](https://github.com/rust-lang/cargo/pull/13287) |
31 | 209 |
|
32 | 210 | ## Cargo 1.76 (2024-02-08)
|
33 | 211 | [6790a512...rust-1.76.0](https://github.com/rust-lang/cargo/compare/6790a512...rust-1.76.0)
|
|
92 | 270 | [#12975](https://github.com/rust-lang/cargo/pull/12975)
|
93 | 271 | - Avoid writing CACHEDIR.TAG if it already exists.
|
94 | 272 | [#13132](https://github.com/rust-lang/cargo/pull/13132)
|
| 273 | +- Accept `?` in the `--package` flag if it's a valid pkgid spec. |
| 274 | + [#13315](https://github.com/rust-lang/cargo/pull/13315) |
| 275 | + [#13318](https://github.com/rust-lang/cargo/pull/13318) |
95 | 276 | - cargo-package: Only filter out `target` directory if it's in the package root.
|
96 | 277 | [#12944](https://github.com/rust-lang/cargo/pull/12944)
|
97 | 278 | - cargo-package: errors out when a build script doesn't exist or is outside the package root.
|
|
184 | 365 | [#13088](https://github.com/rust-lang/cargo/pull/13088)
|
185 | 366 | - Updated to `windows-sys` 0.52.0.
|
186 | 367 | [#13089](https://github.com/rust-lang/cargo/pull/13089)
|
| 368 | +- Updated to `tracing` 0.1.37 for being be compatible with rustc_log. |
| 369 | + [#13239](https://github.com/rust-lang/cargo/pull/13239) |
| 370 | + [#13242](https://github.com/rust-lang/cargo/pull/13242) |
187 | 371 | - Re-enable flaky gitoxide auth tests thanks to update to `gix-config`.
|
188 | 372 | [#13117](https://github.com/rust-lang/cargo/pull/13117)
|
189 | 373 | [#13129](https://github.com/rust-lang/cargo/pull/13129)
|
|
0 commit comments