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