Skip to content

Commit 63f1325

Browse files
committed
docs: update changelog for 1.85.0
1 parent 637c41e commit 63f1325

File tree

1 file changed

+91
-2
lines changed

1 file changed

+91
-2
lines changed

CHANGELOG.md

Lines changed: 91 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,154 @@
11
# Changelog
22

33
## Cargo 1.85 (2025-02-20)
4-
[66221abd...rust-1.84.0](https://github.com/rust-lang/cargo/compare/66221abd...rust-1.84.0)
4+
[66221abd...rust-1.85.0](https://github.com/rust-lang/cargo/compare/66221abd...rust-1.85.0)
55

66
### Added
77

88
- 🎉 Cargo now supports the 2024 edition.
99
More information is available in the [edition guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html).
1010
[#14828](https://github.com/rust-lang/cargo/pull/14828)
11+
- cargo-tree: The `--depth` flag now accepts `workspace`,
12+
which shows only dependencies that are members of the current workspace.
13+
[#14928](https://github.com/rust-lang/cargo/pull/14928)
14+
- Build scripts now receive a new environment variable, `CARGO_CFG_FEATURE`,
15+
which contains each activated feature of the package being built.
16+
[#14902](https://github.com/rust-lang/cargo/pull/14902)
17+
- perf: Dependency resolution is now faster due to a more efficient hash for `ActivationsKey`
18+
[#14915](https://github.com/rust-lang/cargo/pull/14915)
1119

1220
### Changed
1321

22+
- ❗️ cargo-rustc: Trailing flags now have higher precedence.
23+
This behavior was nightly-only since 1.83 and is now stabilized.
24+
[#14900](https://github.com/rust-lang/cargo/pull/14900)
25+
- ❗️ Cargo now uses a cross-platform hash algorithm from `rustc-stable-hash`.
26+
As a result, the hash part of paths to dependency caches
27+
(e.g., `$CARGO_HOME/registry/index/index.crates.io-<hash>`) will change.
28+
This will trigger re-downloads of registry indices and `.crate` tarballs,
29+
as well as re-cloning of Git dependencies.
30+
[#14917](https://github.com/rust-lang/cargo/pull/14917)
1431
- Added a future-incompatibility warning for keywords in `cfg`s in Cargo.toml
1532
and Cargo configuration. `cfg`s with keywords like `cfg(true)` and `cfg(false)`
1633
were incorrectly accepted. For backward compatibility, support for raw
1734
identifiers has been introduced; for example, use `cfg(r#true)` instead.
1835
[#14671](https://github.com/rust-lang/cargo/pull/14671)
36+
- Dependency resolution now provides richer error messages explaining why some versions were rejected, unmatched, or invalid.
37+
[#14897](https://github.com/rust-lang/cargo/pull/14897)
38+
[#14921](https://github.com/rust-lang/cargo/pull/14921)
39+
[#14923](https://github.com/rust-lang/cargo/pull/14923)
40+
[#14927](https://github.com/rust-lang/cargo/pull/14927)
41+
- cargo-doc: improve the error message when `--open`ing a doc while no doc generated.
42+
[#14969](https://github.com/rust-lang/cargo/pull/14969)
43+
- cargo-package: warn if symlinks checked out as plain text files
44+
[#14994](https://github.com/rust-lang/cargo/pull/14994)
45+
- cargo-package: Shows dirty file paths relative to the Git working directory.
46+
[#14968](https://github.com/rust-lang/cargo/pull/14968)
47+
[#14970](https://github.com/rust-lang/cargo/pull/14970)
1948

2049
### Fixed
2150

2251
- Set `GIT_DIR` to ensure compatibility with bare repositories
2352
for `net.git-fetch-with-cli=true`.
2453
[#14860](https://github.com/rust-lang/cargo/pull/14860)
54+
- Fixed workspace Cargo.toml modification didn't invalidate build cache.
55+
[#14973](https://github.com/rust-lang/cargo/pull/14973)
56+
- Prevented build caches from being discarded after changes to `RUSTFLAGS`.
57+
[#14830](https://github.com/rust-lang/cargo/pull/14830)
58+
[#14898](https://github.com/rust-lang/cargo/pull/14898)
59+
- cargo-add: Don't select yanked versions when normalizing names.
60+
[#14895](https://github.com/rust-lang/cargo/pull/14895)
61+
- cargo-fix: Migrate workspace dependencies to the 2024 edition also for virtual manifests.
62+
[#14890](https://github.com/rust-lang/cargo/pull/14890)
63+
- cargo-package: Verify the VCS status of `package.readme` and `package.license-file`
64+
when they point to paths outside the current package root.
65+
[#14966](https://github.com/rust-lang/cargo/pull/14966)
66+
- cargo-package: assure possibly blocking non-files (like FIFOs) won't be
67+
picked up for publishing.
68+
[#14977](https://github.com/rust-lang/cargo/pull/14977)
2569

2670
### Nightly only
2771

28-
- `-Zbuild-std`: Check if build target supports `std`.
72+
- `path-bases`: Support bases in `[patch]`es in virtual manifests
73+
[#14931](https://github.com/rust-lang/cargo/pull/14931)
74+
- `unit-graph`: Use the configured shell to print output.
75+
[#14926](https://github.com/rust-lang/cargo/pull/14926)
76+
- `-Zbuild-std`: Check if the build target supports `std`
77+
by probing the `metadata.std` field in the target spec JSON.
2978
[#14183](https://github.com/rust-lang/cargo/pull/14183)
79+
[#14938](https://github.com/rust-lang/cargo/pull/14938)
80+
[#14899](https://github.com/rust-lang/cargo/pull/14899)
3081
- `-Zbuild-std`: always link to std when testing proc-macros.
3182
[#14850](https://github.com/rust-lang/cargo/pull/14850)
3283
[#14861](https://github.com/rust-lang/cargo/pull/14861)
84+
- `-Zbuild-std`: clean up build-std tests
85+
[#14943](https://github.com/rust-lang/cargo/pull/14943)
86+
[#14933](https://github.com/rust-lang/cargo/pull/14933)
87+
[#14896](https://github.com/rust-lang/cargo/pull/14896)
88+
- `-Zbuild-std`: Hash relative paths to std workspace instead of absolute paths.
89+
[#14951](https://github.com/rust-lang/cargo/pull/14951)
3390
- `-Zpackage-workspace`: Allow dry-run of a non-bumped workspace.
3491
[#14847](https://github.com/rust-lang/cargo/pull/14847)
3592
- `-Zscript`: Allow adding/removing dependencies from cargo scripts
3693
[#14857](https://github.com/rust-lang/cargo/pull/14857)
3794
- `-Zscript`: Migrate cargo script manifests across editions
3895
[#14864](https://github.com/rust-lang/cargo/pull/14864)
96+
- `-Zscript`: Don't override the release profile.
97+
[#14925](https://github.com/rust-lang/cargo/pull/14925)
98+
- `-Ztrim-paths`: Use `Path::push` to construct the `remap-path-prefix` flag.
99+
[#14908](https://github.com/rust-lang/cargo/pull/14908)
39100

40101
### Documentation
41102

42103
- Clarify how `cargo::metadata` env var is selected.
43104
[#14842](https://github.com/rust-lang/cargo/pull/14842)
44105
- cargo-info: Remove references to the default registry in `cargo-info` docs
45106
[#14880](https://github.com/rust-lang/cargo/pull/14880)
107+
- contrib: add missing argument to Rustup Cargo workaround
108+
[#14954](https://github.com/rust-lang/cargo/pull/14954)
109+
- SemVer: Add section on RPIT capturing
110+
[#14849](https://github.com/rust-lang/cargo/pull/14849)
46111

47112
### Internal
48113

114+
- Add the `test` cfg as a well known cfg before of compiler change.
115+
[#14963](https://github.com/rust-lang/cargo/pull/14963)
116+
- Enable triagebot merge conflict notifications
117+
[#14972](https://github.com/rust-lang/cargo/pull/14972)
118+
- Limit release trigger to `0.*` tags
119+
[#14940](https://github.com/rust-lang/cargo/pull/14940)
120+
- Simplify `SourceID` Hash.
121+
[#14800](https://github.com/rust-lang/cargo/pull/14800)
122+
- build-rs: Automatically emits `rerun-if-env-changed`
123+
when accessing environment variables Cargo sets for build script executions.
124+
[#14911](https://github.com/rust-lang/cargo/pull/14911)
125+
- build-rs: Correctly refer to the item in assert
126+
[#14913](https://github.com/rust-lang/cargo/pull/14913)
127+
- build-rs: Add the 'error' directive
128+
[#14910](https://github.com/rust-lang/cargo/pull/14910)
129+
- build-rs: Remove meaningless 'cargo_cfg_debug_assertions'
130+
[#14901](https://github.com/rust-lang/cargo/pull/14901)
131+
- cargo-package: split `cargo_package` to modules
132+
[#14959](https://github.com/rust-lang/cargo/pull/14959)
133+
[#14982](https://github.com/rust-lang/cargo/pull/14982)
49134
- cargo-test-support: `requires` attribute accepts string literals for cmds
50135
[#14875](https://github.com/rust-lang/cargo/pull/14875)
51136
- cargo-test-support: Switch from 'exec_with_output' to 'run'
52137
[#14848](https://github.com/rust-lang/cargo/pull/14848)
138+
- cargo-test-support: track caller for `.crate` file publish verification
139+
[#14992](https://github.com/rust-lang/cargo/pull/14992)
53140
- test: Verify `-Cmetadata` directly, not through `-Cextra-filename`
54141
[#14846](https://github.com/rust-lang/cargo/pull/14846)
55142
- test: ensure PGO works
56143
[#14859](https://github.com/rust-lang/cargo/pull/14859)
57144
[#14874](https://github.com/rust-lang/cargo/pull/14874)
145+
[#14887](https://github.com/rust-lang/cargo/pull/14887)
58146
- Update dependencies.
59147
[#14867](https://github.com/rust-lang/cargo/pull/14867)
60148
[#14871](https://github.com/rust-lang/cargo/pull/14871)
61149
[#14878](https://github.com/rust-lang/cargo/pull/14878)
62150
[#14879](https://github.com/rust-lang/cargo/pull/14879)
151+
[#14975](https://github.com/rust-lang/cargo/pull/14975)
63152

64153
## Cargo 1.84 (2025-01-09)
65154
[15fbd2f6...rust-1.84.0](https://github.com/rust-lang/cargo/compare/15fbd2f6...rust-1.84.0)

0 commit comments

Comments
 (0)