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