Skip to content

Commit 263cc2b

Browse files
committed
Auto merge of #10420 - ehuss:version-bump, r=alexcrichton
Bump to 0.62.0, update changelog
2 parents c7dbc42 + 019218f commit 263cc2b

File tree

4 files changed

+73
-29
lines changed

4 files changed

+73
-29
lines changed

CHANGELOG.md

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
# Changelog
22

3+
## Cargo 1.61 (2022-04-07)
4+
[ea2a21c9...HEAD](https://github.com/rust-lang/cargo/compare/ea2a21c9...HEAD)
5+
6+
### Added
7+
8+
### Changed
9+
10+
- `cargo test --no-run` will now display the path to the test executables.
11+
[#10346](https://github.com/rust-lang/cargo/pull/10346)
12+
13+
### Fixed
14+
15+
### Nightly only
16+
17+
- Added `-Z check-cfg-features` to enable compile-time checking of features
18+
[#10408](https://github.com/rust-lang/cargo/pull/10408)
19+
- Added `-Z bindeps` to support binary artifact dependencies (RFC-3028)
20+
[#9992](https://github.com/rust-lang/cargo/pull/9992)
21+
22+
323
## Cargo 1.60 (2022-04-07)
4-
[358e79fe...HEAD](https://github.com/rust-lang/cargo/compare/358e79fe...HEAD)
24+
[358e79fe...rust-1.60.0](https://github.com/rust-lang/cargo/compare/358e79fe...rust-1.60.0)
525

626
### Added
27+
728
- 🎉 Added the `dep:` prefix in the `[features]` table to refer to an optional
829
dependency. This allows creating feature names with the same name as a
930
dependency, and allows for "hiding" optional dependencies so that they do
@@ -15,24 +36,66 @@
1536
is already enabled by some other feature.
1637
[docs](https://doc.rust-lang.org/nightly/cargo/reference/features.html#dependency-features)
1738
[#10269](https://github.com/rust-lang/cargo/pull/10269)
39+
- 🎉 Added `--timings` option to generate an HTML report about build timing,
40+
concurrency, and CPU use.
41+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/timings.html)
42+
[#10245](https://github.com/rust-lang/cargo/pull/10245)
1843
- Added the `"v"` and `"features2"` fields to the registry index.
1944
The `"v"` field provides a method for compatibility with future changes to the index.
2045
[docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format)
2146
[#10269](https://github.com/rust-lang/cargo/pull/10269)
47+
- Added bash completion for `cargo clippy`
48+
[#10347](https://github.com/rust-lang/cargo/pull/10347)
49+
- Added bash completion for `cargo report`
50+
[#10295](https://github.com/rust-lang/cargo/pull/10295)
51+
- Added support to build scripts for `rustc-link-arg-tests`,
52+
`rustc-link-arg-examples`, and `rustc-link-arg-benches`.
53+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#outputs-of-the-build-script)
54+
[#10274](https://github.com/rust-lang/cargo/pull/10274)
2255

2356
### Changed
57+
2458
- Cargo now uses the clap 3 library for command-line argument parsing.
2559
[#10265](https://github.com/rust-lang/cargo/pull/10265)
2660
- The `build.pipelining` config option is now deprecated, pipelining will now
2761
always be enabled.
2862
[#10258](https://github.com/rust-lang/cargo/pull/10258)
63+
- `cargo new` will now generate a `.gitignore` which only ignores `Cargo.lock`
64+
in the root of the repo, instead of any directory.
65+
[#10379](https://github.com/rust-lang/cargo/pull/10379)
66+
- Improved startup time of bash completion.
67+
[#10365](https://github.com/rust-lang/cargo/pull/10365)
68+
- The `--features` flag is now honored when used with the `--all-features`
69+
flag, which allows enabling features from other packages.
70+
[#10337](https://github.com/rust-lang/cargo/pull/10337)
71+
- Cargo now uses a different TOML parser. This should not introduce any
72+
user-visible changes. This paves the way to support format-preserving
73+
programmatic modification of TOML files for supporting `cargo add` and other
74+
future enhancements.
75+
[#10086](https://github.com/rust-lang/cargo/pull/10086)
76+
- Setting a library to emit both a `dylib` and `cdylib` is now an error, as
77+
this combination is not supported.
78+
[#10243](https://github.com/rust-lang/cargo/pull/10243)
79+
- `cargo --list` now includes the `help` command.
80+
[#10300](https://github.com/rust-lang/cargo/pull/10300)
2981

3082
### Fixed
3183

84+
- Fixed running `cargo doc` on examples with dev-dependencies.
85+
[#10341](https://github.com/rust-lang/cargo/pull/10341)
86+
- Fixed `cargo install --path` for a path that is relative to a directory
87+
outside of the workspace in the current directory.
88+
[#10335](https://github.com/rust-lang/cargo/pull/10335)
89+
- `cargo test TEST_FILTER` should no longer build binaries that are explicitly
90+
disabled with `test = false`.
91+
[#10305](https://github.com/rust-lang/cargo/pull/10305)
92+
3293
### Nightly only
94+
3395
- Added `rustflags` option to a profile definition.
3496
[#10217](https://github.com/rust-lang/cargo/pull/10217)
35-
97+
- Changed `--config` to only support dotted keys.
98+
[#10176](https://github.com/rust-lang/cargo/pull/10176)
3699

37100
## Cargo 1.59 (2022-02-24)
38101
[7f08ace4...rust-1.59.0](https://github.com/rust-lang/cargo/compare/7f08ace4...rust-1.59.0)
@@ -43,6 +106,7 @@
43106
behavior for removing symbols and debug information from binaries.
44107
[docs](https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#strip)
45108
[#10088](https://github.com/rust-lang/cargo/pull/10088)
109+
[#10376](https://github.com/rust-lang/cargo/pull/10376)
46110
- 🎉 Added future incompatible reporting.
47111
This provides reporting for when a future change in `rustc` may cause a
48112
package or any of its dependencies to stop building.
@@ -69,6 +133,7 @@
69133
[#10193](https://github.com/rust-lang/cargo/pull/10193)
70134
- Removed the deprecated `--host` CLI option.
71135
[#10145](https://github.com/rust-lang/cargo/pull/10145)
136+
[#10327](https://github.com/rust-lang/cargo/pull/10327)
72137
- Cargo should now report its version to always be in sync with `rustc`.
73138
[#10178](https://github.com/rust-lang/cargo/pull/10178)
74139
- Added EOPNOTSUPP to ignored file locking errors, which is relevant to BSD
@@ -83,6 +148,7 @@
83148
- Fixed so that the `doc=false` setting is honored in the `[lib]` definition
84149
of a dependency.
85150
[#10201](https://github.com/rust-lang/cargo/pull/10201)
151+
[#10324](https://github.com/rust-lang/cargo/pull/10324)
86152
- The `"executable"` field in the JSON option was incorrectly including the
87153
path to `index.html` when documenting a binary. It is now null.
88154
[#10171](https://github.com/rust-lang/cargo/pull/10171)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo"
3-
version = "0.61.0"
3+
version = "0.62.0"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
homepage = "https://crates.io"

src/cargo/core/compiler/build_context/target_info.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ pub struct TargetInfo {
4747
pub rustdocflags: Vec<String>,
4848
/// Whether or not rustc supports the `-Csplit-debuginfo` flag.
4949
pub supports_split_debuginfo: bool,
50-
/// Whether or not rustc supports the `--json future-incompat` flag.
51-
pub supports_json_future_incompat: bool,
5250
}
5351

5452
/// Kind of each file generated by a Unit, part of `FileType`.
@@ -181,15 +179,6 @@ impl TargetInfo {
181179
)
182180
.is_ok();
183181

184-
let supports_json_future_incompat = rustc
185-
.cached_output(
186-
process
187-
.clone()
188-
.args(&["--error-format", "json", "--json", "future-incompat"]),
189-
extra_fingerprint,
190-
)
191-
.is_ok();
192-
193182
process.arg("--print=sysroot");
194183
process.arg("--print=cfg");
195184

@@ -264,7 +253,6 @@ impl TargetInfo {
264253
)?,
265254
cfg,
266255
supports_split_debuginfo,
267-
supports_json_future_incompat,
268256
})
269257
}
270258

src/cargo/core/compiler/mod.rs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ fn rustdoc(cx: &mut Context<'_, '_>, unit: &Unit) -> CargoResult<Work> {
650650
rustdoc.arg("--cfg").arg(&format!("feature=\"{}\"", feat));
651651
}
652652

653-
add_error_format_and_color(cx, &mut rustdoc, unit);
653+
add_error_format_and_color(cx, &mut rustdoc);
654654
add_allow_features(cx, &mut rustdoc);
655655

656656
if let Some(args) = cx.bcx.extra_args_for(unit) {
@@ -821,19 +821,9 @@ fn add_features(cx: &Context<'_, '_>, cmd: &mut ProcessBuilder, unit: &Unit) {
821821
/// intercepting messages like rmeta artifacts, etc. rustc includes a
822822
/// "rendered" field in the JSON message with the message properly formatted,
823823
/// which Cargo will extract and display to the user.
824-
fn add_error_format_and_color(cx: &Context<'_, '_>, cmd: &mut ProcessBuilder, unit: &Unit) {
824+
fn add_error_format_and_color(cx: &Context<'_, '_>, cmd: &mut ProcessBuilder) {
825825
cmd.arg("--error-format=json");
826-
let mut json = String::from("--json=diagnostic-rendered-ansi,artifacts");
827-
if cx
828-
.bcx
829-
.target_data
830-
.info(unit.kind)
831-
.supports_json_future_incompat
832-
{
833-
// Emit a future-incompat report (when supported by rustc), so we can report
834-
// future-incompat dependencies to the user
835-
json.push_str(",future-incompat");
836-
}
826+
let mut json = String::from("--json=diagnostic-rendered-ansi,artifacts,future-incompat");
837827

838828
match cx.bcx.build_config.message_format {
839829
MessageFormat::Short | MessageFormat::Json { short: true, .. } => {
@@ -895,7 +885,7 @@ fn build_base_args(
895885
edition.cmd_edition_arg(cmd);
896886

897887
add_path_args(bcx.ws, unit, cmd);
898-
add_error_format_and_color(cx, cmd, unit);
888+
add_error_format_and_color(cx, cmd);
899889
add_allow_features(cx, cmd);
900890

901891
let mut contains_dy_lib = false;

0 commit comments

Comments
 (0)