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