|
1 | 1 | # Changelog
|
2 | 2 |
|
3 | 3 | ## Cargo 1.84 (2025-01-09)
|
4 |
| -[15fbd2f6...HEAD](https://github.com/rust-lang/cargo/compare/15fbd2f6...HEAD) |
| 4 | +[15fbd2f6...rust-1.84.0](https://github.com/rust-lang/cargo/compare/15fbd2f6...rust-1.84.0) |
5 | 5 |
|
6 | 6 | ### Added
|
7 | 7 |
|
| 8 | +- 🎉 Stabilize resolver v3, a.k.a the MSRV-aware dependency resolver. |
| 9 | + The stabilization includes `package.resolver = "3"` in Cargo.toml, |
| 10 | + and the `[resolver]` table in Cargo configuration. |
| 11 | + ([RFC 3537](https://github.com/rust-lang/rfcs/blob/master/text/3537-msrv-resolver.md)) |
| 12 | + ([manifest docs](https://doc.rust-lang.org/nightly/cargo/reference/resolver.html#resolver-versions)) |
| 13 | + ([config docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#resolver)) |
| 14 | + [#14639](https://github.com/rust-lang/cargo/pull/14639) |
| 15 | + [#14662](https://github.com/rust-lang/cargo/pull/14662) |
| 16 | + [#14711](https://github.com/rust-lang/cargo/pull/14711) |
| 17 | + [#14725](https://github.com/rust-lang/cargo/pull/14725) |
| 18 | + [#14748](https://github.com/rust-lang/cargo/pull/14748) |
| 19 | + [#14753](https://github.com/rust-lang/cargo/pull/14753) |
| 20 | + [#14754](https://github.com/rust-lang/cargo/pull/14754) |
| 21 | +- Added a new build script invocation `cargo::error=MESSAGE` to report error messages. |
| 22 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#cargo-error)) |
| 23 | + [#14743](https://github.com/rust-lang/cargo/pull/14743) |
| 24 | + |
8 | 25 | ### Changed
|
9 | 26 |
|
10 |
| -- Pass `--no-tags` by default to git CLI when `net.git-fetch-with-cli = true`. |
| 27 | +- ❗️ cargo-publish: Always include Cargo.lock in published crates. |
| 28 | + Originally it was only included for packages that have executables or examples |
| 29 | + for use with `cargo install`. |
| 30 | + [#14815](https://github.com/rust-lang/cargo/pull/14815) |
| 31 | +- Dependency resolver performance improvements, including shared caching, |
| 32 | + reduced iteration overhead, and removing redundant fetches and clones. |
| 33 | + [#14663](https://github.com/rust-lang/cargo/pull/14663) |
| 34 | + [#14690](https://github.com/rust-lang/cargo/pull/14690) |
| 35 | + [#14692](https://github.com/rust-lang/cargo/pull/14692) |
| 36 | + [#14694](https://github.com/rust-lang/cargo/pull/14694) |
| 37 | +- Deprecate `cargo verify-project`. |
| 38 | + [#14736](https://github.com/rust-lang/cargo/pull/14736) |
| 39 | +- Add source replacement info when no matching package found during dependency resolving. |
| 40 | + [#14715](https://github.com/rust-lang/cargo/pull/14715) |
| 41 | +- Hint for using `crates-io` when `[patch.crates.io]` found. |
| 42 | + [#14700](https://github.com/rust-lang/cargo/pull/14700) |
| 43 | +- Normalize source paths of Cargo targets for better diagnostics. |
| 44 | + [#14497](https://github.com/rust-lang/cargo/pull/14497) |
| 45 | + [#14750](https://github.com/rust-lang/cargo/pull/14750) |
| 46 | +- Allow registries to omit empty/default fields in index metadata JSON. |
| 47 | + Due to backward compatibility, crates.io continues to emit them. |
| 48 | + [#14838](https://github.com/rust-lang/cargo/pull/14838) |
| 49 | + [#14839](https://github.com/rust-lang/cargo/pull/14839) |
| 50 | +- cargo-doc: display env vars in extra verbose mode. |
| 51 | + [#14812](https://github.com/rust-lang/cargo/pull/14812) |
| 52 | +- cargo-fix: replace special-case handling of duplicate insert-only replacement. |
| 53 | + [#14765](https://github.com/rust-lang/cargo/pull/14765) |
| 54 | + [#14782](https://github.com/rust-lang/cargo/pull/14782) |
| 55 | +- cargo-remove: when a dependency is not found, try suggesting other dependencies |
| 56 | + with similar names. |
| 57 | + [#14818](https://github.com/rust-lang/cargo/pull/14818) |
| 58 | +- git: skip unnecessary submodule validations for fresh checkouts on Git dependencies. |
| 59 | + [#14605](https://github.com/rust-lang/cargo/pull/14605) |
| 60 | +- git: Enhanced the error message for fetching Git dependencies when refspec not found. |
| 61 | + [#14806](https://github.com/rust-lang/cargo/pull/14806) |
| 62 | +- git: Pass `--no-tags` by default to git CLI when `net.git-fetch-with-cli = true`. |
11 | 63 | [#14688](https://github.com/rust-lang/cargo/pull/14688)
|
12 |
| -- Several resolver performance enhancements, including |
13 |
| - - Use `rustc-hash` to speed up resolver |
14 |
| - [#14663](https://github.com/rust-lang/cargo/pull/14663) |
15 |
| - - Share conflict cache between activation retries |
16 |
| - [#14692](https://github.com/rust-lang/cargo/pull/14692) |
17 |
| - - Avoid cloning when iterating using `RcVecIter` |
18 |
| - [#14690](https://github.com/rust-lang/cargo/pull/14690) |
19 | 64 |
|
20 | 65 | ### Fixed
|
21 | 66 |
|
| 67 | +- Fixed old Cargos failing to read the newer format of dep-info in build caches. |
| 68 | + [#14751](https://github.com/rust-lang/cargo/pull/14751) |
| 69 | + [#14745](https://github.com/rust-lang/cargo/pull/14745) |
| 70 | +- Fixed rebuild detection not respecting changes in the `[env]` table. |
| 71 | + [#14701](https://github.com/rust-lang/cargo/pull/14701) |
| 72 | + [#14730](https://github.com/rust-lang/cargo/pull/14730) |
| 73 | +- cargo-fix: Added transactional semantics to `rustfix` to keep code fix in a |
| 74 | + valid state when multiple suggestions contain overlapping spans. |
| 75 | + [#14747](https://github.com/rust-lang/cargo/pull/14747) |
| 76 | + |
22 | 77 | ### Nightly only
|
23 | 78 |
|
| 79 | +- The unstable environment variable `CARGO_RUSTC_CURRENT_DIR` has been removed. |
| 80 | + [#14799](https://github.com/rust-lang/cargo/pull/14799) |
| 81 | +- 🔥 Cargo now includes an experimental JSON Schema file for `Cargo.toml` in the source code. |
| 82 | + It helps external tools validate or auto-complete the schema of the manifest. |
| 83 | + ([manifest.schema.json](https://github.com/rust-lang/cargo/blob/master/crates/cargo-util-schemas/manifest.schema.json)) |
| 84 | + [#14683](https://github.com/rust-lang/cargo/pull/14683) |
| 85 | +- 🔥 `Zroot-dir`: A new unstable `-Zroot-dir` flag to configure the path from |
| 86 | + which rustc should be invoked. |
| 87 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#root-dir)) |
| 88 | + [#14752](https://github.com/rust-lang/cargo/pull/14752) |
| 89 | +- 🔥 `-Zwarnings`: A new unstable feature to control how Cargo handles warnings |
| 90 | + via the `build.warnings` configuration field. |
| 91 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#warnings)) |
| 92 | + [#14388](https://github.com/rust-lang/cargo/pull/14388) |
| 93 | + [#14827](https://github.com/rust-lang/cargo/pull/14827) |
| 94 | + [#14836](https://github.com/rust-lang/cargo/pull/14836) |
| 95 | +- `edition2024`: Verify 2024 edition / resolver=3 doesn't affect resolution |
| 96 | + [#14724](https://github.com/rust-lang/cargo/pull/14724) |
| 97 | +- `native-completions`: Include descriptions in zsh |
| 98 | + [#14726](https://github.com/rust-lang/cargo/pull/14726) |
24 | 99 | - `-Zbindeps`: Fix panic when running cargo tree on a package with a cross compiled bindep
|
25 | 100 | [#14593](https://github.com/rust-lang/cargo/pull/14593)
|
26 |
| -- `-Zpackage-workspace`: Support package selection options like `--exclude` in `cargo publish` |
| 101 | +- `-Zbindeps`: download targeted transitive deps of with artifact deps' target platform |
| 102 | + [#14723](https://github.com/rust-lang/cargo/pull/14723) |
| 103 | +- `-Zbuild-std`: Remove the requirement for `--target`. |
| 104 | + [#14317](https://github.com/rust-lang/cargo/pull/14317) |
| 105 | +- `-Zpackage-workspace`: Support package selection options, such as `--exclude`, |
| 106 | + in `cargo publish` |
27 | 107 | [#14659](https://github.com/rust-lang/cargo/pull/14659)
|
28 |
| -- `-Zscript`: Remove the support for accepting `Cargo.toml` |
| 108 | +- `-Zscript`: Remove support for accepting `Cargo.toml`. |
29 | 109 | [#14670](https://github.com/rust-lang/cargo/pull/14670)
|
| 110 | +- `-Zscript`: Change config paths to only check `CARGO_HOME` |
| 111 | + [#14749](https://github.com/rust-lang/cargo/pull/14749) |
| 112 | +- `-Zscript`: Update the frontmatter parser for RFC 3503. |
| 113 | + [#14792](https://github.com/rust-lang/cargo/pull/14792) |
30 | 114 |
|
31 | 115 | ### Documentation
|
32 | 116 |
|
|
38 | 122 | [#14684](https://github.com/rust-lang/cargo/pull/14684)
|
39 | 123 | - Document official external commands: `cargo-clippy`, `cargo-fmt`, and `cargo-miri`.
|
40 | 124 | [#14669](https://github.com/rust-lang/cargo/pull/14669)
|
41 |
| -- Enhanced documentation on dependency resolution |
42 |
| - [#14662](https://github.com/rust-lang/cargo/pull/14662) |
| 125 | + [#14805](https://github.com/rust-lang/cargo/pull/14805) |
| 126 | +- Enhance documentation on environment variables |
| 127 | + [#14676](https://github.com/rust-lang/cargo/pull/14676) |
| 128 | +- Simplify English used in documentations. |
| 129 | + [#14825](https://github.com/rust-lang/cargo/pull/14825) |
| 130 | + [#14829](https://github.com/rust-lang/cargo/pull/14829) |
| 131 | +- A new doc page for deprecated and removed commands. |
| 132 | + [#14739](https://github.com/rust-lang/cargo/pull/14739) |
| 133 | +- cargo-test-support: Document `Execs` assertions based on port effort |
| 134 | + [#14793](https://github.com/rust-lang/cargo/pull/14793) |
43 | 135 |
|
44 | 136 | ### Internal
|
45 | 137 |
|
46 |
| -- Updated to `pulldown-cmark` 0.12.0 |
| 138 | +- 🎉 Migrate `build-rs` crate to the `rust-lang/cargo` repository as an |
| 139 | + intentional artifact of the Cargo team. |
| 140 | + [#14786](https://github.com/rust-lang/cargo/pull/14786) |
| 141 | + [#14817](https://github.com/rust-lang/cargo/pull/14817) |
| 142 | +- Enable transfer feature in triagebot |
| 143 | + [#14777](https://github.com/rust-lang/cargo/pull/14777) |
| 144 | +- clone-on-write when needed for InternedString |
| 145 | + [#14808](https://github.com/rust-lang/cargo/pull/14808) |
| 146 | +- ci: Switch CI from bors to merge queue |
| 147 | + [#14718](https://github.com/rust-lang/cargo/pull/14718) |
| 148 | +- ci: make the `lint-docs` job required |
| 149 | + [#14797](https://github.com/rust-lang/cargo/pull/14797) |
| 150 | +- ci: Check for clippy `correctness` |
| 151 | + [#14796](https://github.com/rust-lang/cargo/pull/14796) |
| 152 | +- ci: Switch matchPackageNames to matchDepNames for renovate |
| 153 | + [#14704](https://github.com/rust-lang/cargo/pull/14704) |
| 154 | +- fingerprint: Track the intent for each use of `UnitHash` |
| 155 | + [#14826](https://github.com/rust-lang/cargo/pull/14826) |
| 156 | +- fingerprint: Add more metadata to `rustc_fingerprint`. |
| 157 | + [#14761](https://github.com/rust-lang/cargo/pull/14761) |
| 158 | +- test: Migrate remaining snapshotting to snapbox |
| 159 | + [#14642](https://github.com/rust-lang/cargo/pull/14642) |
| 160 | + [#14760](https://github.com/rust-lang/cargo/pull/14760) |
| 161 | + [#14781](https://github.com/rust-lang/cargo/pull/14781) |
| 162 | + [#14785](https://github.com/rust-lang/cargo/pull/14785) |
| 163 | + [#14790](https://github.com/rust-lang/cargo/pull/14790) |
| 164 | +- Update dependencies. |
47 | 165 | [#14668](https://github.com/rust-lang/cargo/pull/14668)
|
| 166 | + [#14705](https://github.com/rust-lang/cargo/pull/14705) |
| 167 | + [#14762](https://github.com/rust-lang/cargo/pull/14762) |
| 168 | + [#14766](https://github.com/rust-lang/cargo/pull/14766) |
| 169 | + [#14772](https://github.com/rust-lang/cargo/pull/14772) |
48 | 170 |
|
49 | 171 | ## Cargo 1.83 (2024-11-28)
|
50 | 172 | [8f40fc59...rust-1.83.0](https://github.com/rust-lang/cargo/compare/8f40fc59...rust-1.83.0)
|
|
0 commit comments