From 708e23369e39dba7c8776b34140b0e0639a9015a Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Sat, 3 Feb 2024 20:50:40 -0500 Subject: [PATCH 1/4] Bump to 0.79.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 410409cd12c..7853e6a3bb6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -252,7 +252,7 @@ dependencies = [ [[package]] name = "cargo" -version = "0.78.0" +version = "0.79.0" dependencies = [ "annotate-snippets", "anstream", diff --git a/Cargo.toml b/Cargo.toml index 5e216220f97..92095362011 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -124,7 +124,7 @@ self_named_module_files = "warn" [package] name = "cargo" -version = "0.78.0" +version = "0.79.0" edition.workspace = true license.workspace = true rust-version = "1.75.0" # MSRV:1 From 5046f25d05310805d62cc7b46b7ffcf27166334e Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Sun, 4 Feb 2024 11:36:13 -0500 Subject: [PATCH 2/4] Update changelog for 1.77.0 --- CHANGELOG.md | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 125 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 458149f7837..fdd87b20a8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,21 +1,118 @@ # Changelog ## Cargo 1.77 (2024-03-21) -[1a2666dd...HEAD](https://github.com/rust-lang/cargo/compare/1a2666dd...HEAD) +[1a2666dd...rust-1.77.0](https://github.com/rust-lang/cargo/compare/1a2666dd...rust-1.77.0) ### Added +- πŸŽ‰ Stabilize the package identifier format as [Package ID Spec](https://doc.rust-lang.org/nightly/cargo/reference/pkgid-spec.html). + This format can be used across most of the commands in Cargo, including the + `--package`/`-p` flag, `cargo pkgid`, `cargo metadata`, and JSON messages + from `--message-format=json`. + [#12914](https://github.com/rust-lang/cargo/pull/12914) + [#13202](https://github.com/rust-lang/cargo/pull/13202) + [#13311](https://github.com/rust-lang/cargo/pull/13311) + [#13298](https://github.com/rust-lang/cargo/pull/13298) + [#13322](https://github.com/rust-lang/cargo/pull/13322) +- Add colors to `-Zhelp` console output + [#13269](https://github.com/rust-lang/cargo/pull/13269) +- build script: Extend the build directive syntax with `cargo::`. + [#12201](https://github.com/rust-lang/cargo/pull/12201) + [#13212](https://github.com/rust-lang/cargo/pull/13212) + ### Changed +- πŸŽ‰ Cargo now implicitly sets `strip = "debuginfo"` when `strip` is not set + explicitly, and debuginfo is not enabled for any package being compiled. + This would strip pre-existing debuginfo coming from the standard library, + reducing the default size of release binaries considerably + (from ~4.5 MiB down to ~450 KiB for helloworld on Linux x64). + [#13257](https://github.com/rust-lang/cargo/pull/13257) +- Add `rustc` style errors for manifest parsing. + [#13172](https://github.com/rust-lang/cargo/pull/13172) +- Deprecate rustc plugin support in cargo + [#13248](https://github.com/rust-lang/cargo/pull/13248) - cargo-vendor: Hold the mutate exclusive lock when vendoring. [#12509](https://github.com/rust-lang/cargo/pull/12509) +- crates-io: Set `Content-Type: application/json` only for requests with a body payload + [#13264](https://github.com/rust-lang/cargo/pull/13264) ### Fixed +- Accept `?` in the `--package` flag if it's a valid pkgid spec. + [#13315](https://github.com/rust-lang/cargo/pull/13315) +- jobserver: inherit jobserver from env for all kinds of runner + [#12776](https://github.com/rust-lang/cargo/pull/12776) +- build script: Set `OUT_DIR` for all units with build scripts + [#13204](https://github.com/rust-lang/cargo/pull/13204) +- cargo-add: find the correct package with given features from Git repositories + with multiple packages. + [#13213](https://github.com/rust-lang/cargo/pull/13213) +- cargo-fix: always inherit the jobserver + [#13225](https://github.com/rust-lang/cargo/pull/13225) +- cargo-fix: Call rustc fewer times to improve the performance. + [#13243](https://github.com/rust-lang/cargo/pull/13243) +- cargo-new: only inherit workspace package table if the new package is a member + [#13261](https://github.com/rust-lang/cargo/pull/13261) +- cargo-update: `--precise` accepts arbitrary git revisions + [#13250](https://github.com/rust-lang/cargo/pull/13250) +- manifest: Provide unused key warnings for lints table + [#13262](https://github.com/rust-lang/cargo/pull/13262) +- rustfix: Support inserting new lines. + [#13226](https://github.com/rust-lang/cargo/pull/13226) + ### Nightly only +- πŸ”₯ `-Zgit`: Implementation of shallow libgit2 fetches behind an unstable flag + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#git) + [#13252](https://github.com/rust-lang/cargo/pull/13252) +- πŸ”₯ Add unstable `--output-format` option to `cargo rustdoc`, providing tools + with a way to lean on rustdoc’s experimental JSON format. + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#output-format-for-rustdoc) + [#12252](https://github.com/rust-lang/cargo/pull/12252) + [#13284](https://github.com/rust-lang/cargo/pull/13284) + [#13325](https://github.com/rust-lang/cargo/pull/13325) +- `-Zcheck-cfg`: Rework `--check-cfg` generation comment + [#13195](https://github.com/rust-lang/cargo/pull/13195) +- `-Zcheck-cfg`: Go back to passing an empty `values()` when no features are declared + [#13316](https://github.com/rust-lang/cargo/pull/13316) +- `-Zprecise-pre-release`: the flag is added but not implemented yet. + [#13296](https://github.com/rust-lang/cargo/pull/13296) + [#13320](https://github.com/rust-lang/cargo/pull/13320) +- `-Zpublic-dependency`: support publish package with a `public` field. + [#13245](https://github.com/rust-lang/cargo/pull/13245) +- `-Zpublic-dependency`: help text of `--public`/`--no-public` flags for `cargo add` + [#13272](https://github.com/rust-lang/cargo/pull/13272) +- `-Zscript`: Add prefix-char frontmatter syntax support + [#13247](https://github.com/rust-lang/cargo/pull/13247) +- `-Zscript`: Add multiple experimental manifest syntaxes + [#13241](https://github.com/rust-lang/cargo/pull/13241) +- `-Ztrim-paths`: remap common prefix only + [#13210](https://github.com/rust-lang/cargo/pull/13210) + ### Documentation +- Added guidance on setting homepage in manifest + [#13293](https://github.com/rust-lang/cargo/pull/13293) +- Clarified how custom subcommands are looked up. + [#13203](https://github.com/rust-lang/cargo/pull/13203) +- Clarified why `du` function uses mutex + [#13273](https://github.com/rust-lang/cargo/pull/13273) +- Highlighted "How to find features enabled on dependencies" + [#13305](https://github.com/rust-lang/cargo/pull/13305) +- Delete sentence about parentheses being unsupported in license + [#13292](https://github.com/rust-lang/cargo/pull/13292) +- resolver: clarify how pre-release version is handled in dependency resolution. + [#13286](https://github.com/rust-lang/cargo/pull/13286) +- cargo-test: clarify the target selection of the test options. + [#13236](https://github.com/rust-lang/cargo/pull/13236) +- cargo-install: clarify `--path` is the installation source not destination + [#13205](https://github.com/rust-lang/cargo/pull/13205) +- contrib: Fix team HackMD links + [#13237](https://github.com/rust-lang/cargo/pull/13237) +- contrib: Highlight the non-blocking feature gating technique + [#13307](https://github.com/rust-lang/cargo/pull/13307) + ### Internal - πŸŽ‰ New member crate [`cargo-util-schemas`](https://crates.io/crates/cargo-util-schemas)! @@ -28,6 +125,33 @@ [#13178](https://github.com/rust-lang/cargo/pull/13178) [#13185](https://github.com/rust-lang/cargo/pull/13185) [#13186](https://github.com/rust-lang/cargo/pull/13186) + [#13209](https://github.com/rust-lang/cargo/pull/13209) + [#13267](https://github.com/rust-lang/cargo/pull/13267) +- Updated to `gix` 0.57.1. + [#13230](https://github.com/rust-lang/cargo/pull/13230) +- Updated to `tracing` 0.1.37 for being be compatible with rustc_log. + [#13239](https://github.com/rust-lang/cargo/pull/13239) +- cargo-fix: Remove error-format special-case in `cargo fix` + [#13224](https://github.com/rust-lang/cargo/pull/13224) +- cargo-credential: bump to 0.4.3 + [#13221](https://github.com/rust-lang/cargo/pull/13221) +- mdman: updated to `handlebars` 5.0.0. + [#13168](https://github.com/rust-lang/cargo/pull/13168) + [#13249](https://github.com/rust-lang/cargo/pull/13249) +- rustfix: remove useless clippy rules and fix a typo + [#13182](https://github.com/rust-lang/cargo/pull/13182) +- ci: fix Dependabot's MSRV auto-update + [#13265](https://github.com/rust-lang/cargo/pull/13265) + [#13324](https://github.com/rust-lang/cargo/pull/13324) + [#13268](https://github.com/rust-lang/cargo/pull/13268) +- ci: Add [dependency dashboard](https://github.com/rust-lang/cargo/issues/13256). + [#13255](https://github.com/rust-lang/cargo/pull/13255) +- ci: update alpine docker tag to v3.19 + [#13228](https://github.com/rust-lang/cargo/pull/13228) +- ci: Improve GitHub Actions CI config + [#13317](https://github.com/rust-lang/cargo/pull/13317) +- resolver: do not panic when sorting empty summaries + [#13287](https://github.com/rust-lang/cargo/pull/13287) ## Cargo 1.76 (2024-02-08) [6790a512...rust-1.76.0](https://github.com/rust-lang/cargo/compare/6790a512...rust-1.76.0) From ed34dd845ff9b438ab40201cfa25cceb47957c79 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Sun, 4 Feb 2024 09:51:33 -0500 Subject: [PATCH 3/4] Update changelog for 1.78.0 --- CHANGELOG.md | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdd87b20a8a..716cf593107 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,63 @@ # Changelog +## Cargo 1.78 (2024-05-02) +[7bb7b539...HEAD](https://github.com/rust-lang/cargo/compare/7bb7b539...HEAD) + +### Added + +- Stabilize lockfile format v4. Lockfile v3 is still the default version. + [#12852](https://github.com/rust-lang/cargo/pull/12852) + +### Changed + +- cargo-new: Print a 'Creating', rather than 'Created' status + [#13367](https://github.com/rust-lang/cargo/pull/13367) +- cargo-new: Print a note, rather than a comment, for more information + [#13371](https://github.com/rust-lang/cargo/pull/13371) +- Deprecate non-extension `.cargo/config` files. + [#13349](https://github.com/rust-lang/cargo/pull/13349) +- Don't print rustdoc command lines on failure by default + [#13387](https://github.com/rust-lang/cargo/pull/13387) + +### Fixed + +- Don't panic on empty spans when parsing Cargo.toml. + [#13375](https://github.com/rust-lang/cargo/pull/13375) + [#13376](https://github.com/rust-lang/cargo/pull/13376) +- cargo-run: use Package ID Spec match packages + [#13335](https://github.com/rust-lang/cargo/pull/13335) + +### Nightly only + +- πŸ”₯ cargo-update: allows `--precise` to specify a yanked version of a package + [#13333](https://github.com/rust-lang/cargo/pull/13333) +- `-Zcheck-cfg`: Add `docsrs` cfg as a well known `--check-cfg` + [#13383](https://github.com/rust-lang/cargo/pull/13383) +- `-Zscript`: Improve errors related to cargo script + [#13346](https://github.com/rust-lang/cargo/pull/13346) +- `-Zpanic-abort-tests`: applies to doctests too + [#13388](https://github.com/rust-lang/cargo/pull/13388) + +### Documentation + +- cargo-fetch: hide `cargo-fetch` recursive link in `--offline` man page. + [#13364](https://github.com/rust-lang/cargo/pull/13364) +- cargo-install: `--list` option description starting with uppercase + [#13344](https://github.com/rust-lang/cargo/pull/13344) +- Clarify the `version` field in `[package]` is optional in Cargo.toml + [#13390](https://github.com/rust-lang/cargo/pull/13390) +- Improve "Registry Authentication" docs + [#13351](https://github.com/rust-lang/cargo/pull/13351) + +### Internal + +- ci: enable m1 runner + [#13377](https://github.com/rust-lang/cargo/pull/13377) +- console: Use new fancy `anstyle` API + [#13368](https://github.com/rust-lang/cargo/pull/13368) +- fingerprint: remove unnecessary Option in `Freshness::Dirty` + [#13361](https://github.com/rust-lang/cargo/pull/13361) + ## Cargo 1.77 (2024-03-21) [1a2666dd...rust-1.77.0](https://github.com/rust-lang/cargo/compare/1a2666dd...rust-1.77.0) From b14c5feeba9ef78bb5d7d995ac64c640abc1c6ad Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Sun, 4 Feb 2024 11:58:26 -0500 Subject: [PATCH 4/4] changelog: move backported PRs to corresponding versions --- CHANGELOG.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 716cf593107..18c736e4a70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -97,8 +97,6 @@ ### Fixed -- Accept `?` in the `--package` flag if it's a valid pkgid spec. - [#13315](https://github.com/rust-lang/cargo/pull/13315) - jobserver: inherit jobserver from env for all kinds of runner [#12776](https://github.com/rust-lang/cargo/pull/12776) - build script: Set `OUT_DIR` for all units with build scripts @@ -187,8 +185,6 @@ [#13267](https://github.com/rust-lang/cargo/pull/13267) - Updated to `gix` 0.57.1. [#13230](https://github.com/rust-lang/cargo/pull/13230) -- Updated to `tracing` 0.1.37 for being be compatible with rustc_log. - [#13239](https://github.com/rust-lang/cargo/pull/13239) - cargo-fix: Remove error-format special-case in `cargo fix` [#13224](https://github.com/rust-lang/cargo/pull/13224) - cargo-credential: bump to 0.4.3 @@ -274,6 +270,9 @@ [#12975](https://github.com/rust-lang/cargo/pull/12975) - Avoid writing CACHEDIR.TAG if it already exists. [#13132](https://github.com/rust-lang/cargo/pull/13132) +- Accept `?` in the `--package` flag if it's a valid pkgid spec. + [#13315](https://github.com/rust-lang/cargo/pull/13315) + [#13318](https://github.com/rust-lang/cargo/pull/13318) - cargo-package: Only filter out `target` directory if it's in the package root. [#12944](https://github.com/rust-lang/cargo/pull/12944) - cargo-package: errors out when a build script doesn't exist or is outside the package root. @@ -366,6 +365,9 @@ [#13088](https://github.com/rust-lang/cargo/pull/13088) - Updated to `windows-sys` 0.52.0. [#13089](https://github.com/rust-lang/cargo/pull/13089) +- Updated to `tracing` 0.1.37 for being be compatible with rustc_log. + [#13239](https://github.com/rust-lang/cargo/pull/13239) + [#13242](https://github.com/rust-lang/cargo/pull/13242) - Re-enable flaky gitoxide auth tests thanks to update to `gix-config`. [#13117](https://github.com/rust-lang/cargo/pull/13117) [#13129](https://github.com/rust-lang/cargo/pull/13129)