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