|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.53 (2021-06-17) |
| 4 | +[90691f2b...HEAD](https://github.com/rust-lang/cargo/compare/90691f2b...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +- 🔥 macOS targets now default to `unpacked` debuginfo. |
| 11 | + [#9298](https://github.com/rust-lang/cargo/pull/9298) |
| 12 | +- ❗ The `authors` field is no longer included in `Cargo.toml` for new |
| 13 | + projects. |
| 14 | + [#9282](https://github.com/rust-lang/cargo/pull/9282) |
| 15 | +- `cargo update` may now work with the `--offline` flag. |
| 16 | + [#9279](https://github.com/rust-lang/cargo/pull/9279) |
| 17 | + |
| 18 | +### Fixed |
| 19 | + |
| 20 | +### Nightly only |
| 21 | +- Fixed config includes not working. |
| 22 | + [#9299](https://github.com/rust-lang/cargo/pull/9299) |
| 23 | +- Emit note when `--future-incompat-report` had nothing to report. |
| 24 | + [#9263](https://github.com/rust-lang/cargo/pull/9263) |
| 25 | +- Error messages for nightly features flags (like `-Z` and `cargo-features`) |
| 26 | + should now provide more information. |
| 27 | + [#9290](https://github.com/rust-lang/cargo/pull/9290) |
| 28 | + |
3 | 29 | ## Cargo 1.52 (2021-05-06)
|
4 |
| -[34170fcd...HEAD](https://github.com/rust-lang/cargo/compare/34170fcd...HEAD) |
| 30 | +[34170fcd...rust-1.52.0](https://github.com/rust-lang/cargo/compare/34170fcd...rust-1.52.0) |
5 | 31 |
|
6 | 32 | ### Added
|
| 33 | +- Added the `"manifest_path"` field to JSON messages for a package. |
| 34 | + [#9022](https://github.com/rust-lang/cargo/pull/9022) |
| 35 | + [#9247](https://github.com/rust-lang/cargo/pull/9247) |
7 | 36 |
|
8 | 37 | ### Changed
|
9 | 38 | - 🔥 Cargo now supports git repositories where the default `HEAD` branch is not
|
10 | 39 | "master". This also includes a switch to the version 3 `Cargo.lock` format
|
11 | 40 | which can handle default branches correctly.
|
12 | 41 | [#9133](https://github.com/rust-lang/cargo/pull/9133)
|
| 42 | +- Build scripts are now forbidden from setting `RUSTC_BOOTSTRAP` on stable. |
| 43 | + [#9181](https://github.com/rust-lang/cargo/pull/9181) |
| 44 | +- crates.io now supports SPDX 3.11 licenses. |
| 45 | + [#9209](https://github.com/rust-lang/cargo/pull/9209) |
| 46 | +- An error is now reported if `CARGO_TARGET_DIR` is an empty string. |
| 47 | + [#8939](https://github.com/rust-lang/cargo/pull/8939) |
| 48 | +- Doc tests now pass the `--message-format` flag into the test so that the |
| 49 | + "short" format can now be used for doc tests. |
| 50 | + [#9128](https://github.com/rust-lang/cargo/pull/9128) |
| 51 | +- `cargo test` now prints a clearer indicator of which target is currently running. |
| 52 | + [#9195](https://github.com/rust-lang/cargo/pull/9195) |
| 53 | +- The `CARGO_TARGET_<TRIPLE>` environment variable will now issue a warning if |
| 54 | + it is using lowercase letters. |
| 55 | + [#9169](https://github.com/rust-lang/cargo/pull/9169) |
| 56 | +- `cargo doc` will now erase the `doc` directory when switching between |
| 57 | + different toolchain versions. There are shared, unversioned files (such as |
| 58 | + the search index) that can become broken when using different versions. |
| 59 | + [#8640](https://github.com/rust-lang/cargo/pull/8640) |
13 | 60 |
|
14 | 61 | ### Fixed
|
| 62 | +- Fixed publication of packages with metadata and resolver fields in `Cargo.toml`. |
| 63 | + [#9300](https://github.com/rust-lang/cargo/pull/9300) |
| 64 | + [#9304](https://github.com/rust-lang/cargo/pull/9304) |
| 65 | +- Fixed logic for determining prefer-dynamic for a dylib which differed in a |
| 66 | + workspace vs a single package. |
| 67 | + [#9252](https://github.com/rust-lang/cargo/pull/9252) |
| 68 | +- Fixed an issue where exclusive target-specific dependencies that overlapped |
| 69 | + across dependency kinds (like regular and build-dependencies) would |
| 70 | + incorrectly include the dependencies in both. |
| 71 | + [#9255](https://github.com/rust-lang/cargo/pull/9255) |
| 72 | +- Fixed panic with certain styles of Package IDs when passed to the `-p` flag. |
| 73 | + [#9188](https://github.com/rust-lang/cargo/pull/9188) |
| 74 | +- When running cargo with output not going to a TTY, and with the progress bar |
| 75 | + and color force-enabled, the output will now correctly clear the progress |
| 76 | + line. |
| 77 | + [#9231](https://github.com/rust-lang/cargo/pull/9231) |
| 78 | +- Error instead of panic when JSON may contain non-utf8 paths. |
| 79 | + [#9226](https://github.com/rust-lang/cargo/pull/9226) |
| 80 | +- Fixed a hang that can happen on broken stderr. |
| 81 | + [#9201](https://github.com/rust-lang/cargo/pull/9201) |
| 82 | +- Fixed thin-local LTO not being disabled correctly when `lto=off` is set. |
| 83 | + [#9182](https://github.com/rust-lang/cargo/pull/9182) |
15 | 84 |
|
16 | 85 | ### Nightly only
|
17 | 86 | - The `strip` profile option now supports `true` and `false` values.
|
18 | 87 | [#9153](https://github.com/rust-lang/cargo/pull/9153)
|
| 88 | +- `cargo fix --edition` now displays a report when switching to 2021 if the |
| 89 | + new resolver changes features. |
| 90 | + [#9268](https://github.com/rust-lang/cargo/pull/9268) |
| 91 | +- Added `[patch]` table support in `.cargo/config` files. |
| 92 | + [#9204](https://github.com/rust-lang/cargo/pull/9204) |
| 93 | +- Added `cargo describe-future-incompatibilities` for generating a report on |
| 94 | + dependencies that contain future-incompatible warnings. |
| 95 | + [#8825](https://github.com/rust-lang/cargo/pull/8825) |
| 96 | +- Added easier support for testing the 2021 edition. |
| 97 | + [#9184](https://github.com/rust-lang/cargo/pull/9184) |
| 98 | +- Switch the default resolver to "2" in the 2021 edition. |
| 99 | + [#9184](https://github.com/rust-lang/cargo/pull/9184) |
| 100 | +- `cargo fix --edition` now supports 2021. |
| 101 | + [#9184](https://github.com/rust-lang/cargo/pull/9184) |
| 102 | +- Added `--print` flag to `cargo rustc` to pass along to `rustc` to display |
| 103 | + information from rustc. |
| 104 | + [#9002](https://github.com/rust-lang/cargo/pull/9002) |
| 105 | +- Added `-Zdoctest-in-workspace` for changing the directory where doctests are |
| 106 | + *run* versus where they are *compiled*. |
| 107 | + [#9105](https://github.com/rust-lang/cargo/pull/9105) |
| 108 | +- Added support for an `[env]` section in `.cargo/config.toml` to set |
| 109 | + environment variables when running cargo. |
| 110 | + [#9175](https://github.com/rust-lang/cargo/pull/9175) |
| 111 | +- Added a schema field and `features2` field to the index. |
| 112 | + [#9161](https://github.com/rust-lang/cargo/pull/9161) |
| 113 | +- Changes to JSON spec targets will now trigger a rebuild. |
| 114 | + [#9223](https://github.com/rust-lang/cargo/pull/9223) |
19 | 115 |
|
20 | 116 | ## Cargo 1.51 (2021-03-25)
|
21 | 117 | [75d5d8cf...rust-1.51.0](https://github.com/rust-lang/cargo/compare/75d5d8cf...rust-1.51.0)
|
|
72 | 168 | [#9059](https://github.com/rust-lang/cargo/pull/9059)
|
73 | 169 | - Fixed to use `http.proxy` setting in `~/.gitconfig`.
|
74 | 170 | [#8986](https://github.com/rust-lang/cargo/pull/8986)
|
| 171 | +- Fixed --feature pkg/feat for V1 resolver for non-member. |
| 172 | + [#9275](https://github.com/rust-lang/cargo/pull/9275) |
| 173 | + [#9277](https://github.com/rust-lang/cargo/pull/9277) |
| 174 | +- Fixed panic in `cargo doc` when there are colliding output filenames in a workspace. |
| 175 | + [#9276](https://github.com/rust-lang/cargo/pull/9276) |
| 176 | + [#9277](https://github.com/rust-lang/cargo/pull/9277) |
| 177 | +- Fixed `cargo install` from exiting with success if one of several packages |
| 178 | + did not install successfully. |
| 179 | + [#9185](https://github.com/rust-lang/cargo/pull/9185) |
| 180 | + [#9196](https://github.com/rust-lang/cargo/pull/9196) |
| 181 | +- Fix panic with doc collision orphan. |
| 182 | + [#9142](https://github.com/rust-lang/cargo/pull/9142) |
| 183 | + [#9196](https://github.com/rust-lang/cargo/pull/9196) |
75 | 184 |
|
76 | 185 | ### Nightly only
|
77 | 186 | - Removed the `publish-lockfile` unstable feature, it was stabilized without
|
|
85 | 194 | [#8922](https://github.com/rust-lang/cargo/pull/8922)
|
86 | 195 | - Added support for the `rust-version` field in project metadata.
|
87 | 196 | [#8037](https://github.com/rust-lang/cargo/pull/8037)
|
| 197 | +- Added a schema field to the index. |
| 198 | + [#9161](https://github.com/rust-lang/cargo/pull/9161) |
| 199 | + [#9196](https://github.com/rust-lang/cargo/pull/9196) |
88 | 200 |
|
89 | 201 | ## Cargo 1.50 (2021-02-11)
|
90 | 202 | [8662ab42...rust-1.50.0](https://github.com/rust-lang/cargo/compare/8662ab42...rust-1.50.0)
|
|
0 commit comments