|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.51 (2021-03-25) |
| 4 | +[75d5d8cf...HEAD](https://github.com/rust-lang/cargo/compare/75d5d8cf...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +### Fixed |
| 11 | + |
| 12 | +### Nightly only |
| 13 | + |
3 | 14 | ## Cargo 1.50 (2021-02-11)
|
4 |
| -[8662ab42...HEAD](https://github.com/rust-lang/cargo/compare/8662ab42...HEAD) |
| 15 | +[8662ab42...rust-1.50.0](https://github.com/rust-lang/cargo/compare/8662ab42...rust-1.50.0) |
5 | 16 |
|
6 | 17 | ### Added
|
7 | 18 | - Added the `doc` field to `cargo metadata`, which indicates if a target is
|
8 | 19 | documented.
|
9 | 20 | [#8869](https://github.com/rust-lang/cargo/pull/8869)
|
| 21 | +- Added `RUSTC_WORKSPACE_WRAPPER`, an alternate RUSTC wrapper that only runs |
| 22 | + for the local workspace packages, and caches its artifacts independently of |
| 23 | + non-wrapped builds. |
| 24 | + [#8976](https://github.com/rust-lang/cargo/pull/8976) |
| 25 | +- Added `--workspace` to `cargo update` to update only the workspace members, |
| 26 | + and not their dependencies. This is particularly useful if you update the |
| 27 | + version in `Cargo.toml` and want to update `Cargo.lock` without running any |
| 28 | + other commands. |
| 29 | + [#8725](https://github.com/rust-lang/cargo/pull/8725) |
10 | 30 |
|
11 | 31 | ### Changed
|
12 | 32 | - `.crate` files uploaded to a registry are now built with reproducible
|
13 | 33 | settings, so that the same `.crate` file created on different machines
|
14 | 34 | should be identical.
|
15 | 35 | [#8864](https://github.com/rust-lang/cargo/pull/8864)
|
| 36 | +- Git dependencies that specify more than one of `branch`, `tag`, or `rev` are |
| 37 | + now rejected. |
| 38 | + [#8984](https://github.com/rust-lang/cargo/pull/8984) |
| 39 | +- The `rerun-if-changed` build script directive can now point to a directory, |
| 40 | + in which case Cargo will check if any file in that directory changes. |
| 41 | + [#8973](https://github.com/rust-lang/cargo/pull/8973) |
| 42 | +- Slightly optimize `cargo vendor` |
| 43 | + [#8937](https://github.com/rust-lang/cargo/pull/8937) |
| 44 | +- If Cargo cannot determine the username or email address, `cargo new` will no |
| 45 | + longer fail, and instead create an empty authors list. |
| 46 | + [#8912](https://github.com/rust-lang/cargo/pull/8912) |
| 47 | +- Add period to allowed feature name characters. |
| 48 | + [#8932](https://github.com/rust-lang/cargo/pull/8932) |
| 49 | +- The progress bar width has been reduced to provide more room to display the |
| 50 | + crates currently being built. |
| 51 | + [#8892](https://github.com/rust-lang/cargo/pull/8892) |
| 52 | +- `cargo new` will now support `includeIf` directives in `.gitconfig` to match |
| 53 | + the correct directory when determining the username and email address. |
| 54 | + [#8886](https://github.com/rust-lang/cargo/pull/8886) |
16 | 55 |
|
17 | 56 | ### Fixed
|
| 57 | +- Fixed `cargo metadata` and `cargo tree` to only download packages for the |
| 58 | + requested target. |
| 59 | + [#8987](https://github.com/rust-lang/cargo/pull/8987) |
| 60 | +- Updated libgit2, which brings in many fixes, particularly fixing a zlib |
| 61 | + error that occasionally appeared on 32-bit systems. |
| 62 | + [#8998](https://github.com/rust-lang/cargo/pull/8998) |
| 63 | +- Fixed stack overflow with a circular dev-dependency that uses the `links` |
| 64 | + field. |
| 65 | + [#8969](https://github.com/rust-lang/cargo/pull/8969) |
| 66 | +- Fixed `cargo publish` failing on some filesystems, particularly 9p on WSL2. |
| 67 | + [#8950](https://github.com/rust-lang/cargo/pull/8950) |
18 | 68 |
|
19 | 69 | ### Nightly only
|
20 | 70 | - Allow `resolver="1"` to specify the original feature resolution behavior.
|
|
23 | 73 | and `cargo:rustc-link-arg` build script options.
|
24 | 74 | [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#extra-link-arg)
|
25 | 75 | [#8441](https://github.com/rust-lang/cargo/pull/8441)
|
| 76 | +- Implemented external credential process support, and added `cargo logout`. |
| 77 | + ([RFC 2730](https://github.com/rust-lang/rfcs/blob/master/text/2730-cargo-token-from-process.md)) |
| 78 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process)) |
| 79 | + [#8934](https://github.com/rust-lang/cargo/pull/8934) |
| 80 | +- Fix panic with `-Zbuild-std` and no roots. |
| 81 | + [#8942](https://github.com/rust-lang/cargo/pull/8942) |
| 82 | +- Set docs.rs as the default extern-map for crates.io |
| 83 | + [#8877](https://github.com/rust-lang/cargo/pull/8877) |
26 | 84 |
|
27 | 85 | ## Cargo 1.49 (2020-12-31)
|
28 | 86 | [75615f8e...rust-1.49.0](https://github.com/rust-lang/cargo/compare/75615f8e...rust-1.49.0)
|
|
79 | 137 | - Fixed the new feature resolver downloading extra dependencies that weren't
|
80 | 138 | strictly necessary.
|
81 | 139 | [#8823](https://github.com/rust-lang/cargo/pull/8823)
|
82 |
| -- Vendored builds now work with `-Zbuild-std`. |
83 |
| - [#8834](https://github.com/rust-lang/cargo/pull/8834) |
84 | 140 |
|
85 | 141 | ## Cargo 1.48 (2020-11-19)
|
86 | 142 | [51b66125...rust-1.48.0](https://github.com/rust-lang/cargo/compare/51b66125...rust-1.48.0)
|
|
0 commit comments