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