Skip to content

Commit 6d19e80

Browse files
committed
Auto merge of #10294 - ehuss:version-bump, r=Eh2406
Bump to 0.61.0, update changelog
2 parents 203f36e + 171f67d commit 6d19e80

File tree

3 files changed

+87
-23
lines changed

3 files changed

+87
-23
lines changed

CHANGELOG.md

+85-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,98 @@
11
# Changelog
22

3+
## Cargo 1.60 (2022-04-07)
4+
[358e79fe...HEAD](https://github.com/rust-lang/cargo/compare/358e79fe...HEAD)
5+
6+
### Added
7+
- 🎉 Added the `dep:` prefix in the `[features]` table to refer to an optional
8+
dependency. This allows creating feature names with the same name as a
9+
dependency, and allows for "hiding" optional dependencies so that they do
10+
not implicitly expose a feature name.
11+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/features.html#optional-dependencies)
12+
[#10269](https://github.com/rust-lang/cargo/pull/10269)
13+
- 🎉 Added the `dep-name?/feature-name` syntax to the `[features]` table to
14+
only enable the feature `feature-name` if the optional dependency `dep-name`
15+
is already enabled by some other feature.
16+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/features.html#dependency-features)
17+
[#10269](https://github.com/rust-lang/cargo/pull/10269)
18+
- Added the `"v"` and `"features2"` fields to the registry index.
19+
The `"v"` field provides a method for compatibility with future changes to the index.
20+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format)
21+
[#10269](https://github.com/rust-lang/cargo/pull/10269)
22+
23+
### Changed
24+
- Cargo now uses the clap 3 library for command-line argument parsing.
25+
[#10265](https://github.com/rust-lang/cargo/pull/10265)
26+
- The `build.pipelining` config option is now deprecated, pipelining will now
27+
always be enabled.
28+
[#10258](https://github.com/rust-lang/cargo/pull/10258)
29+
30+
### Fixed
31+
32+
### Nightly only
33+
- Added `rustflags` option to a profile definition.
34+
[#10217](https://github.com/rust-lang/cargo/pull/10217)
35+
36+
337
## Cargo 1.59 (2022-02-24)
4-
[7f08ace4...HEAD](https://github.com/rust-lang/cargo/compare/7f08ace4...HEAD)
38+
[7f08ace4...rust-1.59.0](https://github.com/rust-lang/cargo/compare/7f08ace4...rust-1.59.0)
539

640
### Added
741

42+
- 🎉 The `strip` option can now be specified in a profile to specify the
43+
behavior for removing symbols and debug information from binaries.
44+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#strip)
45+
[#10088](https://github.com/rust-lang/cargo/pull/10088)
46+
- 🎉 Added future incompatible reporting.
47+
This provides reporting for when a future change in `rustc` may cause a
48+
package or any of its dependencies to stop building.
49+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/future-incompat-report.html)
50+
[#10165](https://github.com/rust-lang/cargo/pull/10165)
51+
- SSH authentication on Windows now supports ssh-agent.
52+
[docs](https://doc.rust-lang.org/nightly/cargo/appendix/git-authentication.html#ssh-authentication)
53+
[#10248](https://github.com/rust-lang/cargo/pull/10248)
54+
- Added `term.quiet` configuration option to enable the `--quiet` behavior
55+
from a config file.
56+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#termquiet)
57+
[#10152](https://github.com/rust-lang/cargo/pull/10152)
58+
- Added `-r` CLI option as an alias for `--release`.
59+
[#10133](https://github.com/rust-lang/cargo/pull/10133)
60+
861
### Changed
962

63+
- Scanning the package directory should now be resilient to errors, such as
64+
filesystem loops or access issues.
65+
[#10188](https://github.com/rust-lang/cargo/pull/10188)
66+
[#10214](https://github.com/rust-lang/cargo/pull/10214)
67+
[#10286](https://github.com/rust-lang/cargo/pull/10286)
68+
- `cargo help <alias>` will now show the target of the alias.
69+
[#10193](https://github.com/rust-lang/cargo/pull/10193)
70+
- Removed the deprecated `--host` CLI option.
71+
[#10145](https://github.com/rust-lang/cargo/pull/10145)
72+
- Cargo should now report its version to always be in sync with `rustc`.
73+
[#10178](https://github.com/rust-lang/cargo/pull/10178)
74+
- Added EOPNOTSUPP to ignored file locking errors, which is relevant to BSD
75+
operating systems.
76+
[#10157](https://github.com/rust-lang/cargo/pull/10157)
77+
1078
### Fixed
1179

80+
- macOS: Fixed an issue where running an executable would sporadically be
81+
killed by the kernel (likely starting in macOS 12).
82+
[#10196](https://github.com/rust-lang/cargo/pull/10196)
83+
- Fixed so that the `doc=false` setting is honored in the `[lib]` definition
84+
of a dependency.
85+
[#10201](https://github.com/rust-lang/cargo/pull/10201)
86+
- The `"executable"` field in the JSON option was incorrectly including the
87+
path to `index.html` when documenting a binary. It is now null.
88+
[#10171](https://github.com/rust-lang/cargo/pull/10171)
89+
- Documenting a binary now waits for the package library to finish documenting
90+
before starting. This fixes some race conditions if the binary has intra-doc
91+
links to the library.
92+
[#10172](https://github.com/rust-lang/cargo/pull/10172)
93+
- Fixed panic when displaying help text to a closed pipe.
94+
[#10164](https://github.com/rust-lang/cargo/pull/10164)
95+
1296
### Nightly only
1397
- Added the `--crate-type` flag to `cargo rustc`.
1498
[#10093](https://github.com/rust-lang/cargo/pull/10093)

Cargo.toml

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

tests/testsuite/profiles.rs

+1-21
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use std::env;
44

5-
use cargo_test_support::{is_nightly, project};
5+
use cargo_test_support::project;
66

77
#[cargo_test]
88
fn profile_overrides() {
@@ -471,11 +471,6 @@ fn thin_lto_works() {
471471

472472
#[cargo_test]
473473
fn strip_works() {
474-
if !is_nightly() {
475-
// rustc 1.58 stabilized -C strip; disable the test until that ships.
476-
return;
477-
}
478-
479474
let p = project()
480475
.file(
481476
"Cargo.toml",
@@ -504,11 +499,6 @@ fn strip_works() {
504499

505500
#[cargo_test]
506501
fn strip_passes_unknown_option_to_rustc() {
507-
if !is_nightly() {
508-
// rustc 1.58 stabilized -C strip; disable the test until that ships.
509-
return;
510-
}
511-
512502
let p = project()
513503
.file(
514504
"Cargo.toml",
@@ -538,11 +528,6 @@ error: incorrect value `unknown` for [..] `strip` [..] was expected
538528

539529
#[cargo_test]
540530
fn strip_accepts_true_to_strip_symbols() {
541-
if !is_nightly() {
542-
// rustc 1.58 stabilized -C strip; disable the test until that ships.
543-
return;
544-
}
545-
546531
let p = project()
547532
.file(
548533
"Cargo.toml",
@@ -571,11 +556,6 @@ fn strip_accepts_true_to_strip_symbols() {
571556

572557
#[cargo_test]
573558
fn strip_accepts_false_to_disable_strip() {
574-
if !is_nightly() {
575-
// rustc 1.58 stabilized -C strip; disable the test until that ships.
576-
return;
577-
}
578-
579559
let p = project()
580560
.file(
581561
"Cargo.toml",

0 commit comments

Comments
 (0)