Skip to content

Commit 53eb9a2

Browse files
committed
Auto merge of #13192 - weihanglo:version-bump, r=epage
Bump to 0.78.0; update changelog [rendered](https://github.com/weihanglo/cargo/blob/version-bump/CHANGELOG.md)
2 parents a9c749c + 5429c90 commit 53eb9a2

File tree

3 files changed

+214
-6
lines changed

3 files changed

+214
-6
lines changed

CHANGELOG.md

Lines changed: 212 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,106 @@
11
# Changelog
22

3+
## Cargo 1.77 (2024-03-21)
4+
[1a2666dd...HEAD](https://github.com/rust-lang/cargo/compare/1a2666dd...HEAD)
5+
6+
### Added
7+
8+
### Changed
9+
10+
- cargo-vendor: Hold the mutate exclusive lock when vendoring.
11+
[#12509](https://github.com/rust-lang/cargo/pull/12509)
12+
13+
### Fixed
14+
15+
### Nightly only
16+
17+
### Documentation
18+
19+
### Internal
20+
21+
- 🎉 New member crate [`cargo-util-schemas`](https://crates.io/crates/cargo-util-schemas)!
22+
This contains low-level Cargo schema types, focusing on `serde` and `FromStr`
23+
for use in reading files and parsing command-lines.
24+
Any logic for getting final semantics from these will likely need other tools
25+
to process, like `cargo metadata`.
26+
The crates.io publish of this crate is the same as other members crates.
27+
It follows Rust's [6-week release process](https://doc.crates.io/contrib/process/release.html#cratesio-publishing).
28+
[#13178](https://github.com/rust-lang/cargo/pull/13178)
29+
[#13185](https://github.com/rust-lang/cargo/pull/13185)
30+
[#13186](https://github.com/rust-lang/cargo/pull/13186)
31+
332
## Cargo 1.76 (2024-02-08)
4-
[6790a512...HEAD](https://github.com/rust-lang/cargo/compare/6790a512...HEAD)
33+
[6790a512...rust-1.76.0](https://github.com/rust-lang/cargo/compare/6790a512...rust-1.76.0)
534

635
### Added
736

37+
- Added a Windows application manifest file to the built `cargo.exe` for windows msvc.
38+
[#13131](https://github.com/rust-lang/cargo/pull/13131)
39+
Notable changes:
40+
- States the compatibility with Windows versions 7, 8, 8.1, 10 and 11.
41+
- Sets the code page to UTF-8.
42+
- Enables long path awareness.
43+
- Added color output for `cargo --list`.
44+
[#12992](https://github.com/rust-lang/cargo/pull/12992)
45+
- cargo-add: `--optional <dep>` would create a `<dep> = "dep:<dep>"` feature.
46+
[#13071](https://github.com/rust-lang/cargo/pull/13071)
47+
- Extends Package ID spec for unambiguous specs.
48+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/pkgid-spec.html)
49+
[#12933](https://github.com/rust-lang/cargo/pull/12933)
50+
Specifically,
51+
- Supports `git+` and `path+` schemes.
52+
- Supports Git ref query strings, such as `?branch=dev` or `?tag=1.69.0`.
53+
854
### Changed
955

56+
- ❗️ Disallow `[lints]` in virtual workspaces.
57+
This was an overlook and `[lints]` in virtual workspaces always has no effect.
58+
[#13155](https://github.com/rust-lang/cargo/pull/13155)
59+
- Disallow empty name in several places like package ID spec and `cargo new`.
60+
[#13152](https://github.com/rust-lang/cargo/pull/13152)
61+
- Respect `rust-lang/rust`'s `omit-git-hash` option.
62+
[#12968](https://github.com/rust-lang/cargo/pull/12968)
63+
- Displays error count with a number, even when there is only one error.
64+
[#12484](https://github.com/rust-lang/cargo/pull/12484)
65+
- `all-static` feature now includes `vendored-libgit2`.
66+
[#13134](https://github.com/rust-lang/cargo/pull/13134)
67+
- crates-io: Add support for other 2xx HTTP status codes when interacting with registries.
68+
[#13158](https://github.com/rust-lang/cargo/pull/13158)
69+
[#13160](https://github.com/rust-lang/cargo/pull/13160)
70+
- home: Replace SHGetFolderPathW with SHGetKnownFolderPath.
71+
[#13173](https://github.com/rust-lang/cargo/pull/13173)
72+
1073
### Fixed
1174

75+
- Print rustc messages colored on wincon.
76+
[#13140](https://github.com/rust-lang/cargo/pull/13140)
77+
- Fixed bash completion in directory with spaces.
78+
[#13126](https://github.com/rust-lang/cargo/pull/13126)
79+
- Fixed uninstall a running binary failed on Windows.
80+
[#13053](https://github.com/rust-lang/cargo/pull/13053)
81+
[#13099](https://github.com/rust-lang/cargo/pull/13099)
82+
- Fixed the error message for duplicate links.
83+
[#12973](https://github.com/rust-lang/cargo/pull/12973)
84+
- Fixed `--quiet` being used with nested subcommands.
85+
[#12959](https://github.com/rust-lang/cargo/pull/12959)
86+
- Fixed panic when there is a cycle in dev-dependencies.
87+
[#12977](https://github.com/rust-lang/cargo/pull/12977)
88+
- Don't panic when failed to parse rustc commit-hash.
89+
[#12963](https://github.com/rust-lang/cargo/pull/12963)
90+
[#12965](https://github.com/rust-lang/cargo/pull/12965)
91+
- Don't do git fetches when updating workspace members.
92+
[#12975](https://github.com/rust-lang/cargo/pull/12975)
93+
- Avoid writing CACHEDIR.TAG if it already exists.
94+
[#13132](https://github.com/rust-lang/cargo/pull/13132)
95+
- cargo-package: Only filter out `target` directory if it's in the package root.
96+
[#12944](https://github.com/rust-lang/cargo/pull/12944)
97+
- cargo-package: errors out when a build script doesn't exist or is outside the package root.
98+
[#12995](https://github.com/rust-lang/cargo/pull/12995)
99+
- cargo-credential-1password: Add missing `--account` argument to `op signin` command.
100+
[#12985](https://github.com/rust-lang/cargo/pull/12985)
101+
[#12986](https://github.com/rust-lang/cargo/pull/12986)
102+
103+
12104
### Nightly only
13105

14106
- 🔥 The `-Zgc` flag enables garbage collection for deleting old, unused files
@@ -17,17 +109,133 @@
17109
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#gc)
18110
[#12634](https://github.com/rust-lang/cargo/pull/12634)
19111
[#12958](https://github.com/rust-lang/cargo/pull/12958)
112+
[#12981](https://github.com/rust-lang/cargo/pull/12981)
113+
[#13055](https://github.com/rust-lang/cargo/pull/13055)
114+
- 🔥 Added a new environment variable `CARGO_RUSTC_CURRENT_DIR`.
115+
This is a path that rustc is invoked from.
116+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html?highlight=CARGO_RUSTC_CURRENT_DIR#environment-variables-cargo-sets-for-crates)
117+
[#12996](https://github.com/rust-lang/cargo/pull/12996)
118+
- `-Zcheck-cfg`: Include declared list of features in fingerprint for `-Zcheck-cfg`.
119+
[#13012](https://github.com/rust-lang/cargo/pull/13012)
120+
- `-Zcheck-cfg`: Fix `--check-cfg` invocations with zero features.
121+
[#13011](https://github.com/rust-lang/cargo/pull/13011)
122+
- `-Ztrim-paths`: reorder `--remap-path-prefix` flags for `-Zbuild-std`.
123+
[#13065](https://github.com/rust-lang/cargo/pull/13065)
124+
- `-Ztrim-paths`: explicitly remap current dir by using `.`.
125+
[#13114](https://github.com/rust-lang/cargo/pull/13114)
126+
- `-Ztrim-paths`: exercise with real world debugger.
127+
[#13091](https://github.com/rust-lang/cargo/pull/13091)
128+
[#13118](https://github.com/rust-lang/cargo/pull/13118)
129+
- `-Zpublic-dependency`: Limit `exported-private-dependencies` lints to libraries.
130+
[#13135](https://github.com/rust-lang/cargo/pull/13135)
131+
- `-Zpublic-dependency`: Disallow workspace-inheriting of dependency public status.
132+
[#13125](https://github.com/rust-lang/cargo/pull/13125)
133+
- `-Zpublic-dependency`: Add `--public` for `cargo add`.
134+
[#13046](https://github.com/rust-lang/cargo/pull/13046)
135+
- `-Zpublic-dependency`: Remove unused public-deps error handling
136+
[#13036](https://github.com/rust-lang/cargo/pull/13036)
137+
- `-Zmsrv-policy`: Prefer MSRV, rather than ignore incompatible.
138+
[#12950](https://github.com/rust-lang/cargo/pull/12950)
139+
- `-Zmsrv-policy`: De-prioritize no-rust-version in MSRV resolver.
140+
[#13066](https://github.com/rust-lang/cargo/pull/13066)
141+
- `-Zrustdoc-scrape-examples`: Don't filter on workspace members when scraping doc examples.
142+
[#13077](https://github.com/rust-lang/cargo/pull/13077)
20143

21144
### Documentation
22145

146+
- Recommends a wider selection of libsecret-compatible password managers.
147+
[#12993](https://github.com/rust-lang/cargo/pull/12993)
148+
- Clarified different targets has different sets of `CARGO_CFG_*` values.
149+
[#13069](https://github.com/rust-lang/cargo/pull/13069)
150+
- Clarified `[lints]` table only affects local development of the current package.
151+
[#12976](https://github.com/rust-lang/cargo/pull/12976)
152+
- Clarified `cargo search` can search in alternative registries.
153+
[#12962](https://github.com/rust-lang/cargo/pull/12962)
154+
- Added common CI practices for verifying `rust-version` (MSRV) field.
155+
[#13056](https://github.com/rust-lang/cargo/pull/13056)
156+
- Added a link to rustc lint levels doc.
157+
[#12990](https://github.com/rust-lang/cargo/pull/12990)
158+
- Added a link to the packages lint table from the related workspace table
159+
[#13057](https://github.com/rust-lang/cargo/pull/13057)
160+
- contrib: Add more resources to the contrib docs.
161+
[#13008](https://github.com/rust-lang/cargo/pull/13008)
162+
- contrib: Update how that credential crates are published.
163+
[#13006](https://github.com/rust-lang/cargo/pull/13006)
164+
- contrib: remove review capacity notice.
165+
[#13070](https://github.com/rust-lang/cargo/pull/13070)
166+
23167
### Internal
24168

25-
- Refactored `Cargo.toml` parsing code in preparation of extracting an offical schema API.
169+
- 🎉 Migrate `rustfix` crate to the `rust-lang/cargo` repository.
170+
[#13005](https://github.com/rust-lang/cargo/pull/13005)
171+
[#13042](https://github.com/rust-lang/cargo/pull/13042)
172+
[#13047](https://github.com/rust-lang/cargo/pull/13047)
173+
[#13048](https://github.com/rust-lang/cargo/pull/13048)
174+
[#13050](https://github.com/rust-lang/cargo/pull/13050)
175+
- Updated to `curl-sys` 0.4.70, which corresponds to curl 8.4.0.
176+
[#13147](https://github.com/rust-lang/cargo/pull/13147)
177+
- Updated to `gix-index` 0.27.1.
178+
[#13148](https://github.com/rust-lang/cargo/pull/13148)
179+
- Updated to `itertools` 0.12.0.
180+
[#13086](https://github.com/rust-lang/cargo/pull/13086)
181+
- Updated to `rusqlite` 0.30.0.
182+
[#13087](https://github.com/rust-lang/cargo/pull/13087)
183+
- Updated to `toml_edit` 0.21.0.
184+
[#13088](https://github.com/rust-lang/cargo/pull/13088)
185+
- Updated to `windows-sys` 0.52.0.
186+
[#13089](https://github.com/rust-lang/cargo/pull/13089)
187+
- Re-enable flaky gitoxide auth tests thanks to update to `gix-config`.
188+
[#13117](https://github.com/rust-lang/cargo/pull/13117)
189+
[#13129](https://github.com/rust-lang/cargo/pull/13129)
190+
[#13130](https://github.com/rust-lang/cargo/pull/13130)
191+
- Dogfood Cargo `-Zlints` table feature.
192+
[#12178](https://github.com/rust-lang/cargo/pull/12178)
193+
- Refactored `Cargo.toml` parsing code in preparation of extracting an official
194+
schema API.
26195
[#12954](https://github.com/rust-lang/cargo/pull/12954)
27196
[#12960](https://github.com/rust-lang/cargo/pull/12960)
28197
[#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)
198+
[#12971](https://github.com/rust-lang/cargo/pull/12971)
199+
[#13000](https://github.com/rust-lang/cargo/pull/13000)
200+
[#13021](https://github.com/rust-lang/cargo/pull/13021)
201+
[#13080](https://github.com/rust-lang/cargo/pull/13080)
202+
[#13097](https://github.com/rust-lang/cargo/pull/13097)
203+
[#13123](https://github.com/rust-lang/cargo/pull/13123)
204+
[#13128](https://github.com/rust-lang/cargo/pull/13128)
205+
[#13154](https://github.com/rust-lang/cargo/pull/13154)
206+
[#13166](https://github.com/rust-lang/cargo/pull/13166)
207+
- Use `IndexSummary` in `query{_vec}` functions.
208+
[#12970](https://github.com/rust-lang/cargo/pull/12970)
209+
- ci: migrate renovate config
210+
[#13106](https://github.com/rust-lang/cargo/pull/13106)
211+
- ci: Always update gix packages together
212+
[#13093](https://github.com/rust-lang/cargo/pull/13093)
213+
- ci: Catch naive use of AtomicU64 early
214+
[#12988](https://github.com/rust-lang/cargo/pull/12988)
215+
- xtask-bump-check: dont check `home` against beta/stable branches
216+
[#13167](https://github.com/rust-lang/cargo/pull/13167)
217+
- cargo-test-support: Handle $message_type in JSON diagnostics
218+
[#13016](https://github.com/rust-lang/cargo/pull/13016)
219+
- cargo-test-support: Add more options to registry test support.
220+
[#13085](https://github.com/rust-lang/cargo/pull/13085)
221+
- cargo-test-support: Add features to the default Cargo.toml file
222+
[#12997](https://github.com/rust-lang/cargo/pull/12997)
223+
- cargo-test-support: Fix clippy-wrapper test race condition.
224+
[#12999](https://github.com/rust-lang/cargo/pull/12999)
225+
- test: Don't rely on mtime to test changes
226+
[#13143](https://github.com/rust-lang/cargo/pull/13143)
227+
- test: remove unnecessary packages and versions for `optionals` tests
228+
[#13108](https://github.com/rust-lang/cargo/pull/13108)
229+
- test: Remove the deleted feature `test_2018_feature` from the test.
230+
[#13156](https://github.com/rust-lang/cargo/pull/13156)
231+
- test: remove jobserver env var in some tests.
232+
[#13072](https://github.com/rust-lang/cargo/pull/13072)
233+
- test: Fix a rustflags test using a wrong buildfile name
234+
[#12987](https://github.com/rust-lang/cargo/pull/12987)
235+
- test: Fix some test output validation.
236+
[#12982](https://github.com/rust-lang/cargo/pull/12982)
237+
- test: Ignore changing_spec_relearns_crate_types on windows-gnu
238+
[#12972](https://github.com/rust-lang/cargo/pull/12972)
31239

32240
## Cargo 1.75 (2023-12-28)
33241
[59596f0f...rust-1.75.0](https://github.com/rust-lang/cargo/compare/59596f0f...rust-1.75.0)

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
@@ -124,7 +124,7 @@ self_named_module_files = "warn"
124124

125125
[package]
126126
name = "cargo"
127-
version = "0.77.0"
127+
version = "0.78.0"
128128
edition.workspace = true
129129
license.workspace = true
130130
rust-version.workspace = true

0 commit comments

Comments
 (0)