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