Skip to content

Commit 570107f

Browse files
committed
Update changelog for 1.55
1 parent 5578567 commit 570107f

File tree

1 file changed

+109
-4
lines changed

1 file changed

+109
-4
lines changed

CHANGELOG.md

Lines changed: 109 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,55 @@
11
# Changelog
22

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+
334
## 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)
536

637
### Added
738

839
- The package definition in `cargo metadata` now includes the `"default_run"`
940
field from the manifest.
1041
[#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)
1153

1254
### Changed
1355

@@ -19,13 +61,48 @@
1961
a binary or library has been changed to respect the command-line flags
2062
instead of trying to guess which type it is.
2163
[#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)
22101

23102
### Fixed
24103

25104
- Fixed dep-info files including non-local build script paths.
26105
[#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)
29106
- Handle "jobs = 0" case in cargo config files
30107
[#9584](https://github.com/rust-lang/cargo/pull/9584)
31108
- Implement warning for ignored trailing arguments after `--`
@@ -34,12 +111,37 @@
34111
[#9566](https://github.com/rust-lang/cargo/pull/9566)
35112
- `cargo fix` now supports rustc's suggestions with multiple spans.
36113
[#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)
37122

38123
### Nightly only
39124

40125
- Enabled support for `cargo fix --edition` for 2021.
41126
[#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)
43145

44146
## Cargo 1.54 (2021-07-29)
45147
[4369396c...rust-1.54.0](https://github.com/rust-lang/cargo/compare/4369396c...rust-1.54.0)
@@ -81,6 +183,9 @@
81183
several other cleanups to make it more consistent with other VCS
82184
configurations.
83185
[#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)
84189

85190
### Fixed
86191

0 commit comments

Comments
 (0)