|
1 | 1 | # Changelog
|
2 | 2 |
|
3 | 3 | ## Cargo 1.76 (2024-02-08)
|
4 |
| -[6790a512...HEAD](https://github.com/rust-lang/cargo/compare/6790a512...HEAD) |
| 4 | +[6790a512...rust-1.76.0](https://github.com/rust-lang/cargo/compare/6790a512...rust-1.76.0) |
5 | 5 |
|
6 | 6 | ### Added
|
7 | 7 |
|
| 8 | +- Added a Windows application manifest file to the built `cargo.exe` for windows msvc. |
| 9 | + [#13131](https://github.com/rust-lang/cargo/pull/13131) |
| 10 | + Notable changes: |
| 11 | + - States the compatibility with Windows versions 7, 8, 8.1, 10 and 11. |
| 12 | + - Sets the code page to UTF-8. |
| 13 | + - Enables long path awareness. |
| 14 | +- Added color output for `cargo --list`. |
| 15 | + [#12992](https://github.com/rust-lang/cargo/pull/12992) |
| 16 | +- cargo-add: `--optional <dep>` would create a `<dep> = "dep:<dep>"` feature. |
| 17 | + [#13071](https://github.com/rust-lang/cargo/pull/13071) |
| 18 | +- Extends Package ID spec for unambiguous specs. |
| 19 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/pkgid-spec.html) |
| 20 | + [#12933](https://github.com/rust-lang/cargo/pull/12933) |
| 21 | + Specifically, |
| 22 | + - Supports `git+` and `path+` schemes. |
| 23 | + - Supports Git ref query strings, such as `?branch=dev` or `?tag=1.69.0`. |
| 24 | + |
8 | 25 | ### Changed
|
9 | 26 |
|
| 27 | +- ❗️ Disallow `[lints]` in virtual workspaces. |
| 28 | + This was an overlook and `[lints]` in virtual workspaces always has no effect. |
| 29 | + [#13155](https://github.com/rust-lang/cargo/pull/13155) |
| 30 | +- Disallow empty name in several places like package ID spec and `cargo new`. |
| 31 | + [#13152](https://github.com/rust-lang/cargo/pull/13152) |
| 32 | +- Respect `rust-lang/rust`'s `omit-git-hash` option. |
| 33 | + [#12968](https://github.com/rust-lang/cargo/pull/12968) |
| 34 | +- Displays error count with a number, even when there is only one error. |
| 35 | + [#12484](https://github.com/rust-lang/cargo/pull/12484) |
| 36 | +- `all-static` feature now includes `vendored-libgit2`. |
| 37 | + [#13134](https://github.com/rust-lang/cargo/pull/13134) |
| 38 | +- crates-io: Add support for other 2xx HTTP status codes when interacting with registries. |
| 39 | + [#13158](https://github.com/rust-lang/cargo/pull/13158) |
| 40 | + [#13160](https://github.com/rust-lang/cargo/pull/13160) |
| 41 | +- home: Replace SHGetFolderPathW with SHGetKnownFolderPath. |
| 42 | + [#13173](https://github.com/rust-lang/cargo/pull/13173) |
| 43 | + |
10 | 44 | ### Fixed
|
11 | 45 |
|
| 46 | +- Print rustc messages colored on wincon. |
| 47 | + [#13140](https://github.com/rust-lang/cargo/pull/13140) |
| 48 | +- Fixed bash completion in directory with spaces. |
| 49 | + [#13126](https://github.com/rust-lang/cargo/pull/13126) |
| 50 | +- Fixed uninstall a running binary failed on Windows. |
| 51 | + [#13053](https://github.com/rust-lang/cargo/pull/13053) |
| 52 | + [#13099](https://github.com/rust-lang/cargo/pull/13099) |
| 53 | +- Fixed the error message for duplicate links. |
| 54 | + [#12973](https://github.com/rust-lang/cargo/pull/12973) |
| 55 | +- Fixed `--quiet` being used with nested subcommands. |
| 56 | + [#12959](https://github.com/rust-lang/cargo/pull/12959) |
| 57 | +- Fixed panic when there is a cycle in dev-dependencies. |
| 58 | + [#12977](https://github.com/rust-lang/cargo/pull/12977) |
| 59 | +- Don't panic when failed to parse rustc commit-hash. |
| 60 | + [#12963](https://github.com/rust-lang/cargo/pull/12963) |
| 61 | + [#12965](https://github.com/rust-lang/cargo/pull/12965) |
| 62 | +- Don't do git fetches when updating workspace members. |
| 63 | + [#12975](https://github.com/rust-lang/cargo/pull/12975) |
| 64 | +- Avoid writing CACHEDIR.TAG if it already exists. |
| 65 | + [#13132](https://github.com/rust-lang/cargo/pull/13132) |
| 66 | +- cargo-package: Only filter out `target` directory if it's in the package root. |
| 67 | + [#12944](https://github.com/rust-lang/cargo/pull/12944) |
| 68 | +- cargo-package: errors out when a build script doesn't exist or is outside the package root. |
| 69 | + [#12995](https://github.com/rust-lang/cargo/pull/12995) |
| 70 | +- cargo-credential-1password: Add missing `--account` argument to `op signin` command. |
| 71 | + [#12985](https://github.com/rust-lang/cargo/pull/12985) |
| 72 | + [#12986](https://github.com/rust-lang/cargo/pull/12986) |
| 73 | + |
| 74 | + |
12 | 75 | ### Nightly only
|
13 | 76 |
|
14 | 77 | - 🔥 The `-Zgc` flag enables garbage collection for deleting old, unused files
|
|
17 | 80 | [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#gc)
|
18 | 81 | [#12634](https://github.com/rust-lang/cargo/pull/12634)
|
19 | 82 | [#12958](https://github.com/rust-lang/cargo/pull/12958)
|
| 83 | + [#12981](https://github.com/rust-lang/cargo/pull/12981) |
| 84 | + [#13055](https://github.com/rust-lang/cargo/pull/13055) |
| 85 | +- 🔥 Added a new environment variable `CARGO_RUSTC_CURRENT_DIR`. |
| 86 | + This is a path that rustc is invoked from. |
| 87 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html?highlight=CARGO_RUSTC_CURRENT_DIR#environment-variables-cargo-sets-for-crates) |
| 88 | + [#12996](https://github.com/rust-lang/cargo/pull/12996) |
| 89 | +- `-Zcheck-cfg`: Include declared list of features in fingerprint for `-Zcheck-cfg`. |
| 90 | + [#13012](https://github.com/rust-lang/cargo/pull/13012) |
| 91 | +- `-Zcheck-cfg`: Fix `--check-cfg` invocations with zero features. |
| 92 | + [#13011](https://github.com/rust-lang/cargo/pull/13011) |
| 93 | +- `-Ztrim-paths`: reorder `--remap-path-prefix` flags for `-Zbuild-std`. |
| 94 | + [#13065](https://github.com/rust-lang/cargo/pull/13065) |
| 95 | +- `-Ztrim-paths`: explicitly remap current dir by using `.`. |
| 96 | + [#13114](https://github.com/rust-lang/cargo/pull/13114) |
| 97 | +- `-Ztrim-paths`: exercise with real world debugger. |
| 98 | + [#13091](https://github.com/rust-lang/cargo/pull/13091) |
| 99 | + [#13118](https://github.com/rust-lang/cargo/pull/13118) |
| 100 | +- `-Zpublic-dependency`: Limit `exported-private-dependencies` lints to libraries. |
| 101 | + [#13135](https://github.com/rust-lang/cargo/pull/13135) |
| 102 | +- `-Zpublic-dependency`: Disallow workspace-inheriting of dependency public status. |
| 103 | + [#13125](https://github.com/rust-lang/cargo/pull/13125) |
| 104 | +- `-Zpublic-dependency`: Add `--public` for `cargo add`. |
| 105 | + [#13046](https://github.com/rust-lang/cargo/pull/13046) |
| 106 | +- `-Zpublic-dependency`: Remove unused public-deps error handling |
| 107 | + [#13036](https://github.com/rust-lang/cargo/pull/13036) |
| 108 | +- `-Zmsrv-policy`: Prefer MSRV, rather than ignore incompatible. |
| 109 | + [#12950](https://github.com/rust-lang/cargo/pull/12950) |
| 110 | +- `-Zmsrv-policy`: De-prioritize no-rust-version in MSRV resolver. |
| 111 | + [#13066](https://github.com/rust-lang/cargo/pull/13066) |
| 112 | +- `-Zrustdoc-scrape-examples`: Don't filter on workspace members when scraping doc examples. |
| 113 | + [#13077](https://github.com/rust-lang/cargo/pull/13077) |
20 | 114 |
|
21 | 115 | ### Documentation
|
22 | 116 |
|
| 117 | +- Recommends a wider selection of libsecret-compatible password managers. |
| 118 | + [#12993](https://github.com/rust-lang/cargo/pull/12993) |
| 119 | +- Clarified different targets has different sets of `CARGO_CFG_*` values. |
| 120 | + [#13069](https://github.com/rust-lang/cargo/pull/13069) |
| 121 | +- Clarified `[lints]` table only affects local development of the current package. |
| 122 | + [#12976](https://github.com/rust-lang/cargo/pull/12976) |
| 123 | +- Clarified `cargo search` can search in alternative registries. |
| 124 | + [#12962](https://github.com/rust-lang/cargo/pull/12962) |
| 125 | +- Added common CI practices for verifying `rust-version` (MSRV) field. |
| 126 | + [#13056](https://github.com/rust-lang/cargo/pull/13056) |
| 127 | +- Added a link to rustc lint levels doc. |
| 128 | + [#12990](https://github.com/rust-lang/cargo/pull/12990) |
| 129 | +- Added a link to the packages lint table from the related workspace table |
| 130 | + [#13057](https://github.com/rust-lang/cargo/pull/13057) |
| 131 | +- contrib: Add more resources to the contrib docs. |
| 132 | + [#13008](https://github.com/rust-lang/cargo/pull/13008) |
| 133 | +- contrib: Update how that credential crates are published. |
| 134 | + [#13006](https://github.com/rust-lang/cargo/pull/13006) |
| 135 | +- contrib: remove review capacity notice. |
| 136 | + [#13070](https://github.com/rust-lang/cargo/pull/13070) |
| 137 | + |
23 | 138 | ### Internal
|
24 | 139 |
|
25 |
| -- Refactored `Cargo.toml` parsing code in preparation of extracting an offical schema API. |
| 140 | +- 🎉 Migrate `rustfix` crate to the `rust-lang/cargo` repository. |
| 141 | + [#13005](https://github.com/rust-lang/cargo/pull/13005) |
| 142 | + [#13042](https://github.com/rust-lang/cargo/pull/13042) |
| 143 | + [#13047](https://github.com/rust-lang/cargo/pull/13047) |
| 144 | + [#13048](https://github.com/rust-lang/cargo/pull/13048) |
| 145 | + [#13050](https://github.com/rust-lang/cargo/pull/13050) |
| 146 | +- Updated to `curl-sys` 0.4.70, which corresponds to curl 8.4.0. |
| 147 | + [#13147](https://github.com/rust-lang/cargo/pull/13147) |
| 148 | +- Updated to `gix-index` 0.27.1. |
| 149 | + [#13148](https://github.com/rust-lang/cargo/pull/13148) |
| 150 | +- Updated to `itertools` 0.12.0. |
| 151 | + [#13086](https://github.com/rust-lang/cargo/pull/13086) |
| 152 | +- Updated to `rusqlite` 0.30.0. |
| 153 | + [#13087](https://github.com/rust-lang/cargo/pull/13087) |
| 154 | +- Updated to `toml_edit` 0.21.0. |
| 155 | + [#13088](https://github.com/rust-lang/cargo/pull/13088) |
| 156 | +- Updated to `windows-sys` 0.52.0. |
| 157 | + [#13089](https://github.com/rust-lang/cargo/pull/13089) |
| 158 | +- Re-enable flaky gitoxide auth tests thanks to update to `gix-config`. |
| 159 | + [#13117](https://github.com/rust-lang/cargo/pull/13117) |
| 160 | + [#13129](https://github.com/rust-lang/cargo/pull/13129) |
| 161 | + [#13130](https://github.com/rust-lang/cargo/pull/13130) |
| 162 | +- Dogfood Cargo `-Zlints` table feature. |
| 163 | + [#12178](https://github.com/rust-lang/cargo/pull/12178) |
| 164 | +- Refactored `Cargo.toml` parsing code in preparation of extracting an official |
| 165 | + schema API. |
26 | 166 | [#12954](https://github.com/rust-lang/cargo/pull/12954)
|
27 | 167 | [#12960](https://github.com/rust-lang/cargo/pull/12960)
|
28 | 168 | [#12961](https://github.com/rust-lang/cargo/pull/12961)
|
29 |
| -- Fixed `--quiet` being used with nested subcommands. |
30 |
| - [#12959](https://github.com/rust-lang/cargo/pull/12959) |
| 169 | + [#12971](https://github.com/rust-lang/cargo/pull/12971) |
| 170 | + [#13000](https://github.com/rust-lang/cargo/pull/13000) |
| 171 | + [#13021](https://github.com/rust-lang/cargo/pull/13021) |
| 172 | + [#13080](https://github.com/rust-lang/cargo/pull/13080) |
| 173 | + [#13097](https://github.com/rust-lang/cargo/pull/13097) |
| 174 | + [#13123](https://github.com/rust-lang/cargo/pull/13123) |
| 175 | + [#13128](https://github.com/rust-lang/cargo/pull/13128) |
| 176 | + [#13154](https://github.com/rust-lang/cargo/pull/13154) |
| 177 | + [#13166](https://github.com/rust-lang/cargo/pull/13166) |
| 178 | +- Use `IndexSummary` in `query{_vec}` functions. |
| 179 | + [#12970](https://github.com/rust-lang/cargo/pull/12970) |
| 180 | +- ci: migrate renovate config |
| 181 | + [#13106](https://github.com/rust-lang/cargo/pull/13106) |
| 182 | +- ci: Always update gix packages together |
| 183 | + [#13093](https://github.com/rust-lang/cargo/pull/13093) |
| 184 | +- ci: Catch naive use of AtomicU64 early |
| 185 | + [#12988](https://github.com/rust-lang/cargo/pull/12988) |
| 186 | +- xtask-bump-check: dont check `home` against beta/stable branches |
| 187 | + [#13167](https://github.com/rust-lang/cargo/pull/13167) |
| 188 | +- cargo-test-support: Handle $message_type in JSON diagnostics |
| 189 | + [#13016](https://github.com/rust-lang/cargo/pull/13016) |
| 190 | +- cargo-test-support: Add more options to registry test support. |
| 191 | + [#13085](https://github.com/rust-lang/cargo/pull/13085) |
| 192 | +- cargo-test-support: Add features to the default Cargo.toml file |
| 193 | + [#12997](https://github.com/rust-lang/cargo/pull/12997) |
| 194 | +- cargo-test-support: Fix clippy-wrapper test race condition. |
| 195 | + [#12999](https://github.com/rust-lang/cargo/pull/12999) |
| 196 | +- test: Don't rely on mtime to test changes |
| 197 | + [#13143](https://github.com/rust-lang/cargo/pull/13143) |
| 198 | +- test: remove unnecessary packages and versions for `optionals` tests |
| 199 | + [#13108](https://github.com/rust-lang/cargo/pull/13108) |
| 200 | +- test: Remove the deleted feature `test_2018_feature` from the test. |
| 201 | + [#13156](https://github.com/rust-lang/cargo/pull/13156) |
| 202 | +- test: remove jobserver env var in some tests. |
| 203 | + [#13072](https://github.com/rust-lang/cargo/pull/13072) |
| 204 | +- test: Fix a rustflags test using a wrong buildfile name |
| 205 | + [#12987](https://github.com/rust-lang/cargo/pull/12987) |
| 206 | +- test: Fix some test output validation. |
| 207 | + [#12982](https://github.com/rust-lang/cargo/pull/12982) |
| 208 | +- test: Ignore changing_spec_relearns_crate_types on windows-gnu |
| 209 | + [#12972](https://github.com/rust-lang/cargo/pull/12972) |
31 | 210 |
|
32 | 211 | ## Cargo 1.75 (2023-12-28)
|
33 | 212 | [59596f0f...rust-1.75.0](https://github.com/rust-lang/cargo/compare/59596f0f...rust-1.75.0)
|
|
0 commit comments