|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.85 (2025-02-20) |
| 4 | +[66221abd...rust-1.84.0](https://github.com/rust-lang/cargo/compare/66221abd...rust-1.84.0) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +- 🎉 Cargo now supports the 2024 edition. |
| 9 | + More information is available in the [edition guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html). |
| 10 | + [#14828](https://github.com/rust-lang/cargo/pull/14828) |
| 11 | + |
| 12 | +### Changed |
| 13 | + |
| 14 | +- Added a future-incompatibility warning for keywords in `cfg`s in Cargo.toml |
| 15 | + and Cargo configuration. `cfg`s with keywords like `cfg(true)` and `cfg(false)` |
| 16 | + were incorrectly accepted. For backward compatibility, support for raw |
| 17 | + identifiers has been introduced; for example, use `cfg(r#true)` instead. |
| 18 | + [#14671](https://github.com/rust-lang/cargo/pull/14671) |
| 19 | + |
| 20 | +### Fixed |
| 21 | + |
| 22 | +- Set `GIT_DIR` to ensure compatibility with bare repositories |
| 23 | + for `net.git-fetch-with-cli=true`. |
| 24 | + [#14860](https://github.com/rust-lang/cargo/pull/14860) |
| 25 | + |
| 26 | +### Nightly only |
| 27 | + |
| 28 | +- `-Zbuild-std`: Check if build target supports `std`. |
| 29 | + [#14183](https://github.com/rust-lang/cargo/pull/14183) |
| 30 | +- `-Zbuild-std`: always link to std when testing proc-macros. |
| 31 | + [#14850](https://github.com/rust-lang/cargo/pull/14850) |
| 32 | + [#14861](https://github.com/rust-lang/cargo/pull/14861) |
| 33 | +- `-Zpackage-workspace`: Allow dry-run of a non-bumped workspace. |
| 34 | + [#14847](https://github.com/rust-lang/cargo/pull/14847) |
| 35 | +- `-Zscript`: Allow adding/removing dependencies from cargo scripts |
| 36 | + [#14857](https://github.com/rust-lang/cargo/pull/14857) |
| 37 | +- `-Zscript`: Migrate cargo script manifests across editions |
| 38 | + [#14864](https://github.com/rust-lang/cargo/pull/14864) |
| 39 | + |
| 40 | +### Documentation |
| 41 | + |
| 42 | +- Clarify how `cargo::metadata` env var is selected. |
| 43 | + [#14842](https://github.com/rust-lang/cargo/pull/14842) |
| 44 | +- cargo-info: Remove references to the default registry in `cargo-info` docs |
| 45 | + [#14880](https://github.com/rust-lang/cargo/pull/14880) |
| 46 | + |
| 47 | +### Internal |
| 48 | + |
| 49 | +- cargo-test-support: `requires` attribute accepts string literals for cmds |
| 50 | + [#14875](https://github.com/rust-lang/cargo/pull/14875) |
| 51 | +- cargo-test-support: Switch from 'exec_with_output' to 'run' |
| 52 | + [#14848](https://github.com/rust-lang/cargo/pull/14848) |
| 53 | +- test: Verify `-Cmetadata` directly, not through `-Cextra-filename` |
| 54 | + [#14846](https://github.com/rust-lang/cargo/pull/14846) |
| 55 | +- test: ensure PGO works |
| 56 | + [#14859](https://github.com/rust-lang/cargo/pull/14859) |
| 57 | + [#14874](https://github.com/rust-lang/cargo/pull/14874) |
| 58 | +- Update dependencies. |
| 59 | + [#14867](https://github.com/rust-lang/cargo/pull/14867) |
| 60 | + [#14871](https://github.com/rust-lang/cargo/pull/14871) |
| 61 | + [#14878](https://github.com/rust-lang/cargo/pull/14878) |
| 62 | + [#14879](https://github.com/rust-lang/cargo/pull/14879) |
| 63 | + |
3 | 64 | ## Cargo 1.84 (2025-01-09)
|
4 | 65 | [15fbd2f6...rust-1.84.0](https://github.com/rust-lang/cargo/compare/15fbd2f6...rust-1.84.0)
|
5 | 66 |
|
|
0 commit comments