|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.52 (2021-05-06) |
| 4 | +[34170fcd...HEAD](https://github.com/rust-lang/cargo/compare/34170fcd...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | +- 🔥 Cargo now supports git repositories where the default `HEAD` branch is not |
| 10 | + "master". This also includes a switch to the version 3 `Cargo.lock` format |
| 11 | + which can handle default branches correctly. |
| 12 | + [#9133](https://github.com/rust-lang/cargo/pull/9133) |
| 13 | + |
| 14 | +### Fixed |
| 15 | + |
| 16 | +### Nightly only |
| 17 | +- The `strip` profile option now supports `true` and `false` values. |
| 18 | + [#9153](https://github.com/rust-lang/cargo/pull/9153) |
| 19 | + |
3 | 20 | ## Cargo 1.51 (2021-03-25)
|
4 |
| -[75d5d8cf...HEAD](https://github.com/rust-lang/cargo/compare/75d5d8cf...HEAD) |
| 21 | +[75d5d8cf...rust-1.51.0](https://github.com/rust-lang/cargo/compare/75d5d8cf...rust-1.51.0) |
5 | 22 |
|
6 | 23 | ### Added
|
| 24 | +- 🔥 Added the `split-debuginfo` profile option. |
| 25 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#split-debuginfo) |
| 26 | + [#9112](https://github.com/rust-lang/cargo/pull/9112) |
| 27 | +- Added the `path` field to `cargo metadata` for the package dependencies list |
| 28 | + to show the path for "path" dependencies. |
| 29 | + [#8994](https://github.com/rust-lang/cargo/pull/8994) |
| 30 | +- 🔥 Added a new feature resolver, and new CLI feature flag behavior. See the |
| 31 | + new [features](https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2) |
| 32 | + and [resolver](https://doc.rust-lang.org/nightly/cargo/reference/resolver.html#feature-resolver-version-2) |
| 33 | + documentation for the `resolver = "2"` option. See the |
| 34 | + [CLI](https://doc.rust-lang.org/nightly/cargo/reference/features.html#command-line-feature-options) |
| 35 | + and [resolver 2 CLI](https://doc.rust-lang.org/nightly/cargo/reference/features.html#resolver-version-2-command-line-flags) |
| 36 | + options for the new CLI behavior. And, finally, see |
| 37 | + [RFC 2957](https://github.com/rust-lang/rfcs/blob/master/text/2957-cargo-features2.md) |
| 38 | + for a detailed look at what has changed. |
| 39 | + [#8997](https://github.com/rust-lang/cargo/pull/8997) |
7 | 40 |
|
8 | 41 | ### Changed
|
| 42 | +- `cargo install --locked` now emits a warning if `Cargo.lock` is not found. |
| 43 | + [#9108](https://github.com/rust-lang/cargo/pull/9108) |
| 44 | +- Unknown or ambiguous package IDs passed on the command-line now display |
| 45 | + suggestions for the correct package ID. |
| 46 | + [#9095](https://github.com/rust-lang/cargo/pull/9095) |
| 47 | +- Slightly optimize `cargo vendor` |
| 48 | + [#8937](https://github.com/rust-lang/cargo/pull/8937) |
| 49 | + [#9131](https://github.com/rust-lang/cargo/pull/9131) |
| 50 | + [#9132](https://github.com/rust-lang/cargo/pull/9132) |
9 | 51 |
|
10 | 52 | ### Fixed
|
| 53 | +- Fixed environment variables and cfg settings emitted by a build script that |
| 54 | + are set for `cargo test` and `cargo run` when the build script runs multiple |
| 55 | + times during the same build session. |
| 56 | + [#9122](https://github.com/rust-lang/cargo/pull/9122) |
| 57 | +- Fixed a panic with `cargo doc` and the new feature resolver. This also |
| 58 | + introduces some heuristics to try to avoid path collisions with `rustdoc` by |
| 59 | + only documenting one variant of a package if there are multiple (such as |
| 60 | + multiple versions, or the same package shared for host and target |
| 61 | + platforms). |
| 62 | + [#9077](https://github.com/rust-lang/cargo/pull/9077) |
| 63 | +- Fixed a bug in Cargo's cyclic dep graph detection that caused a stack |
| 64 | + overflow. |
| 65 | + [#9075](https://github.com/rust-lang/cargo/pull/9075) |
| 66 | +- Fixed build script `links` environment variables (`DEP_*`) not showing up |
| 67 | + for testing packages in some cases. |
| 68 | + [#9065](https://github.com/rust-lang/cargo/pull/9065) |
| 69 | +- Fixed features being selected in a nondeterministic way for a specific |
| 70 | + scenario when building an entire workspace with all targets with a |
| 71 | + proc-macro in the workspace with `resolver="2"`. |
| 72 | + [#9059](https://github.com/rust-lang/cargo/pull/9059) |
| 73 | +- Fixed to use `http.proxy` setting in `~/.gitconfig`. |
| 74 | + [#8986](https://github.com/rust-lang/cargo/pull/8986) |
11 | 75 |
|
12 | 76 | ### Nightly only
|
| 77 | +- Removed the `publish-lockfile` unstable feature, it was stabilized without |
| 78 | + the need for an explicit flag 1.5 years ago. |
| 79 | + [#9092](https://github.com/rust-lang/cargo/pull/9092) |
| 80 | +- Added better diagnostics, help messages, and documentation for nightly |
| 81 | + features (such as those passed with the `-Z` flag, or specified with |
| 82 | + `cargo-features` in `Cargo.toml`). |
| 83 | + [#9092](https://github.com/rust-lang/cargo/pull/9092) |
| 84 | +- Added support for Rust edition 2021. |
| 85 | + [#8922](https://github.com/rust-lang/cargo/pull/8922) |
| 86 | +- Added support for the `rust-version` field in project metadata. |
| 87 | + [#8037](https://github.com/rust-lang/cargo/pull/8037) |
13 | 88 |
|
14 | 89 | ## Cargo 1.50 (2021-02-11)
|
15 | 90 | [8662ab42...rust-1.50.0](https://github.com/rust-lang/cargo/compare/8662ab42...rust-1.50.0)
|
|
39 | 114 | - The `rerun-if-changed` build script directive can now point to a directory,
|
40 | 115 | in which case Cargo will check if any file in that directory changes.
|
41 | 116 | [#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 | 117 | - If Cargo cannot determine the username or email address, `cargo new` will no
|
45 | 118 | longer fail, and instead create an empty authors list.
|
46 | 119 | [#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 | 120 | - The progress bar width has been reduced to provide more room to display the
|
50 | 121 | crates currently being built.
|
51 | 122 | [#8892](https://github.com/rust-lang/cargo/pull/8892)
|
|
112 | 183 | [#8814](https://github.com/rust-lang/cargo/pull/8814)
|
113 | 184 | - `-p` without a value will now print a list of workspace package names.
|
114 | 185 | [#8808](https://github.com/rust-lang/cargo/pull/8808)
|
| 186 | +- Add period to allowed feature name characters. |
| 187 | + [#8932](https://github.com/rust-lang/cargo/pull/8932) |
| 188 | + [#8943](https://github.com/rust-lang/cargo/pull/8943) |
115 | 189 |
|
116 | 190 | ### Fixed
|
117 | 191 | - Fixed building a library with both "dylib" and "rlib" crate types with LTO enabled.
|
|
0 commit comments