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