|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.40 (2019-12-19) |
| 4 | +[4b105b6a...HEAD](https://github.com/rust-lang/cargo/compare/4b105b6a...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | +- (Nightly only): The `mtime-on-use` feature may now be enabled via the |
| 8 | + `unstable.mtime_on_use` config option. |
| 9 | + [#7411](https://github.com/rust-lang/cargo/pull/7411) |
| 10 | + |
| 11 | +### Changed |
| 12 | +- Cargo's "platform" `cfg` parsing has been extracted into a separate crate |
| 13 | + named `cargo-platform`. |
| 14 | + [#7375](https://github.com/rust-lang/cargo/pull/7375) |
| 15 | + |
| 16 | +### Fixed |
| 17 | +- Fixed an issue where if a package had an `include` field, and `Cargo.lock` |
| 18 | + in `.gitignore`, and a binary or example target, and the `Cargo.lock` exists |
| 19 | + in the current project, it would fail to publish complaining the |
| 20 | + `Cargo.lock` was dirty. |
| 21 | + [#7448](https://github.com/rust-lang/cargo/pull/7448) |
| 22 | +- Fixed a panic in a particular combination of `[patch]` entries. |
| 23 | + [#7452](https://github.com/rust-lang/cargo/pull/7452) |
| 24 | + |
3 | 25 | ## Cargo 1.39 (2019-11-07)
|
4 |
| -[e853aa97...HEAD](https://github.com/rust-lang/cargo/compare/e853aa97...HEAD) |
| 26 | +[e853aa97...4b105b6a](https://github.com/rust-lang/cargo/compare/e853aa97...4b105b6a) |
5 | 27 |
|
6 | 28 | ### Added
|
| 29 | +- Config files may now use the `.toml` filename extension. |
| 30 | + [#7295](https://github.com/rust-lang/cargo/pull/7295) |
| 31 | +- (Nightly only): Basic support for building the standard library directly |
| 32 | + from Cargo has been added. |
| 33 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std)) |
| 34 | + [#7216](https://github.com/rust-lang/cargo/pull/7216) |
| 35 | +- The `--workspace` flag has been added as an alias for `--all` to help avoid |
| 36 | + confusion about the meaning of "all". |
| 37 | + [#7241](https://github.com/rust-lang/cargo/pull/7241) |
| 38 | +- The `publish` field has been added to `cargo metadata`. |
| 39 | + [#7354](https://github.com/rust-lang/cargo/pull/7354) |
| 40 | +- (Nightly only): Added `-Ztimings` feature to generate an HTML report |
| 41 | + on the time spent on individual compilation steps. This also may output |
| 42 | + completion steps on the console and JSON data. |
| 43 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#timings)) |
| 44 | + [#7311](https://github.com/rust-lang/cargo/pull/7311) |
| 45 | +- (Nightly only): Added ability to cross-compile doctests. |
| 46 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#doctest-xcompile)) |
| 47 | + [#6892](https://github.com/rust-lang/cargo/pull/6892) |
7 | 48 |
|
8 | 49 | ### Changed
|
9 | 50 | - Display more information if parsing the output from `rustc` fails.
|
|
29 | 70 | `git` value will be stripped from the uploaded crate, matching the behavior
|
30 | 71 | of `path` dependencies.
|
31 | 72 | [#7237](https://github.com/rust-lang/cargo/pull/7237)
|
| 73 | +- The behavior of workspace default-members has changed. The default-members |
| 74 | + now only applies when running Cargo in the root of the workspace. Previously |
| 75 | + it would always apply regardless of which directory Cargo is running in. |
| 76 | + [#7270](https://github.com/rust-lang/cargo/pull/7270) |
| 77 | +- libgit2 updated pulling in all upstream changes. |
| 78 | + [#7275](https://github.com/rust-lang/cargo/pull/7275) |
| 79 | +- Bump `home` dependency for locating home directories. |
| 80 | + [#7277](https://github.com/rust-lang/cargo/pull/7277) |
| 81 | +- zsh completions have been updated. |
| 82 | + [#7296](https://github.com/rust-lang/cargo/pull/7296) |
| 83 | +- SSL connect errors are now retried. |
| 84 | + [#7318](https://github.com/rust-lang/cargo/pull/7318) |
| 85 | +- The jobserver has been changed to acquire N tokens (instead of N-1), and |
| 86 | + then immediately acquires the extra token. This was changed to accommodate |
| 87 | + the `cc` crate on Windows to allow it to release its implicit token. |
| 88 | + [#7344](https://github.com/rust-lang/cargo/pull/7344) |
| 89 | +- The scheduling algorithm for choosing which crate to build next has been |
| 90 | + changed. It now chooses the crate with the greatest number of transitive |
| 91 | + crates waiting on it. Previously it used a maximum topological depth. |
| 92 | + [#7390](https://github.com/rust-lang/cargo/pull/7390) |
32 | 93 |
|
33 | 94 | ### Fixed
|
34 | 95 | - Git dependencies with submodules with shorthand SSH URLs (like
|
35 | 96 | `git@github.com/user/repo.git`) should now work.
|
36 | 97 | [#7238](https://github.com/rust-lang/cargo/pull/7238)
|
| 98 | +- Handle broken symlinks when creating `.dSYM` symlinks on macOS. |
| 99 | + [#7268](https://github.com/rust-lang/cargo/pull/7268) |
| 100 | +- Fixed issues with multiple versions of the same crate in a `[patch]` table. |
| 101 | + [#7303](https://github.com/rust-lang/cargo/pull/7303) |
| 102 | +- Fixed issue with custom target `.json` files where a substring of the name |
| 103 | + matches an unsupported crate type (like "bin"). |
| 104 | + [#7363](https://github.com/rust-lang/cargo/issues/7363) |
| 105 | +- Fixed issues with generating documentation for proc-macro crate types. |
| 106 | + [#7159](https://github.com/rust-lang/cargo/pull/7159) |
| 107 | +- Fixed hang if Cargo panics within a build thread. |
| 108 | + [#7366](https://github.com/rust-lang/cargo/pull/7366) |
| 109 | +- Fixed rebuild detection if a `build.rs` script issues different `rerun-if` |
| 110 | + directives between builds. Cargo was erroneously causing a rebuild after the |
| 111 | + change. |
| 112 | + [#7373](https://github.com/rust-lang/cargo/pull/7373) |
| 113 | +- Properly handle canonical URLs for `[patch]` table entries, preventing |
| 114 | + the patch from working after the first time it is used. |
| 115 | + [#7368](https://github.com/rust-lang/cargo/pull/7368) |
| 116 | +- Fixed an issue where integration tests were waiting for the package binary |
| 117 | + to finish building before starting their own build. They now may build |
| 118 | + concurrently. |
| 119 | + [#7394](https://github.com/rust-lang/cargo/pull/7394) |
| 120 | +- Fixed accidental change in the previous release on how `--features a b` flag |
| 121 | + is interpreted, restoring the original behavior where this is interpreted as |
| 122 | + `--features a` along with the argument `b` passed to the command. To pass |
| 123 | + multiple features, use quotes around the features to pass multiple features |
| 124 | + like `--features "a b"`, or use commas, or use multiple `--features` flags. |
| 125 | + [#7419](https://github.com/rust-lang/cargo/pull/7419) |
37 | 126 |
|
38 | 127 | ## Cargo 1.38 (2019-09-26)
|
39 |
| -[4c1fa54d...e853aa97](https://github.com/rust-lang/cargo/compare/4c1fa54d...e853aa97) |
| 128 | +[4c1fa54d...23ef9a4e](https://github.com/rust-lang/cargo/compare/4c1fa54d...23ef9a4e) |
40 | 129 |
|
41 | 130 | ### Added
|
42 | 131 |
|
|
127 | 216 | [#7162](https://github.com/rust-lang/cargo/pull/7162)
|
128 | 217 |
|
129 | 218 | ## Cargo 1.37 (2019-08-15)
|
130 |
| -[c4fcfb72...4c1fa54d](https://github.com/rust-lang/cargo/compare/c4fcfb72...4c1fa54d) |
| 219 | +[c4fcfb72...9edd0891](https://github.com/rust-lang/cargo/compare/c4fcfb72...9edd0891) |
131 | 220 |
|
132 | 221 | ### Added
|
133 | 222 | - Added `doctest` field to `cargo metadata` to determine if a target's
|
|
0 commit comments