|
1 | 1 | # Changelog
|
2 | 2 |
|
3 | 3 | ## Cargo 1.77 (2024-03-21)
|
4 |
| -[1a2666dd...HEAD](https://github.com/rust-lang/cargo/compare/1a2666dd...HEAD) |
| 4 | +[1a2666dd...rust-1.77.0](https://github.com/rust-lang/cargo/compare/1a2666dd...rust-1.77.0) |
5 | 5 |
|
6 | 6 | ### Added
|
7 | 7 |
|
| 8 | +- 🎉 Stabilize the package identifier format as [Package ID Spec](https://doc.rust-lang.org/nightly/cargo/reference/pkgid-spec.html). |
| 9 | + This format can be used across most of the commands in Cargo, including the |
| 10 | + `--package`/`-p` flag, `cargo pkgid`, `cargo metadata`, and JSON messages |
| 11 | + from `--message-format=json`. |
| 12 | + [#12914](https://github.com/rust-lang/cargo/pull/12914) |
| 13 | + [#13202](https://github.com/rust-lang/cargo/pull/13202) |
| 14 | + [#13311](https://github.com/rust-lang/cargo/pull/13311) |
| 15 | + [#13298](https://github.com/rust-lang/cargo/pull/13298) |
| 16 | + [#13322](https://github.com/rust-lang/cargo/pull/13322) |
| 17 | +- Add colors to `-Zhelp` console output |
| 18 | + [#13269](https://github.com/rust-lang/cargo/pull/13269) |
| 19 | +- build script: Extend the build directive syntax with `cargo::`. |
| 20 | + [#12201](https://github.com/rust-lang/cargo/pull/12201) |
| 21 | + [#13212](https://github.com/rust-lang/cargo/pull/13212) |
| 22 | + |
8 | 23 | ### Changed
|
9 | 24 |
|
| 25 | +- 🎉 Cargo now implicitly sets `strip = "debuginfo"` when `strip` is not set |
| 26 | + explicitly, and debuginfo is not enabled for any package being compiled. |
| 27 | + This would strip pre-existing debuginfo coming from the standard library, |
| 28 | + reducing the default size of release binaries considerably |
| 29 | + (from ~4.5 MiB down to ~450 KiB for helloworld on Linux x64). |
| 30 | + [#13257](https://github.com/rust-lang/cargo/pull/13257) |
| 31 | +- Add `rustc` style errors for manifest parsing. |
| 32 | + [#13172](https://github.com/rust-lang/cargo/pull/13172) |
| 33 | +- Deprecate rustc plugin support in cargo |
| 34 | + [#13248](https://github.com/rust-lang/cargo/pull/13248) |
10 | 35 | - cargo-vendor: Hold the mutate exclusive lock when vendoring.
|
11 | 36 | [#12509](https://github.com/rust-lang/cargo/pull/12509)
|
| 37 | +- crates-io: Set `Content-Type: application/json` only for requests with a body payload |
| 38 | + [#13264](https://github.com/rust-lang/cargo/pull/13264) |
12 | 39 |
|
13 | 40 | ### Fixed
|
14 | 41 |
|
| 42 | +- Accept `?` in the `--package` flag if it's a valid pkgid spec. |
| 43 | + [#13315](https://github.com/rust-lang/cargo/pull/13315) |
| 44 | +- jobserver: inherit jobserver from env for all kinds of runner |
| 45 | + [#12776](https://github.com/rust-lang/cargo/pull/12776) |
| 46 | +- build script: Set `OUT_DIR` for all units with build scripts |
| 47 | + [#13204](https://github.com/rust-lang/cargo/pull/13204) |
| 48 | +- cargo-add: find the correct package with given features from Git repositories |
| 49 | + with multiple packages. |
| 50 | + [#13213](https://github.com/rust-lang/cargo/pull/13213) |
| 51 | +- cargo-fix: always inherit the jobserver |
| 52 | + [#13225](https://github.com/rust-lang/cargo/pull/13225) |
| 53 | +- cargo-fix: Call rustc fewer times to improve the performance. |
| 54 | + [#13243](https://github.com/rust-lang/cargo/pull/13243) |
| 55 | +- cargo-new: only inherit workspace package table if the new package is a member |
| 56 | + [#13261](https://github.com/rust-lang/cargo/pull/13261) |
| 57 | +- cargo-update: `--precise` accepts arbitrary git revisions |
| 58 | + [#13250](https://github.com/rust-lang/cargo/pull/13250) |
| 59 | +- manifest: Provide unused key warnings for lints table |
| 60 | + [#13262](https://github.com/rust-lang/cargo/pull/13262) |
| 61 | +- rustfix: Support inserting new lines. |
| 62 | + [#13226](https://github.com/rust-lang/cargo/pull/13226) |
| 63 | + |
15 | 64 | ### Nightly only
|
16 | 65 |
|
| 66 | +- 🔥 `-Zgit`: Implementation of shallow libgit2 fetches behind an unstable flag |
| 67 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#git) |
| 68 | + [#13252](https://github.com/rust-lang/cargo/pull/13252) |
| 69 | +- 🔥 Add unstable `--output-format` option to `cargo rustdoc`, providing tools |
| 70 | + with a way to lean on rustdoc’s experimental JSON format. |
| 71 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#output-format-for-rustdoc) |
| 72 | + [#12252](https://github.com/rust-lang/cargo/pull/12252) |
| 73 | + [#13284](https://github.com/rust-lang/cargo/pull/13284) |
| 74 | + [#13325](https://github.com/rust-lang/cargo/pull/13325) |
| 75 | +- `-Zcheck-cfg`: Rework `--check-cfg` generation comment |
| 76 | + [#13195](https://github.com/rust-lang/cargo/pull/13195) |
| 77 | +- `-Zcheck-cfg`: Go back to passing an empty `values()` when no features are declared |
| 78 | + [#13316](https://github.com/rust-lang/cargo/pull/13316) |
| 79 | +- `-Zprecise-pre-release`: the flag is added but not implemented yet. |
| 80 | + [#13296](https://github.com/rust-lang/cargo/pull/13296) |
| 81 | + [#13320](https://github.com/rust-lang/cargo/pull/13320) |
| 82 | +- `-Zpublic-dependency`: support publish package with a `public` field. |
| 83 | + [#13245](https://github.com/rust-lang/cargo/pull/13245) |
| 84 | +- `-Zpublic-dependency`: help text of `--public`/`--no-public` flags for `cargo add` |
| 85 | + [#13272](https://github.com/rust-lang/cargo/pull/13272) |
| 86 | +- `-Zscript`: Add prefix-char frontmatter syntax support |
| 87 | + [#13247](https://github.com/rust-lang/cargo/pull/13247) |
| 88 | +- `-Zscript`: Add multiple experimental manifest syntaxes |
| 89 | + [#13241](https://github.com/rust-lang/cargo/pull/13241) |
| 90 | +- `-Ztrim-paths`: remap common prefix only |
| 91 | + [#13210](https://github.com/rust-lang/cargo/pull/13210) |
| 92 | + |
17 | 93 | ### Documentation
|
18 | 94 |
|
| 95 | +- Added guidance on setting homepage in manifest |
| 96 | + [#13293](https://github.com/rust-lang/cargo/pull/13293) |
| 97 | +- Clarified how custom subcommands are looked up. |
| 98 | + [#13203](https://github.com/rust-lang/cargo/pull/13203) |
| 99 | +- Clarified why `du` function uses mutex |
| 100 | + [#13273](https://github.com/rust-lang/cargo/pull/13273) |
| 101 | +- Highlighted "How to find features enabled on dependencies" |
| 102 | + [#13305](https://github.com/rust-lang/cargo/pull/13305) |
| 103 | +- Delete sentence about parentheses being unsupported in license |
| 104 | + [#13292](https://github.com/rust-lang/cargo/pull/13292) |
| 105 | +- resolver: clarify how pre-release version is handled in dependency resolution. |
| 106 | + [#13286](https://github.com/rust-lang/cargo/pull/13286) |
| 107 | +- cargo-test: clarify the target selection of the test options. |
| 108 | + [#13236](https://github.com/rust-lang/cargo/pull/13236) |
| 109 | +- cargo-install: clarify `--path` is the installation source not destination |
| 110 | + [#13205](https://github.com/rust-lang/cargo/pull/13205) |
| 111 | +- contrib: Fix team HackMD links |
| 112 | + [#13237](https://github.com/rust-lang/cargo/pull/13237) |
| 113 | +- contrib: Highlight the non-blocking feature gating technique |
| 114 | + [#13307](https://github.com/rust-lang/cargo/pull/13307) |
| 115 | + |
19 | 116 | ### Internal
|
20 | 117 |
|
21 | 118 | - 🎉 New member crate [`cargo-util-schemas`](https://crates.io/crates/cargo-util-schemas)!
|
|
28 | 125 | [#13178](https://github.com/rust-lang/cargo/pull/13178)
|
29 | 126 | [#13185](https://github.com/rust-lang/cargo/pull/13185)
|
30 | 127 | [#13186](https://github.com/rust-lang/cargo/pull/13186)
|
| 128 | + [#13209](https://github.com/rust-lang/cargo/pull/13209) |
| 129 | + [#13267](https://github.com/rust-lang/cargo/pull/13267) |
| 130 | +- Updated to `gix` 0.57.1. |
| 131 | + [#13230](https://github.com/rust-lang/cargo/pull/13230) |
| 132 | +- Updated to `tracing` 0.1.37 for being be compatible with rustc_log. |
| 133 | + [#13239](https://github.com/rust-lang/cargo/pull/13239) |
| 134 | +- cargo-fix: Remove error-format special-case in `cargo fix` |
| 135 | + [#13224](https://github.com/rust-lang/cargo/pull/13224) |
| 136 | +- cargo-credential: bump to 0.4.3 |
| 137 | + [#13221](https://github.com/rust-lang/cargo/pull/13221) |
| 138 | +- mdman: updated to `handlebars` 5.0.0. |
| 139 | + [#13168](https://github.com/rust-lang/cargo/pull/13168) |
| 140 | + [#13249](https://github.com/rust-lang/cargo/pull/13249) |
| 141 | +- rustfix: remove useless clippy rules and fix a typo |
| 142 | + [#13182](https://github.com/rust-lang/cargo/pull/13182) |
| 143 | +- ci: fix Dependabot's MSRV auto-update |
| 144 | + [#13265](https://github.com/rust-lang/cargo/pull/13265) |
| 145 | + [#13324](https://github.com/rust-lang/cargo/pull/13324) |
| 146 | + [#13268](https://github.com/rust-lang/cargo/pull/13268) |
| 147 | +- ci: Add [dependency dashboard](https://github.com/rust-lang/cargo/issues/13256). |
| 148 | + [#13255](https://github.com/rust-lang/cargo/pull/13255) |
| 149 | +- ci: update alpine docker tag to v3.19 |
| 150 | + [#13228](https://github.com/rust-lang/cargo/pull/13228) |
| 151 | +- ci: Improve GitHub Actions CI config |
| 152 | + [#13317](https://github.com/rust-lang/cargo/pull/13317) |
| 153 | +- resolver: do not panic when sorting empty summaries |
| 154 | + [#13287](https://github.com/rust-lang/cargo/pull/13287) |
31 | 155 |
|
32 | 156 | ## Cargo 1.76 (2024-02-08)
|
33 | 157 | [6790a512...rust-1.76.0](https://github.com/rust-lang/cargo/compare/6790a512...rust-1.76.0)
|
|
0 commit comments