|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.38 (2019-11-26) |
| 4 | +[4c1fa54d...HEAD](https://github.com/rust-lang/cargo/compare/4c1fa54d...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +### Fixed |
| 11 | +- (Nightly only): Fixed exponential blowup when using CARGO_BUILD_PIPELINING. |
| 12 | + [#7062](https://github.com/rust-lang/cargo/pull/7062) |
| 13 | +- Fixed using the wrong directory when updating git repositories when using |
| 14 | + the `git-fetch-with-cli` config option, and the `GIT_DIR` environment |
| 15 | + variable is set. This may happen when running cargo from git callbacks. |
| 16 | + [#7082](https://github.com/rust-lang/cargo/pull/7082) |
| 17 | + |
3 | 18 | ## Cargo 1.37 (2019-08-15)
|
4 |
| -[c4fcfb72...HEAD](https://github.com/rust-lang/cargo/compare/c4fcfb72...HEAD) |
| 19 | +[c4fcfb72...4c1fa54d](https://github.com/rust-lang/cargo/compare/c4fcfb72...4c1fa54d) |
5 | 20 |
|
6 | 21 | ### Added
|
7 |
| -- Added `doctest` field to `cargo metadata` to determine if a target's documentation is tested. |
| 22 | +- Added `doctest` field to `cargo metadata` to determine if a target's |
| 23 | + documentation is tested. |
8 | 24 | [#6953](https://github.com/rust-lang/cargo/pull/6953)
|
9 | 25 | [#6965](https://github.com/rust-lang/cargo/pull/6965)
|
10 | 26 | - (Nightly only): Added [compiler message
|
11 | 27 | caching](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#cache-messages).
|
12 | 28 | The `-Z cache-messages` flag makes cargo cache the compiler output so that
|
13 | 29 | future runs can redisplay previous warnings.
|
14 | 30 | [#6933](https://github.com/rust-lang/cargo/pull/6933)
|
| 31 | +- 🔥 The [`cargo |
| 32 | + vendor`](https://doc.rust-lang.org/nightly/cargo/commands/cargo-vendor.html) |
| 33 | + command is now built-in to Cargo. This command may be used to create a local |
| 34 | + copy of the sources of all dependencies. |
| 35 | + [#6869](https://github.com/rust-lang/cargo/pull/6869) |
| 36 | +- 🔥 The "publish lockfile" feature is now stable. This feature will |
| 37 | + automatically include the `Cargo.lock` file when a package is published if |
| 38 | + it contains a binary executable target. By default, Cargo will ignore |
| 39 | + `Cargo.lock` when installing a package. To force Cargo to use the |
| 40 | + `Cargo.lock` file included in the published package, use `cargo install |
| 41 | + --locked`. This may be useful to ensure that `cargo install` consistently |
| 42 | + reproduces the same result. It may also be useful when a semver-incompatible |
| 43 | + change is accidentally published to a dependency, providing a way to fall |
| 44 | + back to a version that is known to work. |
| 45 | + [#7026](https://github.com/rust-lang/cargo/pull/7026) |
| 46 | +- 🔥 The `default-run` feature has been stabilized. This feature allows you to |
| 47 | + specify which binary executable to run by default with `cargo run` when a |
| 48 | + package includes multiple binaries. Set the `default-run` key in the |
| 49 | + `[package]` table in `Cargo.toml` to the name of the binary to use by |
| 50 | + default. |
| 51 | + [#7056](https://github.com/rust-lang/cargo/pull/7056) |
15 | 52 |
|
16 | 53 | ### Changed
|
17 | 54 | - `cargo package` now verifies that build scripts do not create empty
|
18 | 55 | directories.
|
19 | 56 | [#6973](https://github.com/rust-lang/cargo/pull/6973)
|
| 57 | +- A warning is now issued if `cargo doc` generates duplicate outputs, which |
| 58 | + causes files to be randomly stomped on. This may happen for a variety of |
| 59 | + reasons (renamed dependencies, multiple versions of the same package, |
| 60 | + packages with renamed libraries, etc.). This is a known bug, which needs |
| 61 | + more work to handle correctly. |
| 62 | + [#6998](https://github.com/rust-lang/cargo/pull/6998) |
| 63 | +- Enabling a dependency's feature with `--features foo/bar` will no longer |
| 64 | + compile the current crate with the `foo` feature if `foo` is not an optional |
| 65 | + dependency. |
| 66 | + [#7010](https://github.com/rust-lang/cargo/pull/7010) |
| 67 | +- If `--remap-path-prefix` is passed via RUSTFLAGS, it will no longer affect |
| 68 | + the filename metadata hash. |
| 69 | + [#6966](https://github.com/rust-lang/cargo/pull/6966) |
| 70 | +- libgit2 has been updated to 0.28.2, which Cargo uses to access git |
| 71 | + repositories. This brings in hundreds of changes and fixes since it was last |
| 72 | + updated in November. |
| 73 | + [#7018](https://github.com/rust-lang/cargo/pull/7018) |
| 74 | +- Cargo now supports absolute paths in the dep-info files generated by rustc. |
| 75 | + This is laying the groundwork for [tracking |
| 76 | + binaries](https://github.com/rust-lang/rust/pull/61727), such as libstd, for |
| 77 | + rebuild detection. (Note: this contains a known bug.) |
| 78 | + [#7030](https://github.com/rust-lang/cargo/pull/7030) |
| 79 | +- (Nightly only): `-Z mtime-on-use` no longer touches intermediate artifacts. |
| 80 | + [#7050](https://github.com/rust-lang/cargo/pull/7050) |
20 | 81 |
|
21 | 82 | ### Fixed
|
22 | 83 | - Fixed how zsh completions fetch the list of commands.
|
23 | 84 | [#6956](https://github.com/rust-lang/cargo/pull/6956)
|
24 | 85 | - "+ debuginfo" is no longer printed in the build summary when `debug` is set
|
25 | 86 | to 0.
|
26 | 87 | [#6971](https://github.com/rust-lang/cargo/pull/6971)
|
| 88 | +- Fixed `cargo doc` with an example configured with `doc = true` to document |
| 89 | + correctly. |
| 90 | + [#7023](https://github.com/rust-lang/cargo/pull/7023) |
27 | 91 |
|
28 | 92 | ## Cargo 1.36 (2019-07-04)
|
29 | 93 | [6f3e9c36...c4fcfb72](https://github.com/rust-lang/cargo/compare/6f3e9c36...c4fcfb72)
|
|
0 commit comments