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