Skip to content

Commit 946fbf9

Browse files
committed
Auto merge of #12966 - weihanglo:version-bump, r=epage
Bump to 0.77.0; update changelog [rendered](https://github.com/weihanglo/cargo/blob/version-bump/CHANGELOG.md)
2 parents a4764b0 + b811a5d commit 946fbf9

File tree

3 files changed

+190
-3
lines changed

3 files changed

+190
-3
lines changed

CHANGELOG.md

Lines changed: 188 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,218 @@
11
# Changelog
22

3+
## Cargo 1.76 (2024-02-08)
4+
[6790a512...HEAD](https://github.com/rust-lang/cargo/compare/6790a512...HEAD)
5+
6+
### Added
7+
8+
### Changed
9+
10+
### Fixed
11+
12+
### Nightly only
13+
14+
- 🔥 The `-Zgc` flag enables garbage collection for deleting old, unused files
15+
in cargo's cache. That is, downloaded source files and registry index under
16+
the `CARGO_HOME` directory.
17+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#gc)
18+
[#12634](https://github.com/rust-lang/cargo/pull/12634)
19+
[#12958](https://github.com/rust-lang/cargo/pull/12958)
20+
21+
### Documentation
22+
23+
### Internal
24+
25+
- Refactored `Cargo.toml` parsing code in preparation of extracting an offical schema API.
26+
[#12954](https://github.com/rust-lang/cargo/pull/12954)
27+
[#12960](https://github.com/rust-lang/cargo/pull/12960)
28+
[#12961](https://github.com/rust-lang/cargo/pull/12961)
29+
- Fixed `--quiet` being used with nested subcommands.
30+
[#12959](https://github.com/rust-lang/cargo/pull/12959)
31+
332
## Cargo 1.75 (2023-12-28)
4-
[59596f0f...HEAD](https://github.com/rust-lang/cargo/compare/59596f0f...HEAD)
33+
[59596f0f...rust-1.75.0](https://github.com/rust-lang/cargo/compare/59596f0f...rust-1.75.0)
534

635
### Added
736

37+
- `package.version` field in `Cargo.toml` is now optional and defaults to `0.0.0`.
38+
Packages without the `package.version` field cannot be published.
39+
[#12786](https://github.com/rust-lang/cargo/pull/12786)
40+
- Links in `--timings` and `cargo doc` outputs are clickable on supported terminals,
41+
controllable through `term.hyperlinks` config value.
42+
[#12889](https://github.com/rust-lang/cargo/pull/12889)
43+
- Print environment variables for build script executions with `-vv`.
44+
[#12829](https://github.com/rust-lang/cargo/pull/12829)
45+
- cargo-new: add new packages to [workspace.members] automatically.
46+
[#12779](https://github.com/rust-lang/cargo/pull/12779)
47+
- cargo-doc: print a new `Generated` status displaying the full path.
48+
[#12859](https://github.com/rust-lang/cargo/pull/12859)
49+
850
### Changed
951

52+
- cargo-new: warn if crate name doesn't follow snake_case or kebab-case.
53+
[#12766](https://github.com/rust-lang/cargo/pull/12766)
54+
- cargo-install: clarify the arg `<crate>` to install is positional.
55+
[#12841](https://github.com/rust-lang/cargo/pull/12841)
56+
- cargo-install: Suggest an alternative version on MSRV failure.
57+
[#12798](https://github.com/rust-lang/cargo/pull/12798)
58+
- cargo-install: reports more detailed SemVer errors.
59+
[#12924](https://github.com/rust-lang/cargo/pull/12924)
60+
- cargo-install: install only once if there are crates duplicated.
61+
[#12868](https://github.com/rust-lang/cargo/pull/12868)
62+
- cargo-remove: Clarify flag behavior of different dependency kinds.
63+
[#12823](https://github.com/rust-lang/cargo/pull/12823)
64+
- cargo-remove: suggest the dependency to remove exists only in the other section.
65+
[#12865](https://github.com/rust-lang/cargo/pull/12865)
66+
- cargo-update: Do not call it "Downgrading" when difference is only build metadata.
67+
[#12796](https://github.com/rust-lang/cargo/pull/12796)
68+
- Enhanced help text to clarify `--test` flag is for Cargo targets, not test functions.
69+
[#12915](https://github.com/rust-lang/cargo/pull/12915)
70+
- Included package name/version in build script warnings.
71+
[#12799](https://github.com/rust-lang/cargo/pull/12799)
72+
- Provide next steps for bad -Z flag.
73+
[#12857](https://github.com/rust-lang/cargo/pull/12857)
74+
- Suggest `cargo search` when `cargo-<command>` cannot be found.
75+
[#12840](https://github.com/rust-lang/cargo/pull/12840)
76+
- Do not allow empty feature name.
77+
[#12928](https://github.com/rust-lang/cargo/pull/12928)
78+
- Added unsupported short flag suggestion for `--target` and `--exclude` flags.
79+
[#12805](https://github.com/rust-lang/cargo/pull/12805)
80+
- Added unsupported short flag suggestion for `--out-dir` flag.
81+
[#12755](https://github.com/rust-lang/cargo/pull/12755)
82+
- Added unsupported lowercase `-z` flag suggestion for `-Z` flag.
83+
[#12788](https://github.com/rust-lang/cargo/pull/12788)
84+
- Added better suggestion for unsupported `--path` flag.
85+
[#12811](https://github.com/rust-lang/cargo/pull/12811)
86+
- Added detailed message when target directory path is invalid.
87+
[#12820](https://github.com/rust-lang/cargo/pull/12820)
88+
1089
### Fixed
1190

1291
- Fixed corruption when cargo was killed while writing to files.
1392
[#12744](https://github.com/rust-lang/cargo/pull/12744)
93+
- cargo-add: Preserve more comments
94+
[#12838](https://github.com/rust-lang/cargo/pull/12838)
95+
- cargo-fix: preserve jobserver file descriptors on rustc invocation.
96+
[#12951](https://github.com/rust-lang/cargo/pull/12951)
97+
- cargo-remove: Preserve feature comments
98+
[#12837](https://github.com/rust-lang/cargo/pull/12837)
99+
- Removed unnecessary backslash in timings HTML report when error happens.
100+
[#12934](https://github.com/rust-lang/cargo/pull/12934)
101+
- Fixed error message that invalid a feature name can contain `-`.
102+
[#12939](https://github.com/rust-lang/cargo/pull/12939)
103+
- When there's a version of a dependency in the lockfile,
104+
Cargo would use that "exact" version, including the build metadata.
105+
[#12772](https://github.com/rust-lang/cargo/pull/12772)
14106

15107
### Nightly only
16108

109+
- Added `Edition2024` unstable feature.
110+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024)
111+
[#12771](https://github.com/rust-lang/cargo/pull/12771)
112+
- 🔥 The `-Ztrim-paths` feature adds a new profile setting to control how paths
113+
are sanitized in the resulting binary.
114+
([RFC 3127](https://github.com/rust-lang/rfcs/blob/master/text/3127-trim-paths.md))
115+
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-trim-paths-option))
116+
[#12625](https://github.com/rust-lang/cargo/pull/12625)
117+
[#12900](https://github.com/rust-lang/cargo/pull/12900)
118+
[#12908](https://github.com/rust-lang/cargo/pull/12908)
119+
- `-Zcheck-cfg`: Adjusted for new rustc syntax and behavior.
120+
[#12845](https://github.com/rust-lang/cargo/pull/12845)
121+
- `-Zcheck-cfg`: Remove outdated option to `-Zcheck-cfg` warnings.
122+
[#12884](https://github.com/rust-lang/cargo/pull/12884)
123+
- `public-dependency`: Support `public` dependency configuration with workspace deps.
124+
[#12817](https://github.com/rust-lang/cargo/pull/12817)
125+
17126
### Documentation
18127

19128
- profile: add missing `strip` info.
20129
[#12754](https://github.com/rust-lang/cargo/pull/12754)
130+
- features: a note about the new limit on number of features.
131+
[#12913](https://github.com/rust-lang/cargo/pull/12913)
132+
- crates-io: Add doc comment for `NewCrate` struct.
133+
[#12782](https://github.com/rust-lang/cargo/pull/12782)
134+
- resolver: Highlight commands to answer dep resolution questions.
135+
[#12903](https://github.com/rust-lang/cargo/pull/12903)
136+
- cargo-bench: `--bench` is passed in unconditionally to bench harnesses.
137+
[#12850](https://github.com/rust-lang/cargo/pull/12850)
138+
- cargo-login: mention args after `--` in manpage.
139+
[#12832](https://github.com/rust-lang/cargo/pull/12832)
140+
- cargo-vendor: clarify config to use vendored source is printed to stdout
141+
[#12893](https://github.com/rust-lang/cargo/pull/12893)
142+
- manifest: update to SPDX 2.3 license expression and 3.20 license list.
143+
[#12827](https://github.com/rust-lang/cargo/pull/12827)
144+
- contrib: Policy on manifest editing
145+
[#12836](https://github.com/rust-lang/cargo/pull/12836)
146+
- contrib: use `AND` search terms in mdbook search and fixed broken links.
147+
[#12812](https://github.com/rust-lang/cargo/pull/12812)
148+
[#12813](https://github.com/rust-lang/cargo/pull/12813)
149+
[#12814](https://github.com/rust-lang/cargo/pull/12814)
150+
- contrib: Describe how to add a new package
151+
[#12878](https://github.com/rust-lang/cargo/pull/12878)
152+
- contrib: Removed review capacity notice.
153+
[#12842](https://github.com/rust-lang/cargo/pull/12842)
21154

22155
### Internal
23156

24157
- Updated to `itertools` 0.11.0.
25158
[#12759](https://github.com/rust-lang/cargo/pull/12759)
26159
- Updated to `cargo_metadata` 0.18.0.
27160
[#12758](https://github.com/rust-lang/cargo/pull/12758)
161+
- Updated to `curl-sys` 0.4.68, which corresponds to curl 8.4.0.
162+
[#12808](https://github.com/rust-lang/cargo/pull/12808)
163+
- Updated to `toml` 0.8.2.
164+
[#12760](https://github.com/rust-lang/cargo/pull/12760)
165+
- Updated to `toml_edit` 0.20.2.
166+
[#12761](https://github.com/rust-lang/cargo/pull/12761)
167+
- Updated to `gix` to 0.55.2
168+
[#12906](https://github.com/rust-lang/cargo/pull/12906)
28169
- Disabled the `custom_target::custom_bin_target` test on windows-gnu.
29170
[#12763](https://github.com/rust-lang/cargo/pull/12763)
171+
- Refactored `Cargo.toml` parsing code in preparation of extracting an official
172+
schema API.
173+
[#12768](https://github.com/rust-lang/cargo/pull/12768)
174+
[#12881](https://github.com/rust-lang/cargo/pull/12881)
175+
[#12902](https://github.com/rust-lang/cargo/pull/12902)
176+
[#12911](https://github.com/rust-lang/cargo/pull/12911)
177+
[#12948](https://github.com/rust-lang/cargo/pull/12948)
178+
- Split out SemVer logic to its own module.
179+
[#12926](https://github.com/rust-lang/cargo/pull/12926)
180+
[#12940](https://github.com/rust-lang/cargo/pull/12940)
181+
- source: Prepare for new `PackageIDSpec` syntax
182+
[#12938](https://github.com/rust-lang/cargo/pull/12938)
183+
- resolver: Consolidate logic in `VersionPreferences`
184+
[#12930](https://github.com/rust-lang/cargo/pull/12930)
185+
- Make the `SourceId::precise` field an Enum.
186+
[#12849](https://github.com/rust-lang/cargo/pull/12849)
187+
- shell: Write at once rather than in fragments.
188+
[#12880](https://github.com/rust-lang/cargo/pull/12880)
189+
- Move up looking at index summary enum
190+
[#12749](https://github.com/rust-lang/cargo/pull/12749)
191+
[#12923](https://github.com/rust-lang/cargo/pull/12923)
192+
- Generate redirection HTML pages in CI for Cargo Contributor Guide.
193+
[#12846](https://github.com/rust-lang/cargo/pull/12846)
194+
- Add new package cache lock modes.
195+
[#12706](https://github.com/rust-lang/cargo/pull/12706)
196+
- Add regression test for issue 6915: features and transitive dev deps.
197+
[#12907](https://github.com/rust-lang/cargo/pull/12907)
198+
- Auto-labeling when PR review state changes.
199+
[#12856](https://github.com/rust-lang/cargo/pull/12856)
200+
- credential: include license files in all published crates.
201+
[#12953](https://github.com/rust-lang/cargo/pull/12953)
202+
- credential: Filter `cargo-credential-*` dependencies by OS.
203+
[#12949](https://github.com/rust-lang/cargo/pull/12949)
204+
- ci: bump cargo-semver-checks to 0.24.0
205+
[#12795](https://github.com/rust-lang/cargo/pull/12795)
206+
- ci: set and verify all MSRVs for Cargo's crates automatically.
207+
[#12767](https://github.com/rust-lang/cargo/pull/12767)
208+
[#12654](https://github.com/rust-lang/cargo/pull/12654)
209+
- ci: use separate concurrency group for publishing Cargo Contributor Book.
210+
[#12834](https://github.com/rust-lang/cargo/pull/12834)
211+
[#12835](https://github.com/rust-lang/cargo/pull/12835)
212+
- ci: update `actions/checkout` action to v4
213+
[#12762](https://github.com/rust-lang/cargo/pull/12762)
214+
- cargo-search: improved the margin calculation for the output.
215+
[#12890](https://github.com/rust-lang/cargo/pull/12890)
30216

31217
## Cargo 1.74 (2023-11-16)
32218
[80eca0e5...rust-1.74.0](https://github.com/rust-lang/cargo/compare/80eca0e5...rust-1.74.0)
@@ -70,6 +256,7 @@
70256
- Allowed incomplete versions when they are unambiguous for flags like `--package`.
71257
[#12591](https://github.com/rust-lang/cargo/pull/12591)
72258
[#12614](https://github.com/rust-lang/cargo/pull/12614)
259+
[#12806](https://github.com/rust-lang/cargo/pull/12806)
73260

74261
### Changed
75262

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ windows-sys = "0.48"
108108

109109
[package]
110110
name = "cargo"
111-
version = "0.76.0"
111+
version = "0.77.0"
112112
edition.workspace = true
113113
license.workspace = true
114114
rust-version.workspace = true

0 commit comments

Comments
 (0)