|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.82 (2024-10-17) |
| 4 | +[a2b58c3d...HEAD](https://github.com/rust-lang/cargo/compare/a2b58c3d...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +- Improved error message for missing both `[package]` and `[workspace]` in Cargo.toml. |
| 11 | + [#14261](https://github.com/rust-lang/cargo/pull/14261) |
| 12 | + |
| 13 | +### Fixed |
| 14 | + |
| 15 | +### Nightly only |
| 16 | + |
| 17 | +- `-Ztarget-applies-to-host`: Fixed passing of links-overrides with |
| 18 | + target-applies-to-host and an implicit target |
| 19 | + [#14205](https://github.com/rust-lang/cargo/pull/14205) |
| 20 | + |
| 21 | +### Documentation |
| 22 | + |
| 23 | +### Internal |
| 24 | + |
| 25 | +- cargo-util-schemas: Added `TomlPackage::new`, `Default` for `TomlWorkspace` |
| 26 | + [#14271](https://github.com/rust-lang/cargo/pull/14271) |
| 27 | +- Enhanced `cargo-test-support` usability and documentation. |
| 28 | + [#14266](https://github.com/rust-lang/cargo/pull/14266) |
| 29 | + [#14268](https://github.com/rust-lang/cargo/pull/14268) |
| 30 | + [#14269](https://github.com/rust-lang/cargo/pull/14269) |
| 31 | + [#14270](https://github.com/rust-lang/cargo/pull/14270) |
| 32 | + [#14272](https://github.com/rust-lang/cargo/pull/14272) |
| 33 | +- Made summary sync by using Arc instead of Rc |
| 34 | + [#14260](https://github.com/rust-lang/cargo/pull/14260) |
| 35 | +- Used `Rc` instead of `Arc` for storing rustflags |
| 36 | + [#14273](https://github.com/rust-lang/cargo/pull/14273) |
| 37 | +- test: Migrated `global_cache_tracker` snapbox |
| 38 | + [#14244](https://github.com/rust-lang/cargo/pull/14244) |
| 39 | + |
3 | 40 | ## Cargo 1.81 (2024-09-05)
|
4 |
| -[34a6a87d...HEAD](https://github.com/rust-lang/cargo/compare/34a6a87d...HEAD) |
| 41 | +[34a6a87d...rust-1.81.0](https://github.com/rust-lang/cargo/compare/34a6a87d...rust-1.81.0) |
5 | 42 |
|
6 | 43 | ### Added
|
7 | 44 |
|
8 | 45 | ### Changed
|
9 | 46 |
|
10 | 47 | - ❗️ cargo-package: Disallow `package.license-file` and `package.readme` pointing
|
11 | 48 | to non-existent files during packaging.
|
| 49 | +- ❗️ cargo-package: generated `.cargo_vcs_info.json` is always incluced, |
| 50 | + even when `--allow-dirty` is passed. |
| 51 | + [#13960](https://github.com/rust-lang/cargo/pull/13960) |
12 | 52 | - ❗️ Disallow passing `--release`/`--debug` flag along with the `--profile` flag.
|
13 | 53 | [#13971](https://github.com/rust-lang/cargo/pull/13971)
|
14 | 54 | [#13921](https://github.com/rust-lang/cargo/pull/13921)
|
15 | 55 | - ❗️ Remove `lib.plugin` key support in Cargo.toml.
|
16 | 56 | Rust plugin support has been deprecated for four years and was removed in 1.75.0.
|
17 | 57 | [#13902](https://github.com/rust-lang/cargo/pull/13902)
|
18 | 58 | [#14038](https://github.com/rust-lang/cargo/pull/14038)
|
| 59 | +- Make the calculation of `-Cmetadata` for rustc consistent across platforms. |
| 60 | + [#14107](https://github.com/rust-lang/cargo/pull/14107) |
| 61 | +- Emit a warning when `edition` is unset, even when MSRV is unset. |
| 62 | + [#14110](https://github.com/rust-lang/cargo/pull/14110) |
19 | 63 |
|
20 | 64 | ### Fixed
|
21 | 65 |
|
22 | 66 | - Fix a proc-macro example from a dependency affecting feature resolution.
|
23 | 67 | [#13892](https://github.com/rust-lang/cargo/pull/13892)
|
| 68 | +- Don't warn on duplicate packages from using '..'. |
| 69 | + [#14234](https://github.com/rust-lang/cargo/pull/14234) |
| 70 | +- Don't `du` on every git source load. |
| 71 | + [#14252](https://github.com/rust-lang/cargo/pull/14252) |
| 72 | +- Don't warn about unreferenced duplicate packages |
| 73 | + [#14239](https://github.com/rust-lang/cargo/pull/14239) |
24 | 74 |
|
25 | 75 | ### Nightly only
|
26 | 76 |
|
27 | 77 | - 🔥 `update-breaking`: Add `--breaking` to `cargo update`,
|
28 | 78 | allowing upgrading dependencies to breaking versions.
|
29 | 79 | [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#update-breaking)
|
30 | 80 | [#13979](https://github.com/rust-lang/cargo/pull/13979)
|
| 81 | + [#14047](https://github.com/rust-lang/cargo/pull/14047) |
| 82 | + [#14049](https://github.com/rust-lang/cargo/pull/14049) |
31 | 83 | - `--artifact-dir`: Rename `--out-dir` to `--artifact-dir`.
|
32 | 84 | The `--out-dir` flag is kept for compatibility
|
33 | 85 | and may be removed when the feature gets stabilized.
|
34 | 86 | [#13809](https://github.com/rust-lang/cargo/pull/13809)
|
35 | 87 | - `edition2024`: Ensure unused optional dependencies fire for shadowed dependencies.
|
36 | 88 | [#14028](https://github.com/rust-lang/cargo/pull/14028)
|
| 89 | +- `edition2024`: Address problems with implicit -> explicit feature migration |
| 90 | + [#14018](https://github.com/rust-lang/cargo/pull/14018) |
| 91 | +- `edition2024`: Ensure `dep/feature` feature syntax activates the dependency |
| 92 | + [#14221](https://github.com/rust-lang/cargo/pull/14221) |
37 | 93 | - `-Zcargo-lints`: Add `unknown_lints` to lints list.
|
38 | 94 | [#14024](https://github.com/rust-lang/cargo/pull/14024)
|
39 | 95 | - `-Zcargo-lints`: Add tooling to document lints.
|
40 | 96 | [#14025](https://github.com/rust-lang/cargo/pull/14025)
|
41 | 97 | - `-Zcargo-lints`: Keep lints updated and sorted.
|
42 | 98 | [#14030](https://github.com/rust-lang/cargo/pull/14030)
|
| 99 | +- `-Zconfig-include`: Allow enabling `config-include` feature in config. |
| 100 | + [#14196](https://github.com/rust-lang/cargo/pull/14196) |
| 101 | +- `-Zpublic-dependency`: remove some legacy public dependency code from the resolver |
| 102 | + [#14090](https://github.com/rust-lang/cargo/pull/14090) |
| 103 | +- `-Ztarget-applies-to-host`: Pass rustflags to artifacts built with implicit targets when using target-applies-to-host |
| 104 | + [#13900](https://github.com/rust-lang/cargo/pull/13900) |
| 105 | + [#14201](https://github.com/rust-lang/cargo/pull/14201) |
43 | 106 | - cargo-update: Track the behavior of `--precise <prerelease>`.
|
44 | 107 | [#14013](https://github.com/rust-lang/cargo/pull/14013)
|
45 | 108 |
|
46 | 109 | ### Documentation
|
47 | 110 |
|
| 111 | +- Clarify `CARGO_CFG_TARGET_FAMILY` is multi-valued. |
| 112 | + [#14165](https://github.com/rust-lang/cargo/pull/14165) |
| 113 | +- Document `CARGO_CFG_TARGET_ABI` |
| 114 | + [#14164](https://github.com/rust-lang/cargo/pull/14164) |
| 115 | +- Document MSRV for each manifest field and build script invocations. |
| 116 | + [#14224](https://github.com/rust-lang/cargo/pull/14224) |
| 117 | +- Remove duplicate `strip` section. |
| 118 | + [#14146](https://github.com/rust-lang/cargo/pull/14146) |
| 119 | +- Update summary of Cargo configuration to include missing keys. |
| 120 | + [#14145](https://github.com/rust-lang/cargo/pull/14145) |
| 121 | +- Update index of Cargo documentation. |
| 122 | + [#14228](https://github.com/rust-lang/cargo/pull/14228) |
| 123 | +- Don't mention non-existent `workspace.badges` field. |
| 124 | + [#14042](https://github.com/rust-lang/cargo/pull/14042) |
48 | 125 | - contrib: Suggest atomic commits with separate test commits.
|
49 | 126 | [#14014](https://github.com/rust-lang/cargo/pull/14014)
|
| 127 | +- contrib: Document how to write an RFC for Cargo. |
| 128 | + [#14222](https://github.com/rust-lang/cargo/pull/14222) |
| 129 | +- contrib: Improve triage instructions |
| 130 | + [#14052](https://github.com/rust-lang/cargo/pull/14052) |
50 | 131 |
|
51 | 132 | ### Internal
|
52 | 133 |
|
| 134 | +- cargo-package: Change verification order during packaging. |
| 135 | + [#14074](https://github.com/rust-lang/cargo/pull/14074) |
| 136 | +- ci: Add workflow to publish Cargo automatically |
| 137 | + [#14202](https://github.com/rust-lang/cargo/pull/14202) |
| 138 | +- ci: bump CI tools |
| 139 | + [#14062](https://github.com/rust-lang/cargo/pull/14062) |
| 140 | + [#14257](https://github.com/rust-lang/cargo/pull/14257) |
| 141 | +- registry: Add local registry overlays. |
| 142 | + [#13926](https://github.com/rust-lang/cargo/pull/13926) |
| 143 | +- registry: move `get_source_id` out of registry |
| 144 | + [#14218](https://github.com/rust-lang/cargo/pull/14218) |
| 145 | +- resolver: Simplify checking for dependency cycles |
| 146 | + [#14089](https://github.com/rust-lang/cargo/pull/14089) |
| 147 | +- rustfix: Add `CodeFix::apply_solution` and impl `Clone` |
| 148 | + [#14092](https://github.com/rust-lang/cargo/pull/14092) |
| 149 | +- source: Clean up after `PathSource`/`RecursivePathSource` split |
| 150 | + [#14169](https://github.com/rust-lang/cargo/pull/14169) |
| 151 | + [#14231](https://github.com/rust-lang/cargo/pull/14231) |
53 | 152 | - Remove the temporary `__CARGO_GITOXIDE_DISABLE_LIST_FILES` environment variable.
|
54 | 153 | [#14036](https://github.com/rust-lang/cargo/pull/14036)
|
| 154 | +- Simplify checking feature syntax |
| 155 | + [#14106](https://github.com/rust-lang/cargo/pull/14106) |
| 156 | +- Dont make new constant `InternedString` in hot path |
| 157 | + [#14211](https://github.com/rust-lang/cargo/pull/14211) |
| 158 | +- Use `std::fs::absolute` instead of reimplementing it |
| 159 | + [#14075](https://github.com/rust-lang/cargo/pull/14075) |
| 160 | +- Remove unecessary feature activations from cargo. |
| 161 | + [#14122](https://github.com/rust-lang/cargo/pull/14122) |
| 162 | + [#14160](https://github.com/rust-lang/cargo/pull/14160) |
| 163 | +- Revert #13630 as rustc ignores `-C strip` on MSVC. |
| 164 | + [#14061](https://github.com/rust-lang/cargo/pull/14061) |
| 165 | +- test: Allow `unexpected_builtin_cfgs` lint in `user_specific_cfgs` test |
| 166 | + [#14153](https://github.com/rust-lang/cargo/pull/14153) |
| 167 | +- test: Add cargo_test to test-support prelude |
| 168 | + [#14243](https://github.com/rust-lang/cargo/pull/14243) |
| 169 | +- test: migrate Cargo testsuite to `snapbox`. |
| 170 | + For the complete list of migration pull requests, |
| 171 | + see [#14039](https://github.com/rust-lang/cargo/issues/14039#issuecomment-2158974033) |
55 | 172 | - Update dependencies.
|
56 | 173 | [#13995](https://github.com/rust-lang/cargo/pull/13995)
|
57 | 174 | [#13998](https://github.com/rust-lang/cargo/pull/13998)
|
58 | 175 | [#14037](https://github.com/rust-lang/cargo/pull/14037)
|
| 176 | + [#14063](https://github.com/rust-lang/cargo/pull/14063) |
| 177 | + [#14067](https://github.com/rust-lang/cargo/pull/14067) |
| 178 | + [#14174](https://github.com/rust-lang/cargo/pull/14174) |
| 179 | + [#14186](https://github.com/rust-lang/cargo/pull/14186) |
| 180 | + [#14254](https://github.com/rust-lang/cargo/pull/14254) |
59 | 181 |
|
60 | 182 | ## Cargo 1.80 (2024-07-25)
|
61 | 183 | [b60a1555...rust-1.80.0](https://github.com/rust-lang/cargo/compare/b60a1555...rust-1.80.0)
|
|
0 commit comments