]> git.proxmox.com Git - cargo.git/blame - CHANGELOG.md
Bump curl.
[cargo.git] / CHANGELOG.md
CommitLineData
2cbb701b
EH
1# Changelog
2
570107f8
EH
3## Cargo 1.56 (2021-10-21)
4[cebef295...HEAD](https://github.com/rust-lang/cargo/compare/cebef295...HEAD)
5
6### Added
7
c43024f0
DO
8- Added support for the [`rust-version`](https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field)
9 field in a crate's metadata and the `--ignore-rust-version` command line option.
570107f8
EH
10- Build scripts can now pass additional linker arguments for binaries or all
11 linkable targets. [docs](https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#outputs-of-the-build-script)
12 [#9557](https://github.com/rust-lang/cargo/pull/9557)
13- Added support for the `-p` flag for `cargo publish` to publish a specific
14 package in a workspace. `cargo package` also now supports `-p` and
15 `--workspace`.
16 [#9559](https://github.com/rust-lang/cargo/pull/9559)
17
18### Changed
19
20- Doc tests now support the `-q` flag to show terse test output.
21 [#9730](https://github.com/rust-lang/cargo/pull/9730)
22- `features` used in a `[replace]` table now issues a warning, as they are ignored.
23 [#9681](https://github.com/rust-lang/cargo/pull/9681)
24- Changed so that only `wasm32-unknown-emscripten` executables are built
25 without a hash in the filename. Previously it was all `wasm32` targets.
26 Additionally, all `apple` binaries are now built with a hash in the
27 filename. This allows multiple copies to be cached at once, and matches the
28 behavior on other platforms (except `msvc`).
29 [#9653](https://github.com/rust-lang/cargo/pull/9653)
30
31### Fixed
32
33### Nightly only
34
35
ff3155db 36## Cargo 1.55 (2021-09-09)
570107f8 37[aa8b0929...rust-1.55.0](https://github.com/rust-lang/cargo/compare/aa8b0929...rust-1.55.0)
ff3155db
EH
38
39### Added
40
41- The package definition in `cargo metadata` now includes the `"default_run"`
42 field from the manifest.
43 [#9550](https://github.com/rust-lang/cargo/pull/9550)
570107f8
EH
44- Build scripts now have access to the following environment variables:
45 `RUSTC_WRAPPER`, `RUSTC_WORKSPACE_WRAPPER`, `CARGO_ENCODED_RUSTFLAGS`.
46 [docs](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts)
47 [#9601](https://github.com/rust-lang/cargo/pull/9601)
48- Added `cargo d` as an alias for `cargo doc`.
49 [#9680](https://github.com/rust-lang/cargo/pull/9680)
50- Added `{lib}` to the `cargo tree --format` option to display the library
51 name of a package.
52 [#9663](https://github.com/rust-lang/cargo/pull/9663)
53- Added `members_mut` method to the `Workspace` API.
54 [#9547](https://github.com/rust-lang/cargo/pull/9547)
ff3155db
EH
55
56### Changed
57
58- If a build command does not match any targets when using the
59 `--all-targets`, `--bins`, `--tests`, `--examples`, or `--benches` flags, a
60 warning is now displayed to inform you that there were no matching targets.
61 [#9549](https://github.com/rust-lang/cargo/pull/9549)
62- The way `cargo init` detects whether or not existing source files represent
63 a binary or library has been changed to respect the command-line flags
64 instead of trying to guess which type it is.
65 [#9522](https://github.com/rust-lang/cargo/pull/9522)
570107f8
EH
66- Registry names are now displayed instead of registry URLs when possible.
67 [#9632](https://github.com/rust-lang/cargo/pull/9632)
68- Duplicate compiler diagnostics are no longer shown. This can often happen
69 with `cargo test` which builds multiple copies of the same code in parallel.
70 This also updates the warning summary to provide more context.
71 [#9675](https://github.com/rust-lang/cargo/pull/9675)
72- The output for warnings or errors is now improved to be leaner, cleaner, and
73 show more context.
74 [#9655](https://github.com/rust-lang/cargo/pull/9655)
75- Network send errors are now treated as "spurious" which means they will be retried.
76 [#9695](https://github.com/rust-lang/cargo/pull/9695)
77- Git keys (`branch`, `tag`, `rev`) on a non-git dependency are now an error.
78 Additionally, specifying both `git` and `path` is now an error.
79 [#9689](https://github.com/rust-lang/cargo/pull/9689)
80- Specifying a dependency without any keys is now an error.
81 [#9686](https://github.com/rust-lang/cargo/pull/9686)
82- The resolver now prefers to use `[patch]` table entries of dependencies when
83 possible.
84 [#9639](https://github.com/rust-lang/cargo/pull/9639)
85- Package name typo errors in dependencies are now displayed aligned with the
86 original to help make it easier to see the difference.
87 [#9665](https://github.com/rust-lang/cargo/pull/9665)
88- Windows platforms may now warn on environment variables that have the wrong case.
89 [#9654](https://github.com/rust-lang/cargo/pull/9654)
90- `features` used in a `[patch]` table now issues a warning, as they are ignored.
91 [#9666](https://github.com/rust-lang/cargo/pull/9666)
92- The `target` directory is now excluded from content indexing on Windows.
93 [#9635](https://github.com/rust-lang/cargo/pull/9635)
94- When `Cargo.toml` is not found, the error message now detects if it was
95 misnamed with a lowercase `c` to suggest the correct form.
96 [#9607](https://github.com/rust-lang/cargo/pull/9607)
97- Building `diesel` with the new resolver displays a compatibility notice.
98 [#9602](https://github.com/rust-lang/cargo/pull/9602)
99- Updated the `opener` dependency, which handles opening a web browser, which
100 includes several changes, such as new behavior when run on WSL, and using
101 the system `xdg-open` on Linux.
102 [#9583](https://github.com/rust-lang/cargo/pull/9583)
ff3155db
EH
103
104### Fixed
105
106- Fixed dep-info files including non-local build script paths.
107 [#9596](https://github.com/rust-lang/cargo/pull/9596)
ff3155db
EH
108- Handle "jobs = 0" case in cargo config files
109 [#9584](https://github.com/rust-lang/cargo/pull/9584)
110- Implement warning for ignored trailing arguments after `--`
111 [#9561](https://github.com/rust-lang/cargo/pull/9561)
112- Fixed rustc/rustdoc config values to be config-relative.
113 [#9566](https://github.com/rust-lang/cargo/pull/9566)
114- `cargo fix` now supports rustc's suggestions with multiple spans.
115 [#9567](https://github.com/rust-lang/cargo/pull/9567)
570107f8
EH
116- `cargo fix` now fixes each target serially instead of in parallel to avoid
117 problems with fixing the same file concurrently.
118 [#9677](https://github.com/rust-lang/cargo/pull/9677)
119- Changes to the target `linker` config value now trigger a rebuild.
120 [#9647](https://github.com/rust-lang/cargo/pull/9647)
121- Git unstaged deleted files are now ignored when using the `--allow-dirty`
122 flag with `cargo publish` or `cargo package`.
123 [#9645](https://github.com/rust-lang/cargo/pull/9645)
ff3155db
EH
124
125### Nightly only
126
127- Enabled support for `cargo fix --edition` for 2021.
128 [#9588](https://github.com/rust-lang/cargo/pull/9588)
570107f8
EH
129- Several changes to named profiles.
130 [#9685](https://github.com/rust-lang/cargo/pull/9685)
131- Extended instructions on what to do when running `cargo fix --edition` on
132 the 2021 edition.
133 [#9694](https://github.com/rust-lang/cargo/pull/9694)
134- Multiple updates to error messages using nightly features to help better
135 explain the situation.
136 [#9657](https://github.com/rust-lang/cargo/pull/9657)
137- Adjusted the edition 2021 resolver diff report.
138 [#9649](https://github.com/rust-lang/cargo/pull/9649)
139- Fixed error using `cargo doc --open` with `doc.extern-map`.
140 [#9531](https://github.com/rust-lang/cargo/pull/9531)
141- Unified weak and namespaced features.
142 [#9574](https://github.com/rust-lang/cargo/pull/9574)
143- Various updates to future-incompatible reporting.
144 [#9606](https://github.com/rust-lang/cargo/pull/9606)
145- `[env]` environment variables are not allowed to set vars set by Cargo.
146 [#9579](https://github.com/rust-lang/cargo/pull/9579)
ff3155db 147
b25b4087 148## Cargo 1.54 (2021-07-29)
ff3155db 149[4369396c...rust-1.54.0](https://github.com/rust-lang/cargo/compare/4369396c...rust-1.54.0)
64aa6369
EH
150
151### Added
152
b25b4087
EH
153- Fetching from a git repository (such as the crates.io index) now displays
154 the network transfer rate.
155 [#9395](https://github.com/rust-lang/cargo/pull/9395)
ff3155db
EH
156- Added `--prune` option for `cargo tree` to limit what is displayed.
157 [#9520](https://github.com/rust-lang/cargo/pull/9520)
158- Added `--depth` option for `cargo tree` to limit what is displayed.
159 [#9499](https://github.com/rust-lang/cargo/pull/9499)
160- Added `cargo tree -e no-proc-macro` to hide procedural macro dependencies.
161 [#9488](https://github.com/rust-lang/cargo/pull/9488)
162- Added `doc.browser` config option to set which browser to open with `cargo doc --open`.
163 [#9473](https://github.com/rust-lang/cargo/pull/9473)
164- Added `CARGO_TARGET_TMPDIR` environment variable set for integration tests &
165 benches. This provides a temporary or "scratch" directory in the `target`
166 directory for tests and benches to use.
167 [#9375](https://github.com/rust-lang/cargo/pull/9375)
b25b4087 168
64aa6369
EH
169### Changed
170
ff3155db
EH
171- `--features` CLI flags now provide typo suggestions with the new feature resolver.
172 [#9420](https://github.com/rust-lang/cargo/pull/9420)
173- Cargo now uses a new parser for SemVer versions. This should behave mostly
174 the same as before with some minor exceptions where invalid syntax for
175 version requirements is now rejected.
176 [#9508](https://github.com/rust-lang/cargo/pull/9508)
177- Mtime handling of `.crate` published packages has changed slightly to avoid
178 mtime values of 0. This was causing problems with lldb which refused to read
179 those files.
180 [#9517](https://github.com/rust-lang/cargo/pull/9517)
181- Improved performance of git status check in `cargo package`.
182 [#9478](https://github.com/rust-lang/cargo/pull/9478)
183- `cargo new` with fossil now places the ignore settings in the new repository
184 instead of using `fossil settings` to set them globally. This also includes
185 several other cleanups to make it more consistent with other VCS
186 configurations.
187 [#9469](https://github.com/rust-lang/cargo/pull/9469)
570107f8
EH
188- `rustc-cdylib-link-arg` applying transitively displays a warning that this
189 was not intended, and may be an error in the future.
190 [#9563](https://github.com/rust-lang/cargo/pull/9563)
ff3155db 191
b25b4087
EH
192### Fixed
193
194- Fixed `package.exclude` in `Cargo.toml` using inverted exclusions
195 (`!somefile`) when not in a git repository or when vendoring a dependency.
196 [#9186](https://github.com/rust-lang/cargo/pull/9186)
197- Dep-info files now adjust build script `rerun-if-changed` paths to be
198 absolute paths.
199 [#9421](https://github.com/rust-lang/cargo/pull/9421)
ff3155db
EH
200- Fixed a bug when with resolver = "1" non-virtual package was allowing
201 unknown features.
202 [#9437](https://github.com/rust-lang/cargo/pull/9437)
203- Fixed an issue with the index cache mishandling versions that only
204 differed in build metadata (such as `110.0.0` and `110.0.0+1.1.0f`).
205 [#9476](https://github.com/rust-lang/cargo/pull/9476)
206- Fixed `cargo install` with a semver metadata version.
207 [#9467](https://github.com/rust-lang/cargo/pull/9467)
b25b4087
EH
208
209### Nightly only
210
211- Added `report` subcommand, and changed `cargo
212 describe-future-incompatibilitie` to `cargo report
213 future-incompatibilities`.
214 [#9438](https://github.com/rust-lang/cargo/pull/9438)
ff3155db
EH
215- Added a `[host]` table to the config files to be able to set build flags for
216 host target. Also added `target-applies-to-host` to control how the
217 `[target]` tables behave.
218 [#9322](https://github.com/rust-lang/cargo/pull/9322)
219- Added some validation to build script `rustc-link-arg-*` instructions to
220 return an error if the target doesn't exist.
221 [#9523](https://github.com/rust-lang/cargo/pull/9523)
222- Added `cargo:rustc-link-arg-bin` instruction for build scripts.
223 [#9486](https://github.com/rust-lang/cargo/pull/9486)
b25b4087
EH
224
225
226## Cargo 1.53 (2021-06-17)
227[90691f2b...rust-1.53.0](https://github.com/rust-lang/cargo/compare/90691f2b...rust-1.53.0)
228
229### Added
230
231### Changed
06ccdfaf
EH
232- 🔥 Cargo now supports git repositories where the default `HEAD` branch is not
233 "master". This also includes a switch to the version 3 `Cargo.lock` format
234 which can handle default branches correctly.
235 [#9133](https://github.com/rust-lang/cargo/pull/9133)
b25b4087
EH
236 [#9397](https://github.com/rust-lang/cargo/pull/9397)
237 [#9384](https://github.com/rust-lang/cargo/pull/9384)
238 [#9392](https://github.com/rust-lang/cargo/pull/9392)
239- 🔥 macOS targets now default to `unpacked` split-debuginfo.
64aa6369
EH
240 [#9298](https://github.com/rust-lang/cargo/pull/9298)
241- ❗ The `authors` field is no longer included in `Cargo.toml` for new
242 projects.
243 [#9282](https://github.com/rust-lang/cargo/pull/9282)
244- `cargo update` may now work with the `--offline` flag.
245 [#9279](https://github.com/rust-lang/cargo/pull/9279)
06ccdfaf
EH
246- `cargo doc` will now erase the `doc` directory when switching between
247 different toolchain versions. There are shared, unversioned files (such as
248 the search index) that can become broken when using different versions.
249 [#8640](https://github.com/rust-lang/cargo/pull/8640)
b25b4087
EH
250 [#9404](https://github.com/rust-lang/cargo/pull/9404)
251- Improved error messages when path dependency/workspace member is missing.
252 [#9368](https://github.com/rust-lang/cargo/pull/9368)
64aa6369
EH
253
254### Fixed
b25b4087
EH
255- Fixed `cargo doc` detecting if the documentation needs to be rebuilt when
256 changing some settings such as features.
257 [#9419](https://github.com/rust-lang/cargo/pull/9419)
258- `cargo doc` now deletes the output directory for the package before running
259 rustdoc to clear out any stale files.
260 [#9419](https://github.com/rust-lang/cargo/pull/9419)
261- Fixed the `-C metadata` value to always include all information for all
262 builds. Previously, in some situations, the hash only included the package
263 name and version. This fixes some issues, such as incremental builds with
264 split-debuginfo on macOS corrupting the incremental cache in some cases.
265 [#9418](https://github.com/rust-lang/cargo/pull/9418)
266- Fixed man pages not working on Windows if `man` is in `PATH`.
267 [#9378](https://github.com/rust-lang/cargo/pull/9378)
268- The `rustc` cache is now aware of `RUSTC_WRAPPER` and `RUSTC_WORKSPACE_WRAPPER`.
269 [#9348](https://github.com/rust-lang/cargo/pull/9348)
270- Track the `CARGO` environment variable in the rebuild fingerprint if the
271 code uses `env!("CARGO")`.
272 [#9363](https://github.com/rust-lang/cargo/pull/9363)
64aa6369
EH
273
274### Nightly only
275- Fixed config includes not working.
276 [#9299](https://github.com/rust-lang/cargo/pull/9299)
277- Emit note when `--future-incompat-report` had nothing to report.
278 [#9263](https://github.com/rust-lang/cargo/pull/9263)
279- Error messages for nightly features flags (like `-Z` and `cargo-features`)
b25b4087 280 now provides more information.
64aa6369 281 [#9290](https://github.com/rust-lang/cargo/pull/9290)
b25b4087
EH
282- Added the ability to set the target for an individual package in `Cargo.toml`.
283 [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#per-package-target)
284 [#9030](https://github.com/rust-lang/cargo/pull/9030)
285- Fixed build-std updating the index on every build.
286 [#9393](https://github.com/rust-lang/cargo/pull/9393)
287- `-Z help` now displays all the `-Z` options.
288 [#9369](https://github.com/rust-lang/cargo/pull/9369)
289- Added `-Zallow-features` to specify which nightly features are allowed to be used.
290 [#9283](https://github.com/rust-lang/cargo/pull/9283)
291- Added `cargo config` subcommand.
292 [#9302](https://github.com/rust-lang/cargo/pull/9302)
64aa6369 293
d78b873a 294## Cargo 1.52 (2021-05-06)
64aa6369 295[34170fcd...rust-1.52.0](https://github.com/rust-lang/cargo/compare/34170fcd...rust-1.52.0)
d78b873a
EH
296
297### Added
64aa6369
EH
298- Added the `"manifest_path"` field to JSON messages for a package.
299 [#9022](https://github.com/rust-lang/cargo/pull/9022)
300 [#9247](https://github.com/rust-lang/cargo/pull/9247)
d78b873a
EH
301
302### Changed
64aa6369
EH
303- Build scripts are now forbidden from setting `RUSTC_BOOTSTRAP` on stable.
304 [#9181](https://github.com/rust-lang/cargo/pull/9181)
06ccdfaf 305 [#9385](https://github.com/rust-lang/cargo/pull/9385)
64aa6369
EH
306- crates.io now supports SPDX 3.11 licenses.
307 [#9209](https://github.com/rust-lang/cargo/pull/9209)
308- An error is now reported if `CARGO_TARGET_DIR` is an empty string.
309 [#8939](https://github.com/rust-lang/cargo/pull/8939)
310- Doc tests now pass the `--message-format` flag into the test so that the
311 "short" format can now be used for doc tests.
312 [#9128](https://github.com/rust-lang/cargo/pull/9128)
313- `cargo test` now prints a clearer indicator of which target is currently running.
314 [#9195](https://github.com/rust-lang/cargo/pull/9195)
315- The `CARGO_TARGET_<TRIPLE>` environment variable will now issue a warning if
316 it is using lowercase letters.
317 [#9169](https://github.com/rust-lang/cargo/pull/9169)
d78b873a
EH
318
319### Fixed
64aa6369
EH
320- Fixed publication of packages with metadata and resolver fields in `Cargo.toml`.
321 [#9300](https://github.com/rust-lang/cargo/pull/9300)
322 [#9304](https://github.com/rust-lang/cargo/pull/9304)
323- Fixed logic for determining prefer-dynamic for a dylib which differed in a
324 workspace vs a single package.
325 [#9252](https://github.com/rust-lang/cargo/pull/9252)
326- Fixed an issue where exclusive target-specific dependencies that overlapped
327 across dependency kinds (like regular and build-dependencies) would
328 incorrectly include the dependencies in both.
329 [#9255](https://github.com/rust-lang/cargo/pull/9255)
330- Fixed panic with certain styles of Package IDs when passed to the `-p` flag.
331 [#9188](https://github.com/rust-lang/cargo/pull/9188)
332- When running cargo with output not going to a TTY, and with the progress bar
333 and color force-enabled, the output will now correctly clear the progress
334 line.
335 [#9231](https://github.com/rust-lang/cargo/pull/9231)
336- Error instead of panic when JSON may contain non-utf8 paths.
337 [#9226](https://github.com/rust-lang/cargo/pull/9226)
338- Fixed a hang that can happen on broken stderr.
339 [#9201](https://github.com/rust-lang/cargo/pull/9201)
340- Fixed thin-local LTO not being disabled correctly when `lto=off` is set.
341 [#9182](https://github.com/rust-lang/cargo/pull/9182)
d78b873a
EH
342
343### Nightly only
344- The `strip` profile option now supports `true` and `false` values.
345 [#9153](https://github.com/rust-lang/cargo/pull/9153)
64aa6369
EH
346- `cargo fix --edition` now displays a report when switching to 2021 if the
347 new resolver changes features.
348 [#9268](https://github.com/rust-lang/cargo/pull/9268)
349- Added `[patch]` table support in `.cargo/config` files.
350 [#9204](https://github.com/rust-lang/cargo/pull/9204)
351- Added `cargo describe-future-incompatibilities` for generating a report on
352 dependencies that contain future-incompatible warnings.
353 [#8825](https://github.com/rust-lang/cargo/pull/8825)
354- Added easier support for testing the 2021 edition.
355 [#9184](https://github.com/rust-lang/cargo/pull/9184)
356- Switch the default resolver to "2" in the 2021 edition.
357 [#9184](https://github.com/rust-lang/cargo/pull/9184)
358- `cargo fix --edition` now supports 2021.
359 [#9184](https://github.com/rust-lang/cargo/pull/9184)
360- Added `--print` flag to `cargo rustc` to pass along to `rustc` to display
361 information from rustc.
362 [#9002](https://github.com/rust-lang/cargo/pull/9002)
363- Added `-Zdoctest-in-workspace` for changing the directory where doctests are
364 *run* versus where they are *compiled*.
365 [#9105](https://github.com/rust-lang/cargo/pull/9105)
366- Added support for an `[env]` section in `.cargo/config.toml` to set
367 environment variables when running cargo.
368 [#9175](https://github.com/rust-lang/cargo/pull/9175)
369- Added a schema field and `features2` field to the index.
370 [#9161](https://github.com/rust-lang/cargo/pull/9161)
371- Changes to JSON spec targets will now trigger a rebuild.
372 [#9223](https://github.com/rust-lang/cargo/pull/9223)
d78b873a 373
5168b7e3 374## Cargo 1.51 (2021-03-25)
d78b873a 375[75d5d8cf...rust-1.51.0](https://github.com/rust-lang/cargo/compare/75d5d8cf...rust-1.51.0)
5168b7e3
EH
376
377### Added
d78b873a
EH
378- 🔥 Added the `split-debuginfo` profile option.
379 [docs](https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#split-debuginfo)
380 [#9112](https://github.com/rust-lang/cargo/pull/9112)
381- Added the `path` field to `cargo metadata` for the package dependencies list
382 to show the path for "path" dependencies.
383 [#8994](https://github.com/rust-lang/cargo/pull/8994)
384- 🔥 Added a new feature resolver, and new CLI feature flag behavior. See the
385 new [features](https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2)
386 and [resolver](https://doc.rust-lang.org/nightly/cargo/reference/resolver.html#feature-resolver-version-2)
387 documentation for the `resolver = "2"` option. See the
388 [CLI](https://doc.rust-lang.org/nightly/cargo/reference/features.html#command-line-feature-options)
389 and [resolver 2 CLI](https://doc.rust-lang.org/nightly/cargo/reference/features.html#resolver-version-2-command-line-flags)
390 options for the new CLI behavior. And, finally, see
391 [RFC 2957](https://github.com/rust-lang/rfcs/blob/master/text/2957-cargo-features2.md)
392 for a detailed look at what has changed.
393 [#8997](https://github.com/rust-lang/cargo/pull/8997)
5168b7e3
EH
394
395### Changed
d78b873a
EH
396- `cargo install --locked` now emits a warning if `Cargo.lock` is not found.
397 [#9108](https://github.com/rust-lang/cargo/pull/9108)
398- Unknown or ambiguous package IDs passed on the command-line now display
399 suggestions for the correct package ID.
400 [#9095](https://github.com/rust-lang/cargo/pull/9095)
401- Slightly optimize `cargo vendor`
402 [#8937](https://github.com/rust-lang/cargo/pull/8937)
403 [#9131](https://github.com/rust-lang/cargo/pull/9131)
404 [#9132](https://github.com/rust-lang/cargo/pull/9132)
5168b7e3
EH
405
406### Fixed
d78b873a
EH
407- Fixed environment variables and cfg settings emitted by a build script that
408 are set for `cargo test` and `cargo run` when the build script runs multiple
409 times during the same build session.
410 [#9122](https://github.com/rust-lang/cargo/pull/9122)
411- Fixed a panic with `cargo doc` and the new feature resolver. This also
412 introduces some heuristics to try to avoid path collisions with `rustdoc` by
413 only documenting one variant of a package if there are multiple (such as
414 multiple versions, or the same package shared for host and target
415 platforms).
416 [#9077](https://github.com/rust-lang/cargo/pull/9077)
417- Fixed a bug in Cargo's cyclic dep graph detection that caused a stack
418 overflow.
419 [#9075](https://github.com/rust-lang/cargo/pull/9075)
420- Fixed build script `links` environment variables (`DEP_*`) not showing up
421 for testing packages in some cases.
422 [#9065](https://github.com/rust-lang/cargo/pull/9065)
423- Fixed features being selected in a nondeterministic way for a specific
424 scenario when building an entire workspace with all targets with a
425 proc-macro in the workspace with `resolver="2"`.
426 [#9059](https://github.com/rust-lang/cargo/pull/9059)
427- Fixed to use `http.proxy` setting in `~/.gitconfig`.
428 [#8986](https://github.com/rust-lang/cargo/pull/8986)
64aa6369
EH
429- Fixed --feature pkg/feat for V1 resolver for non-member.
430 [#9275](https://github.com/rust-lang/cargo/pull/9275)
431 [#9277](https://github.com/rust-lang/cargo/pull/9277)
432- Fixed panic in `cargo doc` when there are colliding output filenames in a workspace.
433 [#9276](https://github.com/rust-lang/cargo/pull/9276)
434 [#9277](https://github.com/rust-lang/cargo/pull/9277)
435- Fixed `cargo install` from exiting with success if one of several packages
436 did not install successfully.
437 [#9185](https://github.com/rust-lang/cargo/pull/9185)
438 [#9196](https://github.com/rust-lang/cargo/pull/9196)
439- Fix panic with doc collision orphan.
440 [#9142](https://github.com/rust-lang/cargo/pull/9142)
441 [#9196](https://github.com/rust-lang/cargo/pull/9196)
5168b7e3
EH
442
443### Nightly only
d78b873a
EH
444- Removed the `publish-lockfile` unstable feature, it was stabilized without
445 the need for an explicit flag 1.5 years ago.
446 [#9092](https://github.com/rust-lang/cargo/pull/9092)
447- Added better diagnostics, help messages, and documentation for nightly
448 features (such as those passed with the `-Z` flag, or specified with
449 `cargo-features` in `Cargo.toml`).
450 [#9092](https://github.com/rust-lang/cargo/pull/9092)
451- Added support for Rust edition 2021.
452 [#8922](https://github.com/rust-lang/cargo/pull/8922)
453- Added support for the `rust-version` field in project metadata.
454 [#8037](https://github.com/rust-lang/cargo/pull/8037)
64aa6369
EH
455- Added a schema field to the index.
456 [#9161](https://github.com/rust-lang/cargo/pull/9161)
457 [#9196](https://github.com/rust-lang/cargo/pull/9196)
5168b7e3 458
675fb9fc 459## Cargo 1.50 (2021-02-11)
5168b7e3 460[8662ab42...rust-1.50.0](https://github.com/rust-lang/cargo/compare/8662ab42...rust-1.50.0)
675fb9fc
EH
461
462### Added
463- Added the `doc` field to `cargo metadata`, which indicates if a target is
464 documented.
465 [#8869](https://github.com/rust-lang/cargo/pull/8869)
5168b7e3
EH
466- Added `RUSTC_WORKSPACE_WRAPPER`, an alternate RUSTC wrapper that only runs
467 for the local workspace packages, and caches its artifacts independently of
468 non-wrapped builds.
469 [#8976](https://github.com/rust-lang/cargo/pull/8976)
470- Added `--workspace` to `cargo update` to update only the workspace members,
471 and not their dependencies. This is particularly useful if you update the
472 version in `Cargo.toml` and want to update `Cargo.lock` without running any
473 other commands.
474 [#8725](https://github.com/rust-lang/cargo/pull/8725)
675fb9fc
EH
475
476### Changed
477- `.crate` files uploaded to a registry are now built with reproducible
478 settings, so that the same `.crate` file created on different machines
479 should be identical.
480 [#8864](https://github.com/rust-lang/cargo/pull/8864)
5168b7e3
EH
481- Git dependencies that specify more than one of `branch`, `tag`, or `rev` are
482 now rejected.
483 [#8984](https://github.com/rust-lang/cargo/pull/8984)
484- The `rerun-if-changed` build script directive can now point to a directory,
485 in which case Cargo will check if any file in that directory changes.
486 [#8973](https://github.com/rust-lang/cargo/pull/8973)
5168b7e3
EH
487- If Cargo cannot determine the username or email address, `cargo new` will no
488 longer fail, and instead create an empty authors list.
489 [#8912](https://github.com/rust-lang/cargo/pull/8912)
5168b7e3
EH
490- The progress bar width has been reduced to provide more room to display the
491 crates currently being built.
492 [#8892](https://github.com/rust-lang/cargo/pull/8892)
493- `cargo new` will now support `includeIf` directives in `.gitconfig` to match
494 the correct directory when determining the username and email address.
495 [#8886](https://github.com/rust-lang/cargo/pull/8886)
675fb9fc
EH
496
497### Fixed
5168b7e3
EH
498- Fixed `cargo metadata` and `cargo tree` to only download packages for the
499 requested target.
500 [#8987](https://github.com/rust-lang/cargo/pull/8987)
501- Updated libgit2, which brings in many fixes, particularly fixing a zlib
502 error that occasionally appeared on 32-bit systems.
503 [#8998](https://github.com/rust-lang/cargo/pull/8998)
504- Fixed stack overflow with a circular dev-dependency that uses the `links`
505 field.
506 [#8969](https://github.com/rust-lang/cargo/pull/8969)
507- Fixed `cargo publish` failing on some filesystems, particularly 9p on WSL2.
508 [#8950](https://github.com/rust-lang/cargo/pull/8950)
675fb9fc
EH
509
510### Nightly only
511- Allow `resolver="1"` to specify the original feature resolution behavior.
512 [#8857](https://github.com/rust-lang/cargo/pull/8857)
513- Added `-Z extra-link-arg` which adds the `cargo:rustc-link-arg-bins`
514 and `cargo:rustc-link-arg` build script options.
515 [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#extra-link-arg)
516 [#8441](https://github.com/rust-lang/cargo/pull/8441)
5168b7e3
EH
517- Implemented external credential process support, and added `cargo logout`.
518 ([RFC 2730](https://github.com/rust-lang/rfcs/blob/master/text/2730-cargo-token-from-process.md))
519 ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process))
520 [#8934](https://github.com/rust-lang/cargo/pull/8934)
521- Fix panic with `-Zbuild-std` and no roots.
522 [#8942](https://github.com/rust-lang/cargo/pull/8942)
523- Set docs.rs as the default extern-map for crates.io
524 [#8877](https://github.com/rust-lang/cargo/pull/8877)
675fb9fc 525
06786a87 526## Cargo 1.49 (2020-12-31)
675fb9fc 527[75615f8e...rust-1.49.0](https://github.com/rust-lang/cargo/compare/75615f8e...rust-1.49.0)
06786a87
EH
528
529### Added
530- Added `homepage` and `documentation` fields to `cargo metadata`.
531 [#8744](https://github.com/rust-lang/cargo/pull/8744)
675fb9fc
EH
532- Added the `CARGO_PRIMARY_PACKAGE` environment variable which is set when
533 running `rustc` if the package is one of the "root" packages selected on the
534 command line.
535 [#8758](https://github.com/rust-lang/cargo/pull/8758)
536- Added support for Unix-style glob patterns for package and target selection
537 flags on the command-line (such as `-p 'serde*'` or `--test '*'`).
538 [#8752](https://github.com/rust-lang/cargo/pull/8752)
06786a87
EH
539
540### Changed
541- Computed LTO flags are now included in the filename metadata hash so that
542 changes in LTO settings will independently cache build artifacts instead of
543 overwriting previous ones. This prevents rebuilds in some situations such as
544 switching between `cargo build` and `cargo test` in some circumstances.
545 [#8755](https://github.com/rust-lang/cargo/pull/8755)
675fb9fc
EH
546- `cargo tree` now displays `(proc-macro)` next to proc-macro packages.
547 [#8765](https://github.com/rust-lang/cargo/pull/8765)
548- Added a warning that the allowed characters for a feature name have been
549 restricted to letters, digits, `_`, `-`, and `+` to accommodate future
550 syntax changes. This is still a superset of the allowed syntax on crates.io,
551 which requires ASCII. This is intended to be changed to an error in the
552 future.
553 [#8814](https://github.com/rust-lang/cargo/pull/8814)
554- `-p` without a value will now print a list of workspace package names.
555 [#8808](https://github.com/rust-lang/cargo/pull/8808)
d78b873a
EH
556- Add period to allowed feature name characters.
557 [#8932](https://github.com/rust-lang/cargo/pull/8932)
558 [#8943](https://github.com/rust-lang/cargo/pull/8943)
06786a87
EH
559
560### Fixed
561- Fixed building a library with both "dylib" and "rlib" crate types with LTO enabled.
562 [#8754](https://github.com/rust-lang/cargo/pull/8754)
675fb9fc
EH
563- Fixed paths in Cargo's dep-info files.
564 [#8819](https://github.com/rust-lang/cargo/pull/8819)
565- Fixed inconsistent source IDs in `cargo metadata` for git dependencies that
566 explicitly specify `branch="master"`.
567 [#8824](https://github.com/rust-lang/cargo/pull/8824)
568- Fixed re-extracting dependencies which contained a `.cargo-ok` file.
569 [#8835](https://github.com/rust-lang/cargo/pull/8835)
06786a87
EH
570
571### Nightly only
675fb9fc
EH
572- Fixed a panic with `cargo doc -Zfeatures=itarget` in some situations.
573 [#8777](https://github.com/rust-lang/cargo/pull/8777)
574- New implementation for namespaced features, using the syntax `dep:serde`.
575 [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#namespaced-features)
576 [#8799](https://github.com/rust-lang/cargo/pull/8799)
577- Added support for "weak" dependency features, using the syntax
578 `dep_name?/feat_name`, which will enable a feature for a dependency without
579 also enabling the dependency.
580 [#8818](https://github.com/rust-lang/cargo/pull/8818)
581- Fixed the new feature resolver downloading extra dependencies that weren't
582 strictly necessary.
583 [#8823](https://github.com/rust-lang/cargo/pull/8823)
06786a87 584
f6096240 585## Cargo 1.48 (2020-11-19)
06786a87 586[51b66125...rust-1.48.0](https://github.com/rust-lang/cargo/compare/51b66125...rust-1.48.0)
f6096240
EH
587
588### Added
06786a87
EH
589- Added `term.progress` configuration option to control when and how the
590 progress bar is displayed.
591 [docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#termprogresswhen)
592 [#8165](https://github.com/rust-lang/cargo/pull/8165)
593- Added `--message-format plain` option to `cargo locate-project` to display
594 the project location without JSON to make it easier to use in a script.
595 [#8707](https://github.com/rust-lang/cargo/pull/8707)
596- Added `--workspace` option to `cargo locate-project` to display the path to
597 the workspace manifest.
598 [#8712](https://github.com/rust-lang/cargo/pull/8712)
599- A new contributor guide has been added for contributing to Cargo itself.
600 This is published at <https://rust-lang.github.io/cargo/contrib/>.
601 [#8715](https://github.com/rust-lang/cargo/pull/8715)
602- Zsh `--target` completion will now complete with the built-in rustc targets.
603 [#8740](https://github.com/rust-lang/cargo/pull/8740)
f6096240
EH
604
605### Changed
606
607### Fixed
06786a87
EH
608- Fixed `cargo new` creating a fossil repository to properly ignore the `target` directory.
609 [#8671](https://github.com/rust-lang/cargo/pull/8671)
610- Don't show warnings about the workspace in the current directory when using `cargo install`
611 of a remote package.
612 [#8681](https://github.com/rust-lang/cargo/pull/8681)
613- Automatically reinitialize the index when an "Object not found" error is
614 encountered in the git repository.
615 [#8735](https://github.com/rust-lang/cargo/pull/8735)
675fb9fc
EH
616- Updated libgit2, which brings in several fixes for git repository handling.
617 [#8778](https://github.com/rust-lang/cargo/pull/8778)
618 [#8780](https://github.com/rust-lang/cargo/pull/8780)
f6096240
EH
619
620### Nightly only
06786a87
EH
621- Fixed `cargo install` so that it will ignore the `[unstable]` table in local config files.
622 [#8656](https://github.com/rust-lang/cargo/pull/8656)
623- Fixed nondeterministic behavior of the new feature resolver.
624 [#8701](https://github.com/rust-lang/cargo/pull/8701)
625- Fixed running `cargo test` on a proc-macro with the new feature resolver
626 under a specific combination of circumstances.
627 [#8742](https://github.com/rust-lang/cargo/pull/8742)
f6096240 628
3b661a90 629## Cargo 1.47 (2020-10-08)
f6096240 630[4f74d9b2...rust-1.47.0](https://github.com/rust-lang/cargo/compare/4f74d9b2...rust-1.47.0)
3b661a90
EH
631
632### Added
f6096240
EH
633- `cargo doc` will now include the package's version in the left sidebar.
634 [#8509](https://github.com/rust-lang/cargo/pull/8509)
635- Added the `test` field to `cargo metadata` targets.
636 [#8478](https://github.com/rust-lang/cargo/pull/8478)
637- Cargo's man pages are now displayed via the `cargo help` command (such as
638 `cargo help build`).
639 [#8456](https://github.com/rust-lang/cargo/pull/8456)
640 [#8577](https://github.com/rust-lang/cargo/pull/8577)
641- Added new documentation chapters on [how dependency resolution
642 works](https://doc.rust-lang.org/nightly/cargo/reference/resolver.html) and
643 [SemVer
644 compatibility](https://doc.rust-lang.org/nightly/cargo/reference/semver.html),
645 along with suggestions on how to version your project and work with
646 dependencies.
647 [#8609](https://github.com/rust-lang/cargo/pull/8609)
3b661a90
EH
648
649### Changed
650- The comments added to `.gitignore` when it is modified have been tweaked to
651 add some spacing.
652 [#8476](https://github.com/rust-lang/cargo/pull/8476)
653- `cargo metadata` output should now be sorted to be deterministic.
654 [#8489](https://github.com/rust-lang/cargo/pull/8489)
655- By default, build scripts and proc-macros are now built with `opt-level=0`
656 and the default codegen units, even in release mode.
657 [#8500](https://github.com/rust-lang/cargo/pull/8500)
f6096240
EH
658- `workspace.default-members` is now filtered by `workspace.exclude`.
659 [#8485](https://github.com/rust-lang/cargo/pull/8485)
660- `workspace.members` globs now ignore non-directory paths.
661 [#8511](https://github.com/rust-lang/cargo/pull/8511)
662- git zlib errors now trigger a retry.
663 [#8520](https://github.com/rust-lang/cargo/pull/8520)
664- "http" class git errors now trigger a retry.
665 [#8553](https://github.com/rust-lang/cargo/pull/8553)
666- git dependencies now override the `core.autocrlf` git configuration value to
667 ensure they behave consistently across platforms, particularly when
668 vendoring git dependencies on Windows.
669 [#8523](https://github.com/rust-lang/cargo/pull/8523)
670- If `Cargo.lock` needs to be updated, then it will be automatically
671 transitioned to the new V2 format. This format removes the `[metadata]`
672 table, and should be easier to merge changes in source control systems. This
673 format was introduced in 1.38, and made the default for new projects in
674 1.41.
675 [#8554](https://github.com/rust-lang/cargo/pull/8554)
676- Added preparation for support of git repositories with a non-"master"
677 default branch. Actual support will arrive in a future version. This
678 introduces some warnings:
679 - Warn if a git dependency does not specify a branch, and the default branch
680 on the repository is not "master". In the future, Cargo will fetch the
681 default branch. In this scenario, the branch should be explicitly
682 specified.
683 - Warn if a workspace has multiple dependencies to the same git repository,
684 one without a `branch` and one with `branch="master"`. Dependencies should
685 all use one form or the other.
686 [#8522](https://github.com/rust-lang/cargo/pull/8522)
687- Warnings are now issued if a `required-features` entry lists a feature that
688 does not exist.
689 [#7950](https://github.com/rust-lang/cargo/pull/7950)
690- Built-in aliases are now included in `cargo --list`.
691 [#8542](https://github.com/rust-lang/cargo/pull/8542)
692- `cargo install` with a specific version that has been yanked will now
693 display an error message that it has been yanked, instead of "could not
694 find".
695 [#8565](https://github.com/rust-lang/cargo/pull/8565)
696- `cargo publish` with a package that has the `publish` field set to a single
697 registry, and no `--registry` flag has been given, will now publish to that
698 registry instead of generating an error.
699 [#8571](https://github.com/rust-lang/cargo/pull/8571)
3b661a90
EH
700
701### Fixed
702- Fixed issue where if a project directory was moved, and one of the
703 build scripts did not use the `rerun-if-changed` directive, then that
704 build script was being rebuilt when it shouldn't.
705 [#8497](https://github.com/rust-lang/cargo/pull/8497)
f6096240
EH
706- Console colors should now work on Windows 7 and 8.
707 [#8540](https://github.com/rust-lang/cargo/pull/8540)
708- The `CARGO_TARGET_{triplet}_RUNNER` environment variable will now correctly
709 override the config file instead of trying to merge the commands.
710 [#8629](https://github.com/rust-lang/cargo/pull/8629)
06786a87
EH
711- Fixed LTO with doctests.
712 [#8657](https://github.com/rust-lang/cargo/pull/8657)
713 [#8658](https://github.com/rust-lang/cargo/pull/8658)
3b661a90
EH
714
715### Nightly only
716- Added support for `-Z terminal-width` which tells `rustc` the width of the
717 terminal so that it can format diagnostics better.
718 [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#terminal-width)
719 [#8427](https://github.com/rust-lang/cargo/pull/8427)
720- Added ability to configure `-Z` unstable flags in config files via the
721 `[unstable]` table.
722 [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html)
723 [#8393](https://github.com/rust-lang/cargo/pull/8393)
f6096240
EH
724- Added `-Z build-std-features` flag to set features for the standard library.
725 [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std-features)
3b661a90
EH
726 [#8490](https://github.com/rust-lang/cargo/pull/8490)
727
2011649f 728## Cargo 1.46 (2020-08-27)
3b661a90 729[9fcb8c1d...rust-1.46.0](https://github.com/rust-lang/cargo/compare/9fcb8c1d...rust-1.46.0)
2011649f
EH
730
731### Added
3b661a90
EH
732- The `dl` key in `config.json` of a registry index now supports the
733 replacement markers `{prefix}` and `{lowerprefix}` to allow spreading crates
734 across directories similar to how the index itself is structured.
735 [docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format)
736 [#8267](https://github.com/rust-lang/cargo/pull/8267)
737- Added new environment variables that are set during compilation:
738 - `CARGO_CRATE_NAME`: The name of the crate being built.
739 - `CARGO_BIN_NAME`: The name of the executable binary (if this is a binary crate).
740 - `CARGO_PKG_LICENSE`: The `license` field from the manifest.
741 - `CARGO_PKG_LICENSE_FILE`: The `license-file` field from the manifest.
742 [#8270](https://github.com/rust-lang/cargo/pull/8270)
743 [#8325](https://github.com/rust-lang/cargo/pull/8325)
744 [#8387](https://github.com/rust-lang/cargo/pull/8387)
745- If the value for `readme` is not specified in `Cargo.toml`, it is now
746 automatically inferred from the existence of a file named `README`,
747 `README.md`, or `README.txt`. This can be suppressed by setting
748 `readme = false`.
749 [#8277](https://github.com/rust-lang/cargo/pull/8277)
750- `cargo install` now supports the `--index` flag to install directly from an index.
751 [#8344](https://github.com/rust-lang/cargo/pull/8344)
752- Added the `metadata` table to the `workspace` definition in `Cargo.toml`.
753 This can be used for arbitrary data similar to the `package.metadata` table.
754 [#8323](https://github.com/rust-lang/cargo/pull/8323)
755- Added the `--target-dir` flag to `cargo install` to set the target directory.
756 [#8391](https://github.com/rust-lang/cargo/pull/8391)
757- Changes to environment variables used by the
758 [`env!`](https://doc.rust-lang.org/std/macro.env.html) or
759 [`option_env!`](https://doc.rust-lang.org/std/macro.option_env.html) macros
760 are now automatically detected to trigger a rebuild.
761 [#8421](https://github.com/rust-lang/cargo/pull/8421)
762- The `target` directory now includes the `CACHEDIR.TAG` file which is used by
763 some tools to exclude the directory from backups.
764 [#8378](https://github.com/rust-lang/cargo/pull/8378)
765- Added docs about rustup's `+toolchain` syntax.
766 [#8455](https://github.com/rust-lang/cargo/pull/8455)
2011649f
EH
767
768### Changed
769- A warning is now displayed if a git dependency includes a `#` fragment in
770 the URL. This was potentially confusing because Cargo itself displays git
771 URLs with this syntax, but it does not have any meaning outside of the
772 `Cargo.lock` file, and would not work properly.
773 [#8297](https://github.com/rust-lang/cargo/pull/8297)
3b661a90
EH
774- Various optimizations and fixes for bitcode embedding and LTO.
775 [#8349](https://github.com/rust-lang/cargo/pull/8349)
776- Reduced the amount of data fetched for git dependencies. If Cargo knows the
777 branch or tag to fetch, it will now only fetch that branch or tag instead of
778 all branches and tags.
779 [#8363](https://github.com/rust-lang/cargo/pull/8363)
780- Enhanced git fetch error messages.
781 [#8409](https://github.com/rust-lang/cargo/pull/8409)
782- `.crate` files are now generated with GNU tar format instead of UStar, which
783 supports longer file names.
784 [#8453](https://github.com/rust-lang/cargo/pull/8453)
2011649f
EH
785
786### Fixed
787- Fixed a rare situation where an update to `Cargo.lock` failed once, but then
788 subsequent runs allowed it proceed.
789 [#8274](https://github.com/rust-lang/cargo/pull/8274)
790- Removed assertion that Windows dylibs must have a `.dll` extension. Some
791 custom JSON spec targets may change the extension.
792 [#8310](https://github.com/rust-lang/cargo/pull/8310)
793- Updated libgit2, which brings in a fix for zlib errors for some remote
794 git servers like googlesource.com.
795 [#8320](https://github.com/rust-lang/cargo/pull/8320)
3b661a90
EH
796- Fixed the GitHub fast-path check for up-to-date git dependencies on
797 non-master branches.
798 [#8363](https://github.com/rust-lang/cargo/pull/8363)
799- Fixed issue when enabling a feature with `pkg/feature` syntax, and `pkg` is
800 an optional dependency, but also a dev-dependency, and the dev-dependency
801 appears before the optional normal dependency in the registry summary, then
802 the optional dependency would not get activated.
803 [#8395](https://github.com/rust-lang/cargo/pull/8395)
804- Fixed `clean -p` deleting the build directory if there is a test named
805 `build`.
806 [#8398](https://github.com/rust-lang/cargo/pull/8398)
807- Fixed indentation of multi-line Cargo error messages.
808 [#8409](https://github.com/rust-lang/cargo/pull/8409)
809- Fixed issue where the automatic inclusion of the `--document-private-items`
810 flag for rustdoc would override any flags passed to the `cargo rustdoc`
811 command.
812 [#8449](https://github.com/rust-lang/cargo/pull/8449)
813- Cargo will now include a version in the hash of the fingerprint directories
814 to support backwards-incompatible changes to the fingerprint structure.
815 [#8473](https://github.com/rust-lang/cargo/pull/8473)
816 [#8488](https://github.com/rust-lang/cargo/pull/8488)
2011649f
EH
817
818### Nightly only
819- Added `-Zrustdoc-map` feature which provides external mappings for rustdoc
820 (such as https://docs.rs/ links).
821 [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#rustdoc-map)
822 [#8287](https://github.com/rust-lang/cargo/pull/8287)
823- Fixed feature calculation when a proc-macro is declared in `Cargo.toml` with
824 an underscore (like `proc_macro = true`).
825 [#8319](https://github.com/rust-lang/cargo/pull/8319)
3b661a90
EH
826- Added support for setting `-Clinker` with `-Zdoctest-xcompile`.
827 [#8359](https://github.com/rust-lang/cargo/pull/8359)
828- Fixed setting the `strip` profile field in config files.
829 [#8454](https://github.com/rust-lang/cargo/pull/8454)
2011649f 830
1bea5f60 831## Cargo 1.45 (2020-07-16)
2011649f 832[ebda5065e...rust-1.45.0](https://github.com/rust-lang/cargo/compare/ebda5065...rust-1.45.0)
1bea5f60
EH
833
834### Added
835
836### Changed
837- Changed official documentation to recommend `.cargo/config.toml` filenames
838 (with the `.toml` extension). `.toml` extension support was added in 1.39.
839 [#8121](https://github.com/rust-lang/cargo/pull/8121)
840- The `registry.index` config value is no longer allowed (it has been
841 deprecated for 4 years).
842 [#7973](https://github.com/rust-lang/cargo/pull/7973)
843- An error is generated if both `--index` and `--registry` are passed
844 (previously `--index` was silently ignored).
845 [#7973](https://github.com/rust-lang/cargo/pull/7973)
846- The `registry.token` config value is no longer used with the `--index` flag.
847 This is intended to avoid potentially leaking the crates.io token to another
848 registry.
849 [#7973](https://github.com/rust-lang/cargo/pull/7973)
850- Added a warning if `registry.token` is used with source replacement. It is
851 intended this will be an error in future versions.
852 [#7973](https://github.com/rust-lang/cargo/pull/7973)
853- Windows GNU targets now copy `.dll.a` import library files for DLL crate
854 types to the output directory.
855 [#8141](https://github.com/rust-lang/cargo/pull/8141)
3b3ca095
EH
856- Dylibs for all dependencies are now unconditionally copied to the output
857 directory. Some obscure scenarios can cause an old dylib to be referenced
858 between builds, and this ensures that all the latest copies are used.
859 [#8139](https://github.com/rust-lang/cargo/pull/8139)
2011649f
EH
860- `package.exclude` can now match directory names. If a directory is
861 specified, the entire directory will be excluded, and Cargo will not attempt
862 to inspect it further. Previously Cargo would try to check every file in the
863 directory which could cause problems if the directory contained unreadable
864 files.
865 [#8095](https://github.com/rust-lang/cargo/pull/8095)
866- When packaging with `cargo publish` or `cargo package`, Cargo can use git to
867 guide its decision on which files to include. Previously this git-based
868 logic required a `Cargo.toml` file to exist at the root of the repository.
869 This is no longer required, so Cargo will now use git-based guidance even if
870 there is not a `Cargo.toml` in the root of the repository.
871 [#8095](https://github.com/rust-lang/cargo/pull/8095)
872- While unpacking a crate on Windows, if it fails to write a file because the
873 file is a reserved Windows filename (like "aux.rs"), Cargo will display an
874 extra message to explain why it failed.
875 [#8136](https://github.com/rust-lang/cargo/pull/8136)
876- Failures to set mtime on files are now ignored. Some filesystems did not
877 support this.
878 [#8185](https://github.com/rust-lang/cargo/pull/8185)
879- Certain classes of git errors will now recommend enabling
880 `net.git-fetch-with-cli`.
881 [#8166](https://github.com/rust-lang/cargo/pull/8166)
882- When doing an LTO build, Cargo will now instruct rustc not to perform
883 codegen when possible. This may result in a faster build and use less disk
884 space. Additionally, for non-LTO builds, Cargo will instruct rustc to not
885 embed LLVM bitcode in libraries, which should decrease their size.
886 [#8192](https://github.com/rust-lang/cargo/pull/8192)
887 [#8226](https://github.com/rust-lang/cargo/pull/8226)
888 [#8254](https://github.com/rust-lang/cargo/pull/8254)
889- The implementation for `cargo clean -p` has been rewritten so that it can
890 more accurately remove the files for a specific package.
891 [#8210](https://github.com/rust-lang/cargo/pull/8210)
892- The way Cargo computes the outputs from a build has been rewritten to be
893 more complete and accurate. Newly tracked files will be displayed in JSON
894 messages, and may be uplifted to the output directory in some cases. Some of
895 the changes from this are:
896
897 - `.exp` export files on Windows MSVC dynamic libraries are now tracked.
898 - Proc-macros on Windows track import/export files.
899 - All targets (like tests, etc.) that generate separate debug files
900 (pdb/dSYM) are tracked.
901 - Added .map files for wasm32-unknown-emscripten.
902 - macOS dSYM directories are tracked for all dynamic libraries
903 (dylib/cdylib/proc-macro) and for build scripts.
904
905 There are a variety of other changes as a consequence of this:
906
907 - Binary examples on Windows MSVC with a hyphen will now show up twice in
908 the examples directory (`foo_bar.exe` and `foo-bar.exe`). Previously Cargo
909 just renamed the file instead of hard-linking it.
910 - Example libraries now follow the same rules for hyphen/underscore
911 translation as normal libs (they will now use underscores).
912
913 [#8210](https://github.com/rust-lang/cargo/pull/8210)
914- Cargo attempts to scrub any secrets from the debug log for HTTP debugging.
915 [#8222](https://github.com/rust-lang/cargo/pull/8222)
916- Context has been added to many of Cargo's filesystem operations, so that
917 error messages now provide more information, such as the path that caused
918 the problem.
919 [#8232](https://github.com/rust-lang/cargo/pull/8232)
920- Several commands now ignore the error if stdout or stderr is closed while it
921 is running. For example `cargo install --list | grep -q cargo-fuzz` would
922 previously sometimes panic because `grep -q` may close stdout before the
923 command finishes. Regular builds continue to fail if stdout or stderr is
924 closed, matching the behavior of many other build systems.
925 [#8236](https://github.com/rust-lang/cargo/pull/8236)
926- If `cargo install` is given an exact version, like `--version=1.2.3`, it
927 will now avoid updating the index if that version is already installed, and
928 exit quickly indicating it is already installed.
929 [#8022](https://github.com/rust-lang/cargo/pull/8022)
930- Changes to the `[patch]` section will now attempt to automatically update
931 `Cargo.lock` to the new version. It should now also provide better error
932 messages for the rare cases where it is unable to automatically update.
933 [#8248](https://github.com/rust-lang/cargo/pull/8248)
1bea5f60
EH
934
935### Fixed
936- Fixed copying Windows `.pdb` files to the output directory when the filename
937 contained dashes.
938 [#8123](https://github.com/rust-lang/cargo/pull/8123)
2011649f
EH
939- Fixed error where Cargo would fail when scanning if a package is inside a
940 git repository when any of its ancestor paths is a symlink.
941 [#8186](https://github.com/rust-lang/cargo/pull/8186)
942- Fixed `cargo update` with an unused `[patch]` so that it does not get
943 stuck and refuse to update.
944 [#8243](https://github.com/rust-lang/cargo/pull/8243)
945- Fixed a situation where Cargo would hang if stderr is closed, and the
946 compiler generated a large number of messages.
947 [#8247](https://github.com/rust-lang/cargo/pull/8247)
948- Fixed backtraces on macOS not showing filenames or line numbers. As a
949 consequence of this, binary executables on apple targets do not include a
950 hash in the filename in Cargo's cache. This means Cargo can only track one
951 copy, so if you switch features or rustc versions, Cargo will need to
952 rebuild the executable.
953 [#8329](https://github.com/rust-lang/cargo/pull/8329)
954 [#8335](https://github.com/rust-lang/cargo/pull/8335)
955- Fixed fingerprinting when using lld on Windows with a dylib. Cargo was
956 erroneously thinking the dylib was never fresh.
957 [#8290](https://github.com/rust-lang/cargo/pull/8290)
958 [#8335](https://github.com/rust-lang/cargo/pull/8335)
1bea5f60
EH
959
960### Nightly only
961- Fixed passing the full path for `--target` to `rustdoc` when using JSON spec
962 targets.
963 [#8094](https://github.com/rust-lang/cargo/pull/8094)
964- `-Cembed-bitcode=no` renamed to `-Cbitcode-in-rlib=no`
965 [#8134](https://github.com/rust-lang/cargo/pull/8134)
966- Added new `resolver` field to `Cargo.toml` to opt-in to the new feature
967 resolver.
968 [#8129](https://github.com/rust-lang/cargo/pull/8129)
2011649f
EH
969- `-Zbuild-std` no longer treats std dependencies as "local". This means that
970 it won't use incremental compilation for those dependencies, removes them
971 from dep-info files, and caps lints at "allow".
972 [#8177](https://github.com/rust-lang/cargo/pull/8177)
973- Added `-Zmultitarget` which allows multiple `--target` flags to build the
974 same thing for multiple targets at once.
975 [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#multitarget)
976 [#8167](https://github.com/rust-lang/cargo/pull/8167)
977- Added `strip` option to the profile to remove symbols and debug information.
978 [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-strip-option)
979 [#8246](https://github.com/rust-lang/cargo/pull/8246)
980- Fixed panic with `cargo tree --target=all -Zfeatures=all`.
981 [#8269](https://github.com/rust-lang/cargo/pull/8269)
1bea5f60 982
05fe44b2 983## Cargo 1.44 (2020-06-04)
2011649f 984[bda50510...rust-1.44.0](https://github.com/rust-lang/cargo/compare/bda50510...rust-1.44.0)
05fe44b2
EH
985
986### Added
1bea5f60
EH
987- 🔥 Added the `cargo tree` command.
988 [docs](https://doc.rust-lang.org/nightly/cargo/commands/cargo-tree.html)
989 [#8062](https://github.com/rust-lang/cargo/pull/8062)
05fe44b2
EH
990- Added warnings if a package has Windows-restricted filenames (like `nul`,
991 `con`, `aux`, `prn`, etc.).
992 [#7959](https://github.com/rust-lang/cargo/pull/7959)
1bea5f60
EH
993- Added a `"build-finished"` JSON message when compilation is complete so that
994 tools can detect when they can stop listening for JSON messages with
995 commands like `cargo run` or `cargo test`.
996 [#8069](https://github.com/rust-lang/cargo/pull/8069)
05fe44b2
EH
997
998### Changed
999- Valid package names are now restricted to Unicode XID identifiers. This is
1000 mostly the same as before, except package names cannot start with a number
1001 or `-`.
1002 [#7959](https://github.com/rust-lang/cargo/pull/7959)
1003- `cargo new` and `init` will warn or reject additional package names
1004 (reserved Windows names, reserved Cargo directories, non-ASCII names,
1005 conflicting std names like `core`, etc.).
1006 [#7959](https://github.com/rust-lang/cargo/pull/7959)
1007- Tests are no longer hard-linked into the output directory (`target/debug/`).
1008 This ensures tools will have access to debug symbols and execute tests in
1bea5f60 1009 the same way as Cargo. Tools should use JSON messages to discover the path
05fe44b2
EH
1010 to the executable.
1011 [#7965](https://github.com/rust-lang/cargo/pull/7965)
1012- Updating git submodules now displays an "Updating" message for each
1013 submodule.
1014 [#7989](https://github.com/rust-lang/cargo/pull/7989)
1bea5f60
EH
1015- File modification times are now preserved when extracting a `.crate` file.
1016 This reverses the change made in 1.40 where the mtime was not preserved.
1017 [#7935](https://github.com/rust-lang/cargo/pull/7935)
1018- Build script warnings are now displayed separately when the build script
1019 fails.
1020 [#8017](https://github.com/rust-lang/cargo/pull/8017)
1021- Removed the `git-checkout` subcommand.
1022 [#8040](https://github.com/rust-lang/cargo/pull/8040)
1023- The progress bar is now enabled for all unix platforms. Previously it was
1024 only Linux, macOS, and FreeBSD.
1025 [#8054](https://github.com/rust-lang/cargo/pull/8054)
1026- Artifacts generated by pre-release versions of `rustc` now share the same
1027 filenames. This means that changing nightly versions will not leave stale
1028 files in the build directory.
1029 [#8073](https://github.com/rust-lang/cargo/pull/8073)
1030- Invalid package names are rejected when using renamed dependencies.
1031 [#8090](https://github.com/rust-lang/cargo/pull/8090)
1032- Added a certain class of HTTP2 errors as "spurious" that will get retried.
1033 [#8102](https://github.com/rust-lang/cargo/pull/8102)
2011649f
EH
1034- Allow `cargo package --list` to succeed, even if there are other validation
1035 errors (such as `Cargo.lock` generation problem, or missing dependencies).
1036 [#8175](https://github.com/rust-lang/cargo/pull/8175)
1037 [#8215](https://github.com/rust-lang/cargo/pull/8215)
05fe44b2
EH
1038
1039### Fixed
1040- Cargo no longer buffers excessive amounts of compiler output in memory.
1041 [#7838](https://github.com/rust-lang/cargo/pull/7838)
1042- Symbolic links in git repositories now work on Windows.
1043 [#7996](https://github.com/rust-lang/cargo/pull/7996)
1bea5f60
EH
1044- Fixed an issue where `profile.dev` was not loaded from a config file with
1045 `cargo test` when the `dev` profile was not defined in `Cargo.toml`.
1046 [#8012](https://github.com/rust-lang/cargo/pull/8012)
1047- When a binary is built as an implicit dependency of an integration test,
1048 it now checks `dep_name/feature_name` syntax in `required-features` correctly.
1049 [#8020](https://github.com/rust-lang/cargo/pull/8020)
1050- Fixed an issue where Cargo would not detect that an executable (such as an
1051 integration test) needs to be rebuilt when the previous build was
1052 interrupted with Ctrl-C.
1053 [#8087](https://github.com/rust-lang/cargo/pull/8087)
1054- Protect against some (unknown) situations where Cargo could panic when the
1055 system monotonic clock doesn't appear to be monotonic.
1056 [#8114](https://github.com/rust-lang/cargo/pull/8114)
2011649f
EH
1057- Fixed panic with `cargo clean -p` if the package has a build script.
1058 [#8216](https://github.com/rust-lang/cargo/pull/8216)
05fe44b2
EH
1059
1060### Nightly only
1061- Fixed panic with new feature resolver and required-features.
1062 [#7962](https://github.com/rust-lang/cargo/pull/7962)
1bea5f60
EH
1063- Added `RUSTC_WORKSPACE_WRAPPER` environment variable, which provides a way
1064 to wrap `rustc` for workspace members only, and affects the filename hash so
1065 that artifacts produced by the wrapper are cached separately. This usage can
1066 be seen on nightly clippy with `cargo clippy -Zunstable-options`.
1067 [#7533](https://github.com/rust-lang/cargo/pull/7533)
1068- Added `--unit-graph` CLI option to display Cargo's internal dependency graph
1069 as JSON.
1070 [#7977](https://github.com/rust-lang/cargo/pull/7977)
1071- Changed `-Zbuild_dep` to `-Zhost_dep`, and added proc-macros to the feature
1072 decoupling logic.
1073 [#8003](https://github.com/rust-lang/cargo/pull/8003)
1074 [#8028](https://github.com/rust-lang/cargo/pull/8028)
1075- Fixed so that `--crate-version` is not automatically passed when the flag
1076 is found in `RUSTDOCFLAGS`.
1077 [#8014](https://github.com/rust-lang/cargo/pull/8014)
1078- Fixed panic with `-Zfeatures=dev_dep` and `check --profile=test`.
1079 [#8027](https://github.com/rust-lang/cargo/pull/8027)
1080- Fixed panic with `-Zfeatures=itarget` with certain host dependencies.
1081 [#8048](https://github.com/rust-lang/cargo/pull/8048)
1082- Added support for `-Cembed-bitcode=no`, which provides a performance boost
1083 and disk-space usage reduction for non-LTO builds.
1084 [#8066](https://github.com/rust-lang/cargo/pull/8066)
1085- `-Zpackage-features` has been extended with several changes intended to make
1086 it easier to select features on the command-line in a workspace.
1087 [#8074](https://github.com/rust-lang/cargo/pull/8074)
05fe44b2 1088
6efd25ca 1089## Cargo 1.43 (2020-04-23)
05fe44b2 1090[9d32b7b0...rust-1.43.0](https://github.com/rust-lang/cargo/compare/9d32b7b0...rust-1.43.0)
6efd25ca
EH
1091
1092### Added
1093- 🔥 Profiles may now be specified in config files (and environment variables).
05fe44b2 1094 [docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#profile)
6efd25ca 1095 [#7823](https://github.com/rust-lang/cargo/pull/7823)
05fe44b2
EH
1096- ❗ Added `CARGO_BIN_EXE_<name>` environment variable when building
1097 integration tests. This variable contains the path to any `[[bin]]` targets
1098 in the package. Integration tests should use the `env!` macro to determine
1099 the path to a binary to execute.
1100 [docs](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates)
1101 [#7697](https://github.com/rust-lang/cargo/pull/7697)
6efd25ca
EH
1102
1103### Changed
1104- `cargo install --git` now honors workspaces in a git repository. This allows
1105 workspace settings, like `[patch]`, `[replace]`, or `[profile]` to be used.
1106 [#7768](https://github.com/rust-lang/cargo/pull/7768)
05fe44b2
EH
1107- `cargo new` will now run `rustfmt` on the new files to pick up rustfmt
1108 settings like `tab_spaces` so that the new file matches the user's preferred
1109 indentation settings.
1110 [#7827](https://github.com/rust-lang/cargo/pull/7827)
1111- Environment variables printed with "very verbose" output (`-vv`) are now
1112 consistently sorted.
1113 [#7877](https://github.com/rust-lang/cargo/pull/7877)
1114- Debug logging for fingerprint rebuild-detection now includes more information.
1115 [#7888](https://github.com/rust-lang/cargo/pull/7888)
1116 [#7890](https://github.com/rust-lang/cargo/pull/7890)
1117 [#7952](https://github.com/rust-lang/cargo/pull/7952)
1118- Added warning during publish if the license-file doesn't exist.
1119 [#7905](https://github.com/rust-lang/cargo/pull/7905)
1120- The `license-file` file is automatically included during publish, even if it
1121 is not explicitly listed in the `include` list or is in a location outside
1122 of the root of the package.
1123 [#7905](https://github.com/rust-lang/cargo/pull/7905)
1124- `CARGO_CFG_DEBUG_ASSERTIONS` and `CARGO_CFG_PROC_MACRO` are no longer set
1125 when running a build script. These were inadvertently set in the past, but
1126 had no meaning as they were always true. Additionally, `cfg(proc-macro)`
1127 is no longer supported in a `target` expression.
1128 [#7943](https://github.com/rust-lang/cargo/pull/7943)
1129 [#7970](https://github.com/rust-lang/cargo/pull/7970)
6efd25ca
EH
1130
1131### Fixed
05fe44b2
EH
1132- Global command-line flags now work with aliases (like `cargo -v b`).
1133 [#7837](https://github.com/rust-lang/cargo/pull/7837)
1134- Required-features using dependency syntax (like `renamed_dep/feat_name`) now
1135 handle renamed dependencies correctly.
1136 [#7855](https://github.com/rust-lang/cargo/pull/7855)
1137- Fixed a rare situation where if a build script is run multiple times during
1138 the same build, Cargo will now keep the results separate instead of losing
1139 the output of the first execution.
1140 [#7857](https://github.com/rust-lang/cargo/pull/7857)
1141- Fixed incorrect interpretation of environment variable
1142 `CARGO_TARGET_*_RUNNER=true` as a boolean. Also improved related env var
1143 error messages.
1144 [#7891](https://github.com/rust-lang/cargo/pull/7891)
1145- Updated internal libgit2 library, bringing various fixes to git support.
1146 [#7939](https://github.com/rust-lang/cargo/pull/7939)
1147- `cargo package` / `cargo publish` should no longer buffer the entire
1148 contents of each file in memory.
1149 [#7946](https://github.com/rust-lang/cargo/pull/7946)
1150- Ignore more invalid `Cargo.toml` files in a git dependency. Cargo currently
1151 walks the entire repo to find the requested package. Certain invalid
1152 manifests were already skipped, and now it should skip all of them.
1153 [#7947](https://github.com/rust-lang/cargo/pull/7947)
6efd25ca
EH
1154
1155### Nightly only
1156- Added `build.out-dir` config variable to set the output directory.
1157 [#7810](https://github.com/rust-lang/cargo/pull/7810)
1158- Added `-Zjobserver-per-rustc` feature to support improved performance for
1159 parallel rustc.
1160 [#7731](https://github.com/rust-lang/cargo/pull/7731)
05fe44b2
EH
1161- Fixed filename collision with `build-std` and crates like `cc`.
1162 [#7860](https://github.com/rust-lang/cargo/pull/7860)
1163- `-Ztimings` will now save its report even if there is an error.
1164 [#7872](https://github.com/rust-lang/cargo/pull/7872)
1165- Updated `--config` command-line flag to support taking a path to a config
1166 file to load.
1167 [#7901](https://github.com/rust-lang/cargo/pull/7901)
1168- Added new feature resolver.
1169 [#7820](https://github.com/rust-lang/cargo/pull/7820)
1170- Rustdoc docs now automatically include the version of the package in the
b3a1aa9c 1171 side bar (requires `-Z crate-versions` flag).
05fe44b2 1172 [#7903](https://github.com/rust-lang/cargo/pull/7903)
6efd25ca 1173
57020a5d 1174## Cargo 1.42 (2020-03-12)
6efd25ca 1175[0bf7aafe...rust-1.42.0](https://github.com/rust-lang/cargo/compare/0bf7aafe...rust-1.42.0)
1df81ee0
EH
1176
1177### Added
57020a5d
EH
1178- Added documentation on git authentication.
1179 [#7658](https://github.com/rust-lang/cargo/pull/7658)
1180- Bitbucket Pipeline badges are now supported on crates.io.
1181 [#7663](https://github.com/rust-lang/cargo/pull/7663)
6efd25ca
EH
1182- `cargo vendor` now accepts the `--versioned-dirs` option to force it to
1183 always include the version number in each package's directory name.
1184 [#7631](https://github.com/rust-lang/cargo/pull/7631)
1185- The `proc_macro` crate is now automatically added to the extern prelude for
1186 proc-macro packages. This means that `extern crate proc_macro;` is no longer
1187 necessary for proc-macros.
1188 [#7700](https://github.com/rust-lang/cargo/pull/7700)
57020a5d 1189
1df81ee0 1190### Changed
57020a5d
EH
1191- Emit a warning if `debug_assertions`, `test`, `proc_macro`, or `feature=` is
1192 used in a `cfg()` expression.
1193 [#7660](https://github.com/rust-lang/cargo/pull/7660)
6efd25ca
EH
1194- Large update to the Cargo documentation, adding new chapters on Cargo
1195 targets, workspaces, and features.
1196 [#7733](https://github.com/rust-lang/cargo/pull/7733)
1197- Windows: `.lib` DLL import libraries are now copied next to the dll for all
1198 Windows MSVC targets. Previously it was only supported for
1199 `pc-windows-msvc`. This adds DLL support for `uwp-windows-msvc` targets.
1200 [#7758](https://github.com/rust-lang/cargo/pull/7758)
1201- The `ar` field in the `[target]` configuration is no longer read. It has
1202 been ignored for over 4 years.
1203 [#7763](https://github.com/rust-lang/cargo/pull/7763)
1204- Bash completion file simplified and updated for latest changes.
1205 [#7789](https://github.com/rust-lang/cargo/pull/7789)
1206- Credentials are only loaded when needed, instead of every Cargo command.
1207 [#7774](https://github.com/rust-lang/cargo/pull/7774)
57020a5d 1208
1df81ee0 1209### Fixed
6efd25ca
EH
1210- Removed `--offline` empty index check, which was a false positive in some
1211 cases.
57020a5d 1212 [#7655](https://github.com/rust-lang/cargo/pull/7655)
6efd25ca
EH
1213- Files and directories starting with a `.` can now be included in a package
1214 by adding it to the `include` list.
1215 [#7680](https://github.com/rust-lang/cargo/pull/7680)
1216- Fixed `cargo login` removing alternative registry tokens when previous
1217 entries existed in the credentials file.
1218 [#7708](https://github.com/rust-lang/cargo/pull/7708)
1219- Fixed `cargo vendor` from panicking when used with alternative registries.
1220 [#7718](https://github.com/rust-lang/cargo/pull/7718)
1221- Fixed incorrect explanation in the fingerprint debug log message.
1222 [#7749](https://github.com/rust-lang/cargo/pull/7749)
1223- A `[source]` that is defined multiple times will now result in an error.
1224 Previously it was randomly picking a source, which could cause
1225 non-deterministic behavior.
1226 [#7751](https://github.com/rust-lang/cargo/pull/7751)
1227- `dep_kinds` in `cargo metadata` are now de-duplicated.
1228 [#7756](https://github.com/rust-lang/cargo/pull/7756)
1229- Fixed packaging where `Cargo.lock` was listed in `.gitignore` in a
1230 subdirectory inside a git repository. Previously it was assuming
1231 `Cargo.lock` was at the root of the repo.
1232 [#7779](https://github.com/rust-lang/cargo/pull/7779)
1233- Partial file transfer errors will now cause an automatic retry.
1234 [#7788](https://github.com/rust-lang/cargo/pull/7788)
1235- Linux: Fixed panic if CPU iowait stat decreases.
1236 [#7803](https://github.com/rust-lang/cargo/pull/7803)
1237- Fixed using the wrong sysroot for detecting host compiler settings when
1238 `--sysroot` is passed in via `RUSTFLAGS`.
1239 [#7798](https://github.com/rust-lang/cargo/pull/7798)
57020a5d
EH
1240
1241### Nightly only
6efd25ca 1242- `build-std` now uses `--extern` instead of `--sysroot` to find sysroot
9c892e6c 1243 packages.
6efd25ca
EH
1244 [#7699](https://github.com/rust-lang/cargo/pull/7699)
1245- Added `--config` command-line option to set config settings.
1246 [#7649](https://github.com/rust-lang/cargo/pull/7649)
1247- Added `include` config setting which allows including another config file.
1248 [#7649](https://github.com/rust-lang/cargo/pull/7649)
1249- Profiles in config files now support any named profile. Previously it was
1250 limited to dev/release.
1251 [#7750](https://github.com/rust-lang/cargo/pull/7750)
57020a5d
EH
1252
1253## Cargo 1.41 (2020-01-30)
1254[5da4b4d4...rust-1.41.0](https://github.com/rust-lang/cargo/compare/5da4b4d4...rust-1.41.0)
1255
1256### Added
1257- 🔥 Cargo now uses a new `Cargo.lock` file format. This new format should
1258 support easier merges in source control systems. Projects using the old
1259 format will continue to use the old format, only new `Cargo.lock` files will
1260 use the new format.
1261 [#7579](https://github.com/rust-lang/cargo/pull/7579)
1262- 🔥 `cargo install` will now upgrade already installed packages instead of
1263 failing.
1264 [#7560](https://github.com/rust-lang/cargo/pull/7560)
1265- 🔥 Profile overrides have been added. This allows overriding profiles for
1266 individual dependencies or build scripts. See [the
1267 documentation](https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#overrides)
1268 for more.
1269 [#7591](https://github.com/rust-lang/cargo/pull/7591)
1270- Added new documentation for build scripts.
1271 [#7565](https://github.com/rust-lang/cargo/pull/7565)
1272- Added documentation for Cargo's JSON output.
1273 [#7595](https://github.com/rust-lang/cargo/pull/7595)
1274- Significant expansion of config and environment variable documentation.
1275 [#7650](https://github.com/rust-lang/cargo/pull/7650)
1276- Add back support for `BROWSER` environment variable for `cargo doc --open`.
1277 [#7576](https://github.com/rust-lang/cargo/pull/7576)
1278- Added `kind` and `platform` for dependencies in `cargo metadata`.
1279 [#7132](https://github.com/rust-lang/cargo/pull/7132)
1280- The `OUT_DIR` value is now included in the `build-script-executed` JSON message.
1281 [#7622](https://github.com/rust-lang/cargo/pull/7622)
1282
1283### Changed
1284- `cargo doc` will now document private items in binaries by default.
1285 [#7593](https://github.com/rust-lang/cargo/pull/7593)
1286- Subcommand typo suggestions now include aliases.
1287 [#7486](https://github.com/rust-lang/cargo/pull/7486)
1288- Tweak how the "already existing..." comment is added to `.gitignore`.
1289 [#7570](https://github.com/rust-lang/cargo/pull/7570)
1290- Ignore `cargo login` text from copy/paste in token.
1291 [#7588](https://github.com/rust-lang/cargo/pull/7588)
1292- Windows: Ignore errors for locking files when not supported by the filesystem.
1293 [#7602](https://github.com/rust-lang/cargo/pull/7602)
1294- Remove `**/*.rs.bk` from `.gitignore`.
1295 [#7647](https://github.com/rust-lang/cargo/pull/7647)
1296
1297### Fixed
1298- Fix unused warnings for some keys in the `build` config section.
1299 [#7575](https://github.com/rust-lang/cargo/pull/7575)
1300- Linux: Don't panic when parsing `/proc/stat`.
1301 [#7580](https://github.com/rust-lang/cargo/pull/7580)
1302- Don't show canonical path in `cargo vendor`.
1303 [#7629](https://github.com/rust-lang/cargo/pull/7629)
1304
1305### Nightly only
1306
1df81ee0 1307
8ad031b5 1308## Cargo 1.40 (2019-12-19)
57020a5d 1309[1c6ec66d...5da4b4d4](https://github.com/rust-lang/cargo/compare/1c6ec66d...5da4b4d4)
8ad031b5
EH
1310
1311### Added
1df81ee0
EH
1312- Added `http.ssl-version` config option to control the version of TLS,
1313 along with min/max versions.
1314 [#7308](https://github.com/rust-lang/cargo/pull/7308)
1df81ee0
EH
1315- 🔥 Compiler warnings are now cached on disk. If a build generates warnings,
1316 re-running the build will now re-display the warnings.
1317 [#7450](https://github.com/rust-lang/cargo/pull/7450)
1df81ee0
EH
1318- Added `--filter-platform` option to `cargo metadata` to narrow the nodes
1319 shown in the resolver graph to only packages included for the given target
1320 triple.
1321 [#7376](https://github.com/rust-lang/cargo/pull/7376)
8ad031b5
EH
1322
1323### Changed
1324- Cargo's "platform" `cfg` parsing has been extracted into a separate crate
1325 named `cargo-platform`.
1326 [#7375](https://github.com/rust-lang/cargo/pull/7375)
1df81ee0
EH
1327- Dependencies extracted into Cargo's cache no longer preserve mtimes to
1328 reduce syscall overhead.
1329 [#7465](https://github.com/rust-lang/cargo/pull/7465)
1330- Windows: EXE files no longer include a metadata hash in the filename.
1331 This helps with debuggers correlating the filename with the PDB file.
1332 [#7400](https://github.com/rust-lang/cargo/pull/7400)
1333- Wasm32: `.wasm` files are no longer treated as an "executable", allowing
1334 `cargo test` and `cargo run` to work properly with the generated `.js` file.
1335 [#7476](https://github.com/rust-lang/cargo/pull/7476)
1336- crates.io now supports SPDX 3.6 licenses.
1337 [#7481](https://github.com/rust-lang/cargo/pull/7481)
1338- Improved cyclic dependency error message.
1339 [#7470](https://github.com/rust-lang/cargo/pull/7470)
1340- Bare `cargo clean` no longer locks the package cache.
1341 [#7502](https://github.com/rust-lang/cargo/pull/7502)
1342- `cargo publish` now allows dev-dependencies without a version key to be
1343 published. A git or path-only dev-dependency will be removed from the
1344 package manifest before uploading.
1345 [#7333](https://github.com/rust-lang/cargo/pull/7333)
1df81ee0
EH
1346- `--features` and `--no-default-features` in the root of a virtual workspace
1347 will now generate an error instead of being ignored.
1348 [#7507](https://github.com/rust-lang/cargo/pull/7507)
1349- Generated files (like `Cargo.toml` and `Cargo.lock`) in a package archive
1350 now have their timestamp set to the current time instead of the epoch.
1351 [#7523](https://github.com/rust-lang/cargo/pull/7523)
1352- The `-Z` flag parser is now more strict, rejecting more invalid syntax.
1353 [#7531](https://github.com/rust-lang/cargo/pull/7531)
8ad031b5
EH
1354
1355### Fixed
1356- Fixed an issue where if a package had an `include` field, and `Cargo.lock`
1357 in `.gitignore`, and a binary or example target, and the `Cargo.lock` exists
1358 in the current project, it would fail to publish complaining the
1359 `Cargo.lock` was dirty.
1360 [#7448](https://github.com/rust-lang/cargo/pull/7448)
1361- Fixed a panic in a particular combination of `[patch]` entries.
1362 [#7452](https://github.com/rust-lang/cargo/pull/7452)
1df81ee0
EH
1363- Windows: Better error message when `cargo test` or `rustc` crashes in an
1364 abnormal way, such as a signal or seg fault.
1365 [#7535](https://github.com/rust-lang/cargo/pull/7535)
e77351a5
EH
1366
1367### Nightly only
1368- The `mtime-on-use` feature may now be enabled via the
1369 `unstable.mtime_on_use` config option.
1370 [#7411](https://github.com/rust-lang/cargo/pull/7411)
1371- Added support for named profiles.
1372 [#6989](https://github.com/rust-lang/cargo/pull/6989)
1373- Added `-Zpanic-abort-tests` to allow building and running tests with the
1374 "abort" panic strategy.
1375 [#7460](https://github.com/rust-lang/cargo/pull/7460)
1376- Changed `build-std` to use `--sysroot`.
1377 [#7421](https://github.com/rust-lang/cargo/pull/7421)
1378- Various fixes and enhancements to `-Ztimings`.
1379 [#7395](https://github.com/rust-lang/cargo/pull/7395)
1380 [#7398](https://github.com/rust-lang/cargo/pull/7398)
1381 [#7397](https://github.com/rust-lang/cargo/pull/7397)
1382 [#7403](https://github.com/rust-lang/cargo/pull/7403)
1383 [#7428](https://github.com/rust-lang/cargo/pull/7428)
1384 [#7429](https://github.com/rust-lang/cargo/pull/7429)
1385- Profile overrides have renamed the syntax to be
1386 `[profile.dev.package.NAME]`.
1387 [#7504](https://github.com/rust-lang/cargo/pull/7504)
1388- Fixed warnings for unused profile overrides in a workspace.
1df81ee0 1389 [#7536](https://github.com/rust-lang/cargo/pull/7536)
8ad031b5 1390
5c7875d2 1391## Cargo 1.39 (2019-11-07)
1df81ee0 1392[e853aa97...1c6ec66d](https://github.com/rust-lang/cargo/compare/e853aa97...1c6ec66d)
5c7875d2
EH
1393
1394### Added
8ad031b5
EH
1395- Config files may now use the `.toml` filename extension.
1396 [#7295](https://github.com/rust-lang/cargo/pull/7295)
8ad031b5
EH
1397- The `--workspace` flag has been added as an alias for `--all` to help avoid
1398 confusion about the meaning of "all".
1399 [#7241](https://github.com/rust-lang/cargo/pull/7241)
1400- The `publish` field has been added to `cargo metadata`.
1401 [#7354](https://github.com/rust-lang/cargo/pull/7354)
5c7875d2
EH
1402
1403### Changed
1404- Display more information if parsing the output from `rustc` fails.
1405 [#7236](https://github.com/rust-lang/cargo/pull/7236)
1406- TOML errors now show the column number.
1407 [#7248](https://github.com/rust-lang/cargo/pull/7248)
1408- `cargo vendor` no longer deletes files in the `vendor` directory that starts
1409 with a `.`.
1410 [#7242](https://github.com/rust-lang/cargo/pull/7242)
1411- `cargo fetch` will now show manifest warnings.
1412 [#7243](https://github.com/rust-lang/cargo/pull/7243)
1413- `cargo publish` will now check git submodules if they contain any
1414 uncommitted changes.
1415 [#7245](https://github.com/rust-lang/cargo/pull/7245)
1416- In a build script, `cargo:rustc-flags` now allows `-l` and `-L` flags
1417 without spaces.
1418 [#7257](https://github.com/rust-lang/cargo/pull/7257)
1419- When `cargo install` replaces an older version of a package it will now
1420 delete any installed binaries that are no longer present in the newly
1421 installed version.
1422 [#7246](https://github.com/rust-lang/cargo/pull/7246)
1423- A git dependency may now also specify a `version` key when published. The
1424 `git` value will be stripped from the uploaded crate, matching the behavior
1425 of `path` dependencies.
1426 [#7237](https://github.com/rust-lang/cargo/pull/7237)
8ad031b5
EH
1427- The behavior of workspace default-members has changed. The default-members
1428 now only applies when running Cargo in the root of the workspace. Previously
1429 it would always apply regardless of which directory Cargo is running in.
1430 [#7270](https://github.com/rust-lang/cargo/pull/7270)
1431- libgit2 updated pulling in all upstream changes.
1432 [#7275](https://github.com/rust-lang/cargo/pull/7275)
1433- Bump `home` dependency for locating home directories.
1434 [#7277](https://github.com/rust-lang/cargo/pull/7277)
1435- zsh completions have been updated.
1436 [#7296](https://github.com/rust-lang/cargo/pull/7296)
1437- SSL connect errors are now retried.
1438 [#7318](https://github.com/rust-lang/cargo/pull/7318)
1439- The jobserver has been changed to acquire N tokens (instead of N-1), and
1440 then immediately acquires the extra token. This was changed to accommodate
1441 the `cc` crate on Windows to allow it to release its implicit token.
1442 [#7344](https://github.com/rust-lang/cargo/pull/7344)
1443- The scheduling algorithm for choosing which crate to build next has been
1444 changed. It now chooses the crate with the greatest number of transitive
1445 crates waiting on it. Previously it used a maximum topological depth.
1446 [#7390](https://github.com/rust-lang/cargo/pull/7390)
1df81ee0
EH
1447- RUSTFLAGS are no longer incorporated in the metadata and filename hash,
1448 reversing the change from 1.33 that added it. This means that any change to
1449 RUSTFLAGS will cause a recompile, and will not affect symbol munging.
1450 [#7459](https://github.com/rust-lang/cargo/pull/7459)
5c7875d2
EH
1451
1452### Fixed
1453- Git dependencies with submodules with shorthand SSH URLs (like
1454 `git@github.com/user/repo.git`) should now work.
1455 [#7238](https://github.com/rust-lang/cargo/pull/7238)
8ad031b5
EH
1456- Handle broken symlinks when creating `.dSYM` symlinks on macOS.
1457 [#7268](https://github.com/rust-lang/cargo/pull/7268)
1458- Fixed issues with multiple versions of the same crate in a `[patch]` table.
1459 [#7303](https://github.com/rust-lang/cargo/pull/7303)
1460- Fixed issue with custom target `.json` files where a substring of the name
1461 matches an unsupported crate type (like "bin").
1462 [#7363](https://github.com/rust-lang/cargo/issues/7363)
1463- Fixed issues with generating documentation for proc-macro crate types.
1464 [#7159](https://github.com/rust-lang/cargo/pull/7159)
1465- Fixed hang if Cargo panics within a build thread.
1466 [#7366](https://github.com/rust-lang/cargo/pull/7366)
1467- Fixed rebuild detection if a `build.rs` script issues different `rerun-if`
1468 directives between builds. Cargo was erroneously causing a rebuild after the
1469 change.
1470 [#7373](https://github.com/rust-lang/cargo/pull/7373)
1471- Properly handle canonical URLs for `[patch]` table entries, preventing
1472 the patch from working after the first time it is used.
1473 [#7368](https://github.com/rust-lang/cargo/pull/7368)
1474- Fixed an issue where integration tests were waiting for the package binary
1475 to finish building before starting their own build. They now may build
1476 concurrently.
1477 [#7394](https://github.com/rust-lang/cargo/pull/7394)
1478- Fixed accidental change in the previous release on how `--features a b` flag
1479 is interpreted, restoring the original behavior where this is interpreted as
1480 `--features a` along with the argument `b` passed to the command. To pass
1481 multiple features, use quotes around the features to pass multiple features
1482 like `--features "a b"`, or use commas, or use multiple `--features` flags.
1483 [#7419](https://github.com/rust-lang/cargo/pull/7419)
5c7875d2 1484
e77351a5
EH
1485### Nightly only
1486- Basic support for building the standard library directly from Cargo has been
1487 added.
1488 ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std))
1489 [#7216](https://github.com/rust-lang/cargo/pull/7216)
1490- Added `-Ztimings` feature to generate an HTML report on the time spent on
1491 individual compilation steps. This also may output completion steps on the
1492 console and JSON data.
1493 ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#timings))
1494 [#7311](https://github.com/rust-lang/cargo/pull/7311)
1495- Added ability to cross-compile doctests.
1496 ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#doctest-xcompile))
1497 [#6892](https://github.com/rust-lang/cargo/pull/6892)
1498
1707d37f 1499## Cargo 1.38 (2019-09-26)
8ad031b5 1500[4c1fa54d...23ef9a4e](https://github.com/rust-lang/cargo/compare/4c1fa54d...23ef9a4e)
9e9c5868
EH
1501
1502### Added
5c7875d2 1503- 🔥 Cargo build pipelining has been enabled by default to leverage more idle CPU
45699e9f
AC
1504 parallelism during builds.
1505 [#7143](https://github.com/rust-lang/cargo/pull/7143)
1506- The `--message-format` option to Cargo can now be specified multiple times and
1507 accepts a comma-separated list of values. In addition to the previous values
1508 it also now accepts `json-diagnostic-short` and
1509 `json-diagnostic-rendered-ansi` which configures the output coming from rustc
1510 in `json` message mode.
1511 [#7214](https://github.com/rust-lang/cargo/pull/7214)
5c7875d2
EH
1512- Cirrus CI badges are now supported on crates.io.
1513 [#7119](https://github.com/rust-lang/cargo/pull/7119)
5c7875d2
EH
1514- A new format for `Cargo.lock` has been introduced. This new format is
1515 intended to avoid source-control merge conflicts more often, and to
1516 generally make it safer to merge changes. This new format is *not* enabled
1517 at this time, though Cargo will use it if it sees it. At some point in the
1518 future, it is intended that this will become the default.
1519 [#7070](https://github.com/rust-lang/cargo/pull/7070)
1520- Progress bar support added for FreeBSD.
1521 [#7222](https://github.com/rust-lang/cargo/pull/7222)
45699e9f 1522
9e9c5868 1523### Changed
5c7875d2
EH
1524- The `-q` flag will no longer suppress the root error message for an error
1525 from Cargo itself.
1526 [#7116](https://github.com/rust-lang/cargo/pull/7116)
1527- The Cargo Book is now published with mdbook 0.3 providing a number of
1528 formatting fixes and improvements.
1529 [#7140](https://github.com/rust-lang/cargo/pull/7140)
1530- The `--features` command-line flag can now be specified multiple times.
1531 The list of features from all the flags are joined together.
1532 [#7084](https://github.com/rust-lang/cargo/pull/7084)
5c7875d2
EH
1533- Package include/exclude glob-vs-gitignore warnings have been removed.
1534 Packages may now use gitignore-style matching without producing any
1535 warnings.
1536 [#7170](https://github.com/rust-lang/cargo/pull/7170)
1537- Cargo now shows the command and output when parsing `rustc` output fails
1538 when querying `rustc` for information like `cfg` values.
1539 [#7185](https://github.com/rust-lang/cargo/pull/7185)
1540- `cargo package`/`cargo publish` now allows a symbolic link to a git
1541 submodule to include that submodule.
1542 [#6817](https://github.com/rust-lang/cargo/pull/6817)
1543- Improved the error message when a version requirement does not
1544 match any versions, but there are pre-release versions available.
1545 [#7191](https://github.com/rust-lang/cargo/pull/7191)
9e9c5868
EH
1546
1547### Fixed
9e9c5868
EH
1548- Fixed using the wrong directory when updating git repositories when using
1549 the `git-fetch-with-cli` config option, and the `GIT_DIR` environment
1550 variable is set. This may happen when running cargo from git callbacks.
1551 [#7082](https://github.com/rust-lang/cargo/pull/7082)
5c7875d2
EH
1552- Fixed dep-info files being overwritten for targets that have separate debug
1553 outputs. For example, binaries on `-apple-` targets with `.dSYM` directories
1554 would overwrite the `.d` file.
1555 [#7057](https://github.com/rust-lang/cargo/pull/7057)
1556- Fix `[patch]` table not preserving "one major version per source" rule.
1557 [#7118](https://github.com/rust-lang/cargo/pull/7118)
1558- Ignore `--remap-path-prefix` flags for the metadata hash in the `cargo
1559 rustc` command. This was causing the remap settings to inadvertently affect
1560 symbol names.
1561 [#7134](https://github.com/rust-lang/cargo/pull/7134)
1562- Fixed cycle detection in `[patch]` dependencies.
1563 [#7174](https://github.com/rust-lang/cargo/pull/7174)
1564- Fixed `cargo new` leaving behind a symlink on Windows when `core.symlinks`
1565 git config is true. Also adds a number of fixes and updates from upstream
1566 libgit2.
1567 [#7176](https://github.com/rust-lang/cargo/pull/7176)
1568- macOS: Fixed setting the flag to mark the `target` directory to be excluded
1569 from backups.
1570 [#7192](https://github.com/rust-lang/cargo/pull/7192)
1571- Fixed `cargo fix` panicking under some situations involving multi-byte
1572 characters.
1573 [#7221](https://github.com/rust-lang/cargo/pull/7221)
e77351a5
EH
1574
1575### Nightly only
1576- Added `cargo fix --clippy` which will apply machine-applicable fixes from
1577 Clippy.
1578 [#7069](https://github.com/rust-lang/cargo/pull/7069)
1579- Added `-Z binary-dep-depinfo` flag to add change tracking for binary
1580 dependencies like the standard library.
1581 [#7137](https://github.com/rust-lang/cargo/pull/7137)
1582 [#7219](https://github.com/rust-lang/cargo/pull/7219)
1583- `cargo clippy-preview` will always run, even if no changes have been made.
1584 [#7157](https://github.com/rust-lang/cargo/pull/7157)
1585- Fixed exponential blowup when using `CARGO_BUILD_PIPELINING`.
1586 [#7062](https://github.com/rust-lang/cargo/pull/7062)
1587- Fixed passing args to clippy in `cargo clippy-preview`.
5c7875d2 1588 [#7162](https://github.com/rust-lang/cargo/pull/7162)
9e9c5868 1589
114e20b3 1590## Cargo 1.37 (2019-08-15)
8ad031b5 1591[c4fcfb72...9edd0891](https://github.com/rust-lang/cargo/compare/c4fcfb72...9edd0891)
114e20b3
EH
1592
1593### Added
9e9c5868
EH
1594- Added `doctest` field to `cargo metadata` to determine if a target's
1595 documentation is tested.
114e20b3
EH
1596 [#6953](https://github.com/rust-lang/cargo/pull/6953)
1597 [#6965](https://github.com/rust-lang/cargo/pull/6965)
9e9c5868
EH
1598- 🔥 The [`cargo
1599 vendor`](https://doc.rust-lang.org/nightly/cargo/commands/cargo-vendor.html)
1600 command is now built-in to Cargo. This command may be used to create a local
1601 copy of the sources of all dependencies.
1602 [#6869](https://github.com/rust-lang/cargo/pull/6869)
1603- 🔥 The "publish lockfile" feature is now stable. This feature will
1604 automatically include the `Cargo.lock` file when a package is published if
1605 it contains a binary executable target. By default, Cargo will ignore
1606 `Cargo.lock` when installing a package. To force Cargo to use the
1607 `Cargo.lock` file included in the published package, use `cargo install
1608 --locked`. This may be useful to ensure that `cargo install` consistently
1609 reproduces the same result. It may also be useful when a semver-incompatible
1610 change is accidentally published to a dependency, providing a way to fall
1611 back to a version that is known to work.
1612 [#7026](https://github.com/rust-lang/cargo/pull/7026)
1613- 🔥 The `default-run` feature has been stabilized. This feature allows you to
1614 specify which binary executable to run by default with `cargo run` when a
1615 package includes multiple binaries. Set the `default-run` key in the
1616 `[package]` table in `Cargo.toml` to the name of the binary to use by
1617 default.
1618 [#7056](https://github.com/rust-lang/cargo/pull/7056)
114e20b3
EH
1619
1620### Changed
1621- `cargo package` now verifies that build scripts do not create empty
1622 directories.
1623 [#6973](https://github.com/rust-lang/cargo/pull/6973)
9e9c5868
EH
1624- A warning is now issued if `cargo doc` generates duplicate outputs, which
1625 causes files to be randomly stomped on. This may happen for a variety of
1626 reasons (renamed dependencies, multiple versions of the same package,
1627 packages with renamed libraries, etc.). This is a known bug, which needs
1628 more work to handle correctly.
1629 [#6998](https://github.com/rust-lang/cargo/pull/6998)
1630- Enabling a dependency's feature with `--features foo/bar` will no longer
1631 compile the current crate with the `foo` feature if `foo` is not an optional
1632 dependency.
1633 [#7010](https://github.com/rust-lang/cargo/pull/7010)
1634- If `--remap-path-prefix` is passed via RUSTFLAGS, it will no longer affect
1635 the filename metadata hash.
1636 [#6966](https://github.com/rust-lang/cargo/pull/6966)
1637- libgit2 has been updated to 0.28.2, which Cargo uses to access git
1638 repositories. This brings in hundreds of changes and fixes since it was last
1639 updated in November.
1640 [#7018](https://github.com/rust-lang/cargo/pull/7018)
1641- Cargo now supports absolute paths in the dep-info files generated by rustc.
1642 This is laying the groundwork for [tracking
1643 binaries](https://github.com/rust-lang/rust/pull/61727), such as libstd, for
1644 rebuild detection. (Note: this contains a known bug.)
1645 [#7030](https://github.com/rust-lang/cargo/pull/7030)
114e20b3
EH
1646
1647### Fixed
1648- Fixed how zsh completions fetch the list of commands.
1649 [#6956](https://github.com/rust-lang/cargo/pull/6956)
1650- "+ debuginfo" is no longer printed in the build summary when `debug` is set
1651 to 0.
1652 [#6971](https://github.com/rust-lang/cargo/pull/6971)
9e9c5868
EH
1653- Fixed `cargo doc` with an example configured with `doc = true` to document
1654 correctly.
1655 [#7023](https://github.com/rust-lang/cargo/pull/7023)
5c7875d2
EH
1656- Don't fail if a read-only lock cannot be acquired in CARGO_HOME. This helps
1657 when CARGO_HOME doesn't exist, but `--locked` is used which means CARGO_HOME
1658 is not needed.
1659 [#7149](https://github.com/rust-lang/cargo/pull/7149)
1660- Reverted a change in 1.35 which released jobserver tokens when Cargo blocked
1661 on a lock file. It caused a deadlock in some situations.
1662 [#7204](https://github.com/rust-lang/cargo/pull/7204)
114e20b3 1663
e77351a5
EH
1664### Nightly only
1665- Added [compiler message
1666 caching](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#cache-messages).
1667 The `-Z cache-messages` flag makes cargo cache the compiler output so that
1668 future runs can redisplay previous warnings.
1669 [#6933](https://github.com/rust-lang/cargo/pull/6933)
1670- `-Z mtime-on-use` no longer touches intermediate artifacts.
1671 [#7050](https://github.com/rust-lang/cargo/pull/7050)
1672
2cbb701b 1673## Cargo 1.36 (2019-07-04)
114e20b3 1674[6f3e9c36...c4fcfb72](https://github.com/rust-lang/cargo/compare/6f3e9c36...c4fcfb72)
2cbb701b
EH
1675
1676### Added
114e20b3
EH
1677- Added more detailed documentation on target auto-discovery.
1678 [#6898](https://github.com/rust-lang/cargo/pull/6898)
114e20b3
EH
1679- 🔥 Stabilize the `--offline` flag which allows using cargo without a network
1680 connection.
1681 [#6934](https://github.com/rust-lang/cargo/pull/6934)
1682 [#6871](https://github.com/rust-lang/cargo/pull/6871)
2cbb701b
EH
1683
1684### Changed
1685- `publish = ["crates-io"]` may be added to the manifest to restrict
1686 publishing to crates.io only.
1687 [#6838](https://github.com/rust-lang/cargo/pull/6838)
1688- macOS: Only include the default paths if `DYLD_FALLBACK_LIBRARY_PATH` is not
1689 set. Also, remove `/lib` from the default set.
1690 [#6856](https://github.com/rust-lang/cargo/pull/6856)
1691- `cargo publish` will now exit early if the login token is not available.
1692 [#6854](https://github.com/rust-lang/cargo/pull/6854)
1693- HTTP/2 stream errors are now considered "spurious" and will cause a retry.
1694 [#6861](https://github.com/rust-lang/cargo/pull/6861)
2cbb701b
EH
1695- Setting a feature on a dependency where that feature points to a *required*
1696 dependency is now an error. Previously it was a warning.
1697 [#6860](https://github.com/rust-lang/cargo/pull/6860)
114e20b3
EH
1698- The `registry.index` config value now supports relative `file:` URLs.
1699 [#6873](https://github.com/rust-lang/cargo/pull/6873)
1700- macOS: The `.dSYM` directory is now symbolically linked next to example
1701 binaries without the metadata hash so that debuggers can find it.
1702 [#6891](https://github.com/rust-lang/cargo/pull/6891)
1703- The default `Cargo.toml` template for now projects now includes a comment
1704 providing a link to the documentation.
1705 [#6881](https://github.com/rust-lang/cargo/pull/6881)
1706- Some improvements to the wording of the crate download summary.
1707 [#6916](https://github.com/rust-lang/cargo/pull/6916)
1708 [#6920](https://github.com/rust-lang/cargo/pull/6920)
1709- ✨ Changed `RUST_LOG` environment variable to `CARGO_LOG` so that user code
1710 that uses the `log` crate will not display cargo's debug output.
1711 [#6918](https://github.com/rust-lang/cargo/pull/6918)
1712- `Cargo.toml` is now always included when packaging, even if it is not listed
1713 in `package.include`.
1714 [#6925](https://github.com/rust-lang/cargo/pull/6925)
1715- Package include/exclude values now use gitignore patterns instead of glob
1716 patterns. [#6924](https://github.com/rust-lang/cargo/pull/6924)
1717- Provide a better error message when crates.io times out. Also improve error
1718 messages with other HTTP response codes.
1719 [#6936](https://github.com/rust-lang/cargo/pull/6936)
1720
1721### Performance
2cbb701b
EH
1722- Resolver performance improvements for some cases.
1723 [#6853](https://github.com/rust-lang/cargo/pull/6853)
114e20b3
EH
1724- Optimized how cargo reads the index JSON files by caching the results.
1725 [#6880](https://github.com/rust-lang/cargo/pull/6880)
1726 [#6912](https://github.com/rust-lang/cargo/pull/6912)
1727 [#6940](https://github.com/rust-lang/cargo/pull/6940)
1728- Various performance improvements.
1729 [#6867](https://github.com/rust-lang/cargo/pull/6867)
2cbb701b
EH
1730
1731### Fixed
1732- More carefully track the on-disk fingerprint information for dependencies.
1733 This can help in some rare cases where the build is interrupted and
1734 restarted. [#6832](https://github.com/rust-lang/cargo/pull/6832)
1735- `cargo run` now correctly passes non-UTF8 arguments to the child process.
1736 [#6849](https://github.com/rust-lang/cargo/pull/6849)
114e20b3
EH
1737- Fixed bash completion to run on bash 3.2, the stock version in macOS.
1738 [#6905](https://github.com/rust-lang/cargo/pull/6905)
1739- Various fixes and improvements to zsh completion.
1740 [#6926](https://github.com/rust-lang/cargo/pull/6926)
1741 [#6929](https://github.com/rust-lang/cargo/pull/6929)
1742- Fix `cargo update` ignoring `-p` arguments if the `Cargo.lock` file was
1743 missing.
1744 [#6904](https://github.com/rust-lang/cargo/pull/6904)
2cbb701b 1745
e77351a5
EH
1746### Nightly only
1747- Added [`-Z install-upgrade`
1748 feature](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#install-upgrade)
1749 to track details about installed crates and to update them if they are
1750 out-of-date. [#6798](https://github.com/rust-lang/cargo/pull/6798)
1751- Added the [`public-dependency`
1752 feature](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#public-dependency)
1753 which allows tracking public versus private dependencies.
1754 [#6772](https://github.com/rust-lang/cargo/pull/6772)
1755- Added build pipelining via the `build.pipelining` config
1756 option (`CARGO_BUILD_PIPELINING` env var).
1757 [#6883](https://github.com/rust-lang/cargo/pull/6883)
1758- The `publish-lockfile` feature has had some significant changes. The default
1759 is now `true`, the `Cargo.lock` will always be published for binary crates.
1760 The `Cargo.lock` is now regenerated during publishing. `cargo install` now
1761 ignores the `Cargo.lock` file by default, and requires `--locked` to use the
1762 lock file. Warnings have been added if yanked dependencies are detected.
1763 [#6840](https://github.com/rust-lang/cargo/pull/6840)
1764
2cbb701b
EH
1765## Cargo 1.35 (2019-05-23)
1766[6789d8a0...6f3e9c36](https://github.com/rust-lang/cargo/compare/6789d8a0...6f3e9c36)
1767
1768### Added
1769- Added the `rustc-cdylib-link-arg` key for build scripts to specify linker
1770 arguments for cdylib crates.
1771 [#6298](https://github.com/rust-lang/cargo/pull/6298)
2cbb701b
EH
1772
1773### Changed
1774- When passing a test filter, such as `cargo test foo`, don't build examples
1775 (unless they set `test = true`).
1776 [#6683](https://github.com/rust-lang/cargo/pull/6683)
1777- Forward the `--quiet` flag from `cargo test` to the libtest harness so that
1778 tests are actually quiet.
1779 [#6358](https://github.com/rust-lang/cargo/pull/6358)
1780- The verification step in `cargo package` that checks if any files are
1781 modified is now stricter. It uses a hash of the contents instead of checking
1782 filesystem mtimes. It also checks *all* files in the package.
1783 [#6740](https://github.com/rust-lang/cargo/pull/6740)
1784- Jobserver tokens are now released whenever Cargo blocks on a file lock.
1785 [#6748](https://github.com/rust-lang/cargo/pull/6748)
1786- Issue a warning for a previous bug in the TOML parser that allowed multiple
1787 table headers with the same name.
1788 [#6761](https://github.com/rust-lang/cargo/pull/6761)
1789- Removed the `CARGO_PKG_*` environment variables from the metadata hash and
1790 added them to the fingerprint instead. This means that when these values
1791 change, stale artifacts are not left behind. Also added the "repository"
1792 value to the fingerprint.
1793 [#6785](https://github.com/rust-lang/cargo/pull/6785)
1794- `cargo metadata` no longer shows a `null` field for a dependency without a
1795 library in `resolve.nodes.deps`. The dependency is no longer shown.
1796 [#6534](https://github.com/rust-lang/cargo/pull/6534)
1797- `cargo new` will no longer include an email address in the `authors` field
1798 if it is set to the empty string.
1799 [#6802](https://github.com/rust-lang/cargo/pull/6802)
1800- `cargo doc --open` now works when documenting multiple packages.
1801 [#6803](https://github.com/rust-lang/cargo/pull/6803)
1802- `cargo install --path P` now loads the `.cargo/config` file from the
1803 directory P. [#6805](https://github.com/rust-lang/cargo/pull/6805)
1804- Using semver metadata in a version requirement (such as `1.0.0+1234`) now
1805 issues a warning that it is ignored.
1806 [#6806](https://github.com/rust-lang/cargo/pull/6806)
1807- `cargo install` now rejects certain combinations of flags where some flags
1808 would have been ignored.
1809 [#6801](https://github.com/rust-lang/cargo/pull/6801)
2cbb701b
EH
1810- Resolver performance improvements for some cases.
1811 [#6776](https://github.com/rust-lang/cargo/pull/6776)
2cbb701b
EH
1812
1813### Fixed
1814- Fixed running separate commands (such as `cargo build` then `cargo test`)
1815 where the second command could use stale results from a build script.
1816 [#6720](https://github.com/rust-lang/cargo/pull/6720)
1817- Fixed `cargo fix` not working properly if a `.gitignore` file that matched
1818 the root package directory.
1819 [#6767](https://github.com/rust-lang/cargo/pull/6767)
1820- Fixed accidentally compiling a lib multiple times if `panic=unwind` was set
1821 in a profile. [#6781](https://github.com/rust-lang/cargo/pull/6781)
1822- Paths to JSON files in `build.target` config value are now canonicalized to
1823 fix building dependencies.
1824 [#6778](https://github.com/rust-lang/cargo/pull/6778)
1825- Fixed re-running a build script if its compilation was interrupted (such as
1826 if it is killed). [#6782](https://github.com/rust-lang/cargo/pull/6782)
1827- Fixed `cargo new` initializing a fossil repo.
1828 [#6792](https://github.com/rust-lang/cargo/pull/6792)
1829- Fixed supporting updating a git repo that has a force push when using the
1830 `git-fetch-with-cli` feature. `git-fetch-with-cli` also shows more error
1831 information now when it fails.
1832 [#6800](https://github.com/rust-lang/cargo/pull/6800)
1833- `--example` binaries built for the WASM target are fixed to no longer
1834 include a metadata hash in the filename, and are correctly emitted in the
1835 `compiler-artifact` JSON message.
1836 [#6812](https://github.com/rust-lang/cargo/pull/6812)
1837
e77351a5
EH
1838### Nightly only
1839- `cargo clippy-preview` is now a built-in cargo command.
1840 [#6759](https://github.com/rust-lang/cargo/pull/6759)
1841- The `build-override` profile setting now includes proc-macros and their
1842 dependencies.
1843 [#6811](https://github.com/rust-lang/cargo/pull/6811)
1844- Optional and target dependencies now work better with `-Z offline`.
1845 [#6814](https://github.com/rust-lang/cargo/pull/6814)
1846
2cbb701b
EH
1847## Cargo 1.34 (2019-04-11)
1848[f099fe94...6789d8a0](https://github.com/rust-lang/cargo/compare/f099fe94...6789d8a0)
1849
1850### Added
1851- 🔥 Stabilized support for [alternate
1852 registries](https://doc.rust-lang.org/1.34.0/cargo/reference/registries.html).
1853 [#6654](https://github.com/rust-lang/cargo/pull/6654)
2cbb701b
EH
1854- Added documentation on using builds.sr.ht Continuous Integration with Cargo.
1855 [#6565](https://github.com/rust-lang/cargo/pull/6565)
1856- `Cargo.lock` now includes a comment at the top that it is `@generated`.
1857 [#6548](https://github.com/rust-lang/cargo/pull/6548)
1858- Azure DevOps badges are now supported.
1859 [#6264](https://github.com/rust-lang/cargo/pull/6264)
2cbb701b
EH
1860- Added a warning if `--exclude` flag specifies an unknown package.
1861 [#6679](https://github.com/rust-lang/cargo/pull/6679)
1862
1863### Changed
1864- `cargo test --doc --no-run` doesn't do anything, so it now displays an error
1865 to that effect. [#6628](https://github.com/rust-lang/cargo/pull/6628)
1866- Various updates to bash completion: add missing options and commands,
1867 support libtest completions, use rustup for `--target` completion, fallback
1868 to filename completion, fix editing the command line.
1869 [#6644](https://github.com/rust-lang/cargo/pull/6644)
1870- Publishing a crate with a `[patch]` section no longer generates an error.
1871 The `[patch]` section is removed from the manifest before publishing.
1872 [#6535](https://github.com/rust-lang/cargo/pull/6535)
1873- `build.incremental = true` config value is now treated the same as
1874 `CARGO_INCREMENTAL=1`, previously it was ignored.
1875 [#6688](https://github.com/rust-lang/cargo/pull/6688)
1876- Errors from a registry are now always displayed regardless of the HTTP
1877 response code. [#6771](https://github.com/rust-lang/cargo/pull/6771)
1878
1879### Fixed
1880- Fixed bash completion for `cargo run --example`.
1881 [#6578](https://github.com/rust-lang/cargo/pull/6578)
1882- Fixed a race condition when using a *local* registry and running multiple
1883 cargo commands at the same time that build the same crate.
1884 [#6591](https://github.com/rust-lang/cargo/pull/6591)
1885- Fixed some flickering and excessive updates of the progress bar.
1886 [#6615](https://github.com/rust-lang/cargo/pull/6615)
1887- Fixed a hang when using a git credential helper that returns incorrect
1888 credentials. [#6681](https://github.com/rust-lang/cargo/pull/6681)
1889- Fixed resolving yanked crates with a local registry.
1890 [#6750](https://github.com/rust-lang/cargo/pull/6750)
1891
e77351a5
EH
1892### Nightly only
1893- Added `-Z mtime-on-use` flag to cause the mtime to be updated on the
1894 filesystem when a crate is used. This is intended to be able to track stale
1895 artifacts in the future for cleaning up unused files.
1896 [#6477](https://github.com/rust-lang/cargo/pull/6477)
1897 [#6573](https://github.com/rust-lang/cargo/pull/6573)
1898- Added experimental `-Z dual-proc-macros` to build proc macros for both the
1899 host and the target.
1900 [#6547](https://github.com/rust-lang/cargo/pull/6547)
1901
2cbb701b
EH
1902## Cargo 1.33 (2019-02-28)
1903[8610973a...f099fe94](https://github.com/rust-lang/cargo/compare/8610973a...f099fe94)
1904
1905### Added
1906- `compiler-artifact` JSON messages now include an `"executable"` key which
1907 includes the path to the executable that was built.
1908 [#6363](https://github.com/rust-lang/cargo/pull/6363)
1909- The man pages have been rewritten, and are now published with the web
1910 documentation. [#6405](https://github.com/rust-lang/cargo/pull/6405)
2cbb701b
EH
1911- `cargo login` now displays a confirmation after saving the token.
1912 [#6466](https://github.com/rust-lang/cargo/pull/6466)
1913- A warning is now emitted if a `[patch]` entry does not match any package.
1914 [#6470](https://github.com/rust-lang/cargo/pull/6470)
1915- `cargo metadata` now includes the `links` key for a package.
1916 [#6480](https://github.com/rust-lang/cargo/pull/6480)
2cbb701b
EH
1917- "Very verbose" output with `-vv` now displays the environment variables that
1918 cargo sets when it runs a process.
1919 [#6492](https://github.com/rust-lang/cargo/pull/6492)
1920- `--example`, `--bin`, `--bench`, or `--test` without an argument now lists
1921 the available targets for those options.
1922 [#6505](https://github.com/rust-lang/cargo/pull/6505)
1923- Windows: If a process fails with an extended status exit code, a
1924 human-readable name for the code is now displayed.
1925 [#6532](https://github.com/rust-lang/cargo/pull/6532)
1926- Added `--features`, `--no-default-features`, and `--all-features` flags to
1927 the `cargo package` and `cargo publish` commands to use the given features
1928 when verifying the package.
1929 [#6453](https://github.com/rust-lang/cargo/pull/6453)
1930
1931### Changed
1932- If `cargo fix` fails to compile the fixed code, the rustc errors are now
1933 displayed on the console.
1934 [#6419](https://github.com/rust-lang/cargo/pull/6419)
2cbb701b
EH
1935- Hide the `--host` flag from `cargo login`, it is unused.
1936 [#6466](https://github.com/rust-lang/cargo/pull/6466)
2cbb701b
EH
1937- Build script fingerprints now include the rustc version.
1938 [#6473](https://github.com/rust-lang/cargo/pull/6473)
1939- macOS: Switched to setting `DYLD_FALLBACK_LIBRARY_PATH` instead of
1940 `DYLD_LIBRARY_PATH`. [#6355](https://github.com/rust-lang/cargo/pull/6355)
1941- `RUSTFLAGS` is now included in the metadata hash, meaning that changing
1942 the flags will not overwrite previously built files.
1943 [#6503](https://github.com/rust-lang/cargo/pull/6503)
1944- When updating the crate graph, unrelated yanked crates were erroneously
1945 removed. They are now kept at their original version if possible. This was
1946 causing unrelated packages to be downgraded during `cargo update -p
1947 somecrate`. [#5702](https://github.com/rust-lang/cargo/issues/5702)
1948- TOML files now support the [0.5 TOML
1949 syntax](https://github.com/toml-lang/toml/blob/master/CHANGELOG.md#050--2018-07-11).
1950
1951### Fixed
1952- `cargo fix` will now ignore suggestions that modify multiple files.
1953 [#6402](https://github.com/rust-lang/cargo/pull/6402)
1954- `cargo fix` will now only fix one target at a time, to deal with targets
1955 which share the same source files.
1956 [#6434](https://github.com/rust-lang/cargo/pull/6434)
2cbb701b
EH
1957- Fixed bash completion showing the list of cargo commands.
1958 [#6461](https://github.com/rust-lang/cargo/issues/6461)
1959- `cargo init` will now avoid creating duplicate entries in `.gitignore`
1960 files. [#6521](https://github.com/rust-lang/cargo/pull/6521)
2cbb701b
EH
1961- Builds now attempt to detect if a file is modified in the middle of a
1962 compilation, allowing you to build again and pick up the new changes. This
1963 is done by keeping track of when the compilation *starts* not when it
1964 finishes. Also, [#5919](https://github.com/rust-lang/cargo/pull/5919) was
1965 reverted, meaning that cargo does *not* treat equal filesystem mtimes as
1966 requiring a rebuild. [#6484](https://github.com/rust-lang/cargo/pull/6484)
1967
e77351a5
EH
1968### Nightly only
1969- Allow using registry *names* in `[patch]` tables instead of just URLs.
1970 [#6456](https://github.com/rust-lang/cargo/pull/6456)
1971- `cargo metadata` added the `registry` key for dependencies.
1972 [#6500](https://github.com/rust-lang/cargo/pull/6500)
1973- Registry names are now restricted to the same style as
1974 package names (alphanumeric, `-` and `_` characters).
1975 [#6469](https://github.com/rust-lang/cargo/pull/6469)
1976- `cargo login` now displays the `/me` URL from the registry config.
1977 [#6466](https://github.com/rust-lang/cargo/pull/6466)
1978- `cargo login --registry=NAME` now supports interactive input for the token.
1979 [#6466](https://github.com/rust-lang/cargo/pull/6466)
1980- Registries may now elide the `api` key from `config.json` to indicate they
1981 do not support API access.
1982 [#6466](https://github.com/rust-lang/cargo/pull/6466)
1983- Fixed panic when using `--message-format=json` with metabuild.
1984 [#6432](https://github.com/rust-lang/cargo/pull/6432)
1985- Fixed detection of publishing to crates.io when using alternate registries.
1986 [#6525](https://github.com/rust-lang/cargo/pull/6525)
1987
2cbb701b
EH
1988## Cargo 1.32 (2019-01-17)
1989[339d9f9c...8610973a](https://github.com/rust-lang/cargo/compare/339d9f9c...8610973a)
1990
1991### Added
2cbb701b
EH
1992- Registries may now display warnings after a successful publish.
1993 [#6303](https://github.com/rust-lang/cargo/pull/6303)
1994- Added a [glossary](https://doc.rust-lang.org/cargo/appendix/glossary.html)
1995 to the documentation. [#6321](https://github.com/rust-lang/cargo/pull/6321)
1996- Added the alias `c` for `cargo check`.
1997 [#6218](https://github.com/rust-lang/cargo/pull/6218)
2cbb701b
EH
1998
1999### Changed
2000- 🔥 HTTP/2 multiplexing is now enabled by default. The `http.multiplexing`
2001 config value may be used to disable it.
2002 [#6271](https://github.com/rust-lang/cargo/pull/6271)
2003- Use ANSI escape sequences to clear lines instead of spaces.
2004 [#6233](https://github.com/rust-lang/cargo/pull/6233)
2005- Disable git templates when checking out git dependencies, which can cause
2006 problems. [#6252](https://github.com/rust-lang/cargo/pull/6252)
2007- Include the `--update-head-ok` git flag when using the
2008 `net.git-fetch-with-cli` option. This can help prevent failures when
2009 fetching some repositories.
2010 [#6250](https://github.com/rust-lang/cargo/pull/6250)
2011- When extracting a crate during the verification step of `cargo package`, the
2012 filesystem mtimes are no longer set, which was failing on some rare
2013 filesystems. [#6257](https://github.com/rust-lang/cargo/pull/6257)
2014- `crate-type = ["proc-macro"]` is now treated the same as `proc-macro = true`
2015 in `Cargo.toml`. [#6256](https://github.com/rust-lang/cargo/pull/6256)
2016- An error is raised if `dependencies`, `features`, `target`, or `badges` is
2017 set in a virtual workspace. Warnings are displayed if `replace` or `patch`
2018 is used in a workspace member.
2019 [#6276](https://github.com/rust-lang/cargo/pull/6276)
2020- Improved performance of the resolver in some cases.
2021 [#6283](https://github.com/rust-lang/cargo/pull/6283)
2022 [#6366](https://github.com/rust-lang/cargo/pull/6366)
2023- `.rmeta` files are no longer hard-linked into the base target directory
2024 (`target/debug`). [#6292](https://github.com/rust-lang/cargo/pull/6292)
2025- A warning is issued if multiple targets are built with the same output
2026 filenames. [#6308](https://github.com/rust-lang/cargo/pull/6308)
2027- When using `cargo build` (without `--release`) benchmarks are now built
2028 using the "test" profile instead of "bench". This makes it easier to debug
2029 benchmarks, and avoids confusing behavior.
2030 [#6309](https://github.com/rust-lang/cargo/pull/6309)
2031- User aliases may now override built-in aliases (`b`, `r`, `t`, and `c`).
2032 [#6259](https://github.com/rust-lang/cargo/pull/6259)
2033- Setting `autobins=false` now disables auto-discovery of inferred targets.
2034 [#6329](https://github.com/rust-lang/cargo/pull/6329)
2035- `cargo verify-project` will now fail on stable if the project uses unstable
2036 features. [#6326](https://github.com/rust-lang/cargo/pull/6326)
2037- Platform targets with an internal `.` within the name are now allowed.
2038 [#6255](https://github.com/rust-lang/cargo/pull/6255)
2039- `cargo clean --release` now only deletes the release directory.
2040 [#6349](https://github.com/rust-lang/cargo/pull/6349)
2041
2042### Fixed
2043- Avoid adding extra angle brackets in email address for `cargo new`.
2044 [#6243](https://github.com/rust-lang/cargo/pull/6243)
2045- The progress bar is disabled if the CI environment variable is set.
2046 [#6281](https://github.com/rust-lang/cargo/pull/6281)
2047- Avoid retaining all rustc output in memory.
2048 [#6289](https://github.com/rust-lang/cargo/pull/6289)
2049- If JSON parsing fails, and rustc exits nonzero, don't lose the parse failure
2050 message. [#6290](https://github.com/rust-lang/cargo/pull/6290)
2cbb701b
EH
2051- Fixed renaming a project directory with build scripts.
2052 [#6328](https://github.com/rust-lang/cargo/pull/6328)
2053- Fixed `cargo run --example NAME` to work correctly if the example sets
2054 `crate_type = ["bin"]`.
2055 [#6330](https://github.com/rust-lang/cargo/pull/6330)
2056- Fixed issue with `cargo package` git discovery being too aggressive. The
2057 `--allow-dirty` now completely disables the git repo checks.
2058 [#6280](https://github.com/rust-lang/cargo/pull/6280)
2059- Fixed build change tracking for `[patch]` deps which resulted in `cargo
2060 build` rebuilding when it shouldn't.
2061 [#6493](https://github.com/rust-lang/cargo/pull/6493)
2062
e77351a5
EH
2063### Nightly only
2064- Allow usernames in registry URLs.
2065 [#6242](https://github.com/rust-lang/cargo/pull/6242)
2066- Added `"compile_mode"` key to the build-plan JSON structure to be able to
2067 distinguish running a custom build script versus compiling the build script.
2068 [#6331](https://github.com/rust-lang/cargo/pull/6331)
2069- `--out-dir` no longer copies over build scripts.
2070 [#6300](https://github.com/rust-lang/cargo/pull/6300)
2071
30125600 2072## Cargo 1.31 (2018-12-06)
2cbb701b
EH
2073[36d96825...339d9f9c](https://github.com/rust-lang/cargo/compare/36d96825...339d9f9c)
2074
2075### Added
2076- 🔥 Stabilized support for the 2018 edition.
2077 [#5984](https://github.com/rust-lang/cargo/pull/5984)
2078 [#5989](https://github.com/rust-lang/cargo/pull/5989)
2079- 🔥 Added the ability to [rename
2080 dependencies](https://doc.rust-lang.org/1.31.0/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml)
2081 in Cargo.toml. [#6319](https://github.com/rust-lang/cargo/pull/6319)
2082- 🔥 Added support for HTTP/2 pipelining and multiplexing. Set the
2083 `http.multiplexing` config value to enable.
2084 [#6005](https://github.com/rust-lang/cargo/pull/6005)
2cbb701b
EH
2085- Added `http.debug` configuration value to debug HTTP connections. Use
2086 `CARGO_HTTP_DEBUG=true RUST_LOG=cargo::ops::registry cargo build` to display
2087 the debug information. [#6166](https://github.com/rust-lang/cargo/pull/6166)
2088- `CARGO_PKG_REPOSITORY` environment variable is set with the repository value
2089 from `Cargo.toml` when building .
2090 [#6096](https://github.com/rust-lang/cargo/pull/6096)
2091
2092### Changed
2093- `cargo test --doc` now rejects other flags instead of ignoring them.
2094 [#6037](https://github.com/rust-lang/cargo/pull/6037)
2095- `cargo install` ignores `~/.cargo/config`.
2096 [#6026](https://github.com/rust-lang/cargo/pull/6026)
2097- `cargo version --verbose` is now the same as `cargo -vV`.
2098 [#6076](https://github.com/rust-lang/cargo/pull/6076)
2099- Comments at the top of `Cargo.lock` are now preserved.
2100 [#6181](https://github.com/rust-lang/cargo/pull/6181)
2101- When building in "very verbose" mode (`cargo build -vv`), build script
2102 output is prefixed with the package name and version, such as `[foo 0.0.1]`.
2103 [#6164](https://github.com/rust-lang/cargo/pull/6164)
2104- If `cargo fix --broken-code` fails to compile after fixes have been applied,
2105 the files are no longer reverted and are left in their broken state.
2106 [#6316](https://github.com/rust-lang/cargo/pull/6316)
2107
2108### Fixed
2109- Windows: Pass Ctrl-C to the process with `cargo run`.
2110 [#6004](https://github.com/rust-lang/cargo/pull/6004)
2111- macOS: Fix bash completion.
2112 [#6038](https://github.com/rust-lang/cargo/pull/6038)
2113- Support arbitrary toolchain names when completing `+toolchain` in bash
2114 completion. [#6038](https://github.com/rust-lang/cargo/pull/6038)
2115- Fixed edge cases in the resolver, when backtracking on failed dependencies.
2116 [#5988](https://github.com/rust-lang/cargo/pull/5988)
2117- Fixed `cargo test --all-targets` running lib tests three times.
2118 [#6039](https://github.com/rust-lang/cargo/pull/6039)
2119- Fixed publishing renamed dependencies to crates.io.
2120 [#5993](https://github.com/rust-lang/cargo/pull/5993)
2121- Fixed `cargo install` on a git repo with multiple binaries.
2122 [#6060](https://github.com/rust-lang/cargo/pull/6060)
2123- Fixed deeply nested JSON emitted by rustc being lost.
2124 [#6081](https://github.com/rust-lang/cargo/pull/6081)
2125- Windows: Fix locking msys terminals to 60 characters.
2126 [#6122](https://github.com/rust-lang/cargo/pull/6122)
2127- Fixed renamed dependencies with dashes.
2128 [#6140](https://github.com/rust-lang/cargo/pull/6140)
2129- Fixed linking against the wrong dylib when the dylib existed in both
2130 `target/debug` and `target/debug/deps`.
2131 [#6167](https://github.com/rust-lang/cargo/pull/6167)
2132- Fixed some unnecessary recompiles when `panic=abort` is used.
2133 [#6170](https://github.com/rust-lang/cargo/pull/6170)
2134
e77351a5
EH
2135### Nightly only
2136- Added `--registry` flag to `cargo install`.
2137 [#6128](https://github.com/rust-lang/cargo/pull/6128)
2138- Added `registry.default` configuration value to specify the
2139 default registry to use if `--registry` flag is not passed.
2140 [#6135](https://github.com/rust-lang/cargo/pull/6135)
2141- Added `--registry` flag to `cargo new` and `cargo init`.
2142 [#6135](https://github.com/rust-lang/cargo/pull/6135)
2143
30125600 2144## Cargo 1.30 (2018-10-25)
2cbb701b
EH
2145[524a578d...36d96825](https://github.com/rust-lang/cargo/compare/524a578d...36d96825)
2146
2147### Added
2148- 🔥 Added an animated progress bar shows progress during building.
2149 [#5995](https://github.com/rust-lang/cargo/pull/5995/)
2150- Added `resolve.nodes.deps` key to `cargo metadata`, which includes more
2151 information about resolved dependencies, and properly handles renamed
2152 dependencies. [#5871](https://github.com/rust-lang/cargo/pull/5871)
2153- When creating a package, provide more detail with `-v` when failing to
2154 discover if files are dirty in a git repository. Also fix a problem with
2155 discovery on Windows. [#5858](https://github.com/rust-lang/cargo/pull/5858)
2156- Filters like `--bin`, `--test`, `--example`, `--bench`, or `--lib` can be
2157 used in a workspace without selecting a specific package.
2158 [#5873](https://github.com/rust-lang/cargo/pull/5873)
2159- `cargo run` can be used in a workspace without selecting a specific package.
2160 [#5877](https://github.com/rust-lang/cargo/pull/5877)
2161- `cargo doc --message-format=json` now outputs JSON messages from rustdoc.
2162 [#5878](https://github.com/rust-lang/cargo/pull/5878)
2163- Added `--message-format=short` to show one-line messages.
2164 [#5879](https://github.com/rust-lang/cargo/pull/5879)
2165- Added `.cargo_vcs_info.json` file to `.crate` packages that captures the
2166 current git hash. [#5886](https://github.com/rust-lang/cargo/pull/5886)
2167- Added `net.git-fetch-with-cli` configuration option to use the `git`
2168 executable to fetch repositories instead of using the built-in libgit2
2169 library. [#5914](https://github.com/rust-lang/cargo/pull/5914)
2170- Added `required-features` to `cargo metadata`.
2171 [#5902](https://github.com/rust-lang/cargo/pull/5902)
2172- `cargo uninstall` within a package will now uninstall that package.
2173 [#5927](https://github.com/rust-lang/cargo/pull/5927)
2cbb701b
EH
2174- Added `--allow-staged` flag to `cargo fix` to allow it to run if files are
2175 staged in git. [#5943](https://github.com/rust-lang/cargo/pull/5943)
2176- Added `net.low-speed-limit` config value, and also honor `net.timeout` for
2177 http operations. [#5957](https://github.com/rust-lang/cargo/pull/5957)
2178- Added `--edition` flag to `cargo new`.
2179 [#5984](https://github.com/rust-lang/cargo/pull/5984)
2180- Temporarily stabilized 2018 edition support for the duration of the beta.
2181 [#5984](https://github.com/rust-lang/cargo/pull/5984)
2182 [#5989](https://github.com/rust-lang/cargo/pull/5989)
2183- Added support for `target.'cfg(…)'.runner` config value to specify the
9c892e6c 2184 run/test/bench runner for targets that use config expressions.
2cbb701b
EH
2185 [#5959](https://github.com/rust-lang/cargo/pull/5959)
2186
2187### Changed
2188- Windows: `cargo run` will not kill child processes when the main process
2189 exits. [#5887](https://github.com/rust-lang/cargo/pull/5887)
2190- Switched to the `opener` crate to open a web browser with `cargo doc
2191 --open`. This should more reliably select the system-preferred browser on
2192 all platforms. [#5888](https://github.com/rust-lang/cargo/pull/5888)
2193- Equal file mtimes now cause a target to be rebuilt. Previously only if files
2194 were strictly *newer* than the last build would it cause a rebuild.
2195 [#5919](https://github.com/rust-lang/cargo/pull/5919)
2196- Ignore `build.target` config value when running `cargo install`.
2197 [#5874](https://github.com/rust-lang/cargo/pull/5874)
2198- Ignore `RUSTC_WRAPPER` for `cargo fix`.
2199 [#5983](https://github.com/rust-lang/cargo/pull/5983)
2200- Ignore empty `RUSTC_WRAPPER`.
2201 [#5985](https://github.com/rust-lang/cargo/pull/5985)
2202
2203### Fixed
2204- Fixed error when creating a package with an edition field in `Cargo.toml`.
2205 [#5908](https://github.com/rust-lang/cargo/pull/5908)
2206- More consistently use relative paths for path dependencies in a workspace.
2207 [#5935](https://github.com/rust-lang/cargo/pull/5935)
2208- `cargo fix` now always runs, even if it was run previously.
2209 [#5944](https://github.com/rust-lang/cargo/pull/5944)
2210- Windows: Attempt to more reliably detect terminal width. msys-based
2211 terminals are forced to 60 characters wide.
2212 [#6010](https://github.com/rust-lang/cargo/pull/6010)
2213- Allow multiple target flags with `cargo doc --document-private-items`.
2214 [6022](https://github.com/rust-lang/cargo/pull/6022)
e77351a5
EH
2215
2216### Nightly only
2217- Added
2218 [metabuild](https://doc.rust-lang.org/1.30.0/cargo/reference/unstable.html#metabuild).
2219 [#5628](https://github.com/rust-lang/cargo/pull/5628)