|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.56 (2021-10-21) |
| 4 | +[cebef295...HEAD](https://github.com/rust-lang/cargo/compare/cebef295...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +- Build scripts can now pass additional linker arguments for binaries or all |
| 9 | + linkable targets. [docs](https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#outputs-of-the-build-script) |
| 10 | + [#9557](https://github.com/rust-lang/cargo/pull/9557) |
| 11 | +- Added support for the `-p` flag for `cargo publish` to publish a specific |
| 12 | + package in a workspace. `cargo package` also now supports `-p` and |
| 13 | + `--workspace`. |
| 14 | + [#9559](https://github.com/rust-lang/cargo/pull/9559) |
| 15 | + |
| 16 | +### Changed |
| 17 | + |
| 18 | +- Doc tests now support the `-q` flag to show terse test output. |
| 19 | + [#9730](https://github.com/rust-lang/cargo/pull/9730) |
| 20 | +- `features` used in a `[replace]` table now issues a warning, as they are ignored. |
| 21 | + [#9681](https://github.com/rust-lang/cargo/pull/9681) |
| 22 | +- Changed so that only `wasm32-unknown-emscripten` executables are built |
| 23 | + without a hash in the filename. Previously it was all `wasm32` targets. |
| 24 | + Additionally, all `apple` binaries are now built with a hash in the |
| 25 | + filename. This allows multiple copies to be cached at once, and matches the |
| 26 | + behavior on other platforms (except `msvc`). |
| 27 | + [#9653](https://github.com/rust-lang/cargo/pull/9653) |
| 28 | + |
| 29 | +### Fixed |
| 30 | + |
| 31 | +### Nightly only |
| 32 | + |
| 33 | + |
3 | 34 | ## Cargo 1.55 (2021-09-09)
|
4 |
| -[aa8b0929...HEAD](https://github.com/rust-lang/cargo/compare/aa8b0929...HEAD) |
| 35 | +[aa8b0929...rust-1.55.0](https://github.com/rust-lang/cargo/compare/aa8b0929...rust-1.55.0) |
5 | 36 |
|
6 | 37 | ### Added
|
7 | 38 |
|
8 | 39 | - The package definition in `cargo metadata` now includes the `"default_run"`
|
9 | 40 | field from the manifest.
|
10 | 41 | [#9550](https://github.com/rust-lang/cargo/pull/9550)
|
| 42 | +- Build scripts now have access to the following environment variables: |
| 43 | + `RUSTC_WRAPPER`, `RUSTC_WORKSPACE_WRAPPER`, `CARGO_ENCODED_RUSTFLAGS`. |
| 44 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts) |
| 45 | + [#9601](https://github.com/rust-lang/cargo/pull/9601) |
| 46 | +- Added `cargo d` as an alias for `cargo doc`. |
| 47 | + [#9680](https://github.com/rust-lang/cargo/pull/9680) |
| 48 | +- Added `{lib}` to the `cargo tree --format` option to display the library |
| 49 | + name of a package. |
| 50 | + [#9663](https://github.com/rust-lang/cargo/pull/9663) |
| 51 | +- Added `members_mut` method to the `Workspace` API. |
| 52 | + [#9547](https://github.com/rust-lang/cargo/pull/9547) |
11 | 53 |
|
12 | 54 | ### Changed
|
13 | 55 |
|
|
19 | 61 | a binary or library has been changed to respect the command-line flags
|
20 | 62 | instead of trying to guess which type it is.
|
21 | 63 | [#9522](https://github.com/rust-lang/cargo/pull/9522)
|
| 64 | +- Registry names are now displayed instead of registry URLs when possible. |
| 65 | + [#9632](https://github.com/rust-lang/cargo/pull/9632) |
| 66 | +- Duplicate compiler diagnostics are no longer shown. This can often happen |
| 67 | + with `cargo test` which builds multiple copies of the same code in parallel. |
| 68 | + This also updates the warning summary to provide more context. |
| 69 | + [#9675](https://github.com/rust-lang/cargo/pull/9675) |
| 70 | +- The output for warnings or errors is now improved to be leaner, cleaner, and |
| 71 | + show more context. |
| 72 | + [#9655](https://github.com/rust-lang/cargo/pull/9655) |
| 73 | +- Network send errors are now treated as "spurious" which means they will be retried. |
| 74 | + [#9695](https://github.com/rust-lang/cargo/pull/9695) |
| 75 | +- Git keys (`branch`, `tag`, `rev`) on a non-git dependency are now an error. |
| 76 | + Additionally, specifying both `git` and `path` is now an error. |
| 77 | + [#9689](https://github.com/rust-lang/cargo/pull/9689) |
| 78 | +- Specifying a dependency without any keys is now an error. |
| 79 | + [#9686](https://github.com/rust-lang/cargo/pull/9686) |
| 80 | +- The resolver now prefers to use `[patch]` table entries of dependencies when |
| 81 | + possible. |
| 82 | + [#9639](https://github.com/rust-lang/cargo/pull/9639) |
| 83 | +- Package name typo errors in dependencies are now displayed aligned with the |
| 84 | + original to help make it easier to see the difference. |
| 85 | + [#9665](https://github.com/rust-lang/cargo/pull/9665) |
| 86 | +- Windows platforms may now warn on environment variables that have the wrong case. |
| 87 | + [#9654](https://github.com/rust-lang/cargo/pull/9654) |
| 88 | +- `features` used in a `[patch]` table now issues a warning, as they are ignored. |
| 89 | + [#9666](https://github.com/rust-lang/cargo/pull/9666) |
| 90 | +- The `target` directory is now excluded from content indexing on Windows. |
| 91 | + [#9635](https://github.com/rust-lang/cargo/pull/9635) |
| 92 | +- When `Cargo.toml` is not found, the error message now detects if it was |
| 93 | + misnamed with a lowercase `c` to suggest the correct form. |
| 94 | + [#9607](https://github.com/rust-lang/cargo/pull/9607) |
| 95 | +- Building `diesel` with the new resolver displays a compatibility notice. |
| 96 | + [#9602](https://github.com/rust-lang/cargo/pull/9602) |
| 97 | +- Updated the `opener` dependency, which handles opening a web browser, which |
| 98 | + includes several changes, such as new behavior when run on WSL, and using |
| 99 | + the system `xdg-open` on Linux. |
| 100 | + [#9583](https://github.com/rust-lang/cargo/pull/9583) |
22 | 101 |
|
23 | 102 | ### Fixed
|
24 | 103 |
|
25 | 104 | - Fixed dep-info files including non-local build script paths.
|
26 | 105 | [#9596](https://github.com/rust-lang/cargo/pull/9596)
|
27 |
| -- Relaxed doc collision error to retain old behavior. |
28 |
| - [#9595](https://github.com/rust-lang/cargo/pull/9595) |
29 | 106 | - Handle "jobs = 0" case in cargo config files
|
30 | 107 | [#9584](https://github.com/rust-lang/cargo/pull/9584)
|
31 | 108 | - Implement warning for ignored trailing arguments after `--`
|
|
34 | 111 | [#9566](https://github.com/rust-lang/cargo/pull/9566)
|
35 | 112 | - `cargo fix` now supports rustc's suggestions with multiple spans.
|
36 | 113 | [#9567](https://github.com/rust-lang/cargo/pull/9567)
|
| 114 | +- `cargo fix` now fixes each target serially instead of in parallel to avoid |
| 115 | + problems with fixing the same file concurrently. |
| 116 | + [#9677](https://github.com/rust-lang/cargo/pull/9677) |
| 117 | +- Changes to the target `linker` config value now trigger a rebuild. |
| 118 | + [#9647](https://github.com/rust-lang/cargo/pull/9647) |
| 119 | +- Git unstaged deleted files are now ignored when using the `--allow-dirty` |
| 120 | + flag with `cargo publish` or `cargo package`. |
| 121 | + [#9645](https://github.com/rust-lang/cargo/pull/9645) |
37 | 122 |
|
38 | 123 | ### Nightly only
|
39 | 124 |
|
40 | 125 | - Enabled support for `cargo fix --edition` for 2021.
|
41 | 126 | [#9588](https://github.com/rust-lang/cargo/pull/9588)
|
42 |
| - |
| 127 | +- Several changes to named profiles. |
| 128 | + [#9685](https://github.com/rust-lang/cargo/pull/9685) |
| 129 | +- Extended instructions on what to do when running `cargo fix --edition` on |
| 130 | + the 2021 edition. |
| 131 | + [#9694](https://github.com/rust-lang/cargo/pull/9694) |
| 132 | +- Multiple updates to error messages using nightly features to help better |
| 133 | + explain the situation. |
| 134 | + [#9657](https://github.com/rust-lang/cargo/pull/9657) |
| 135 | +- Adjusted the edition 2021 resolver diff report. |
| 136 | + [#9649](https://github.com/rust-lang/cargo/pull/9649) |
| 137 | +- Fixed error using `cargo doc --open` with `doc.extern-map`. |
| 138 | + [#9531](https://github.com/rust-lang/cargo/pull/9531) |
| 139 | +- Unified weak and namespaced features. |
| 140 | + [#9574](https://github.com/rust-lang/cargo/pull/9574) |
| 141 | +- Various updates to future-incompatible reporting. |
| 142 | + [#9606](https://github.com/rust-lang/cargo/pull/9606) |
| 143 | +- `[env]` environment variables are not allowed to set vars set by Cargo. |
| 144 | + [#9579](https://github.com/rust-lang/cargo/pull/9579) |
43 | 145 |
|
44 | 146 | ## Cargo 1.54 (2021-07-29)
|
45 | 147 | [4369396c...rust-1.54.0](https://github.com/rust-lang/cargo/compare/4369396c...rust-1.54.0)
|
|
81 | 183 | several other cleanups to make it more consistent with other VCS
|
82 | 184 | configurations.
|
83 | 185 | [#9469](https://github.com/rust-lang/cargo/pull/9469)
|
| 186 | +- `rustc-cdylib-link-arg` applying transitively displays a warning that this |
| 187 | + was not intended, and may be an error in the future. |
| 188 | + [#9563](https://github.com/rust-lang/cargo/pull/9563) |
84 | 189 |
|
85 | 190 | ### Fixed
|
86 | 191 |
|
|
0 commit comments