Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to 0.61.0, update changelog #10294

Merged
merged 2 commits into from
Jan 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 85 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,98 @@
# Changelog

## Cargo 1.60 (2022-04-07)
[358e79fe...HEAD](https://github.com/rust-lang/cargo/compare/358e79fe...HEAD)

### Added
- 🎉 Added the `dep:` prefix in the `[features]` table to refer to an optional
dependency. This allows creating feature names with the same name as a
dependency, and allows for "hiding" optional dependencies so that they do
not implicitly expose a feature name.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/features.html#optional-dependencies)
[#10269](https://github.com/rust-lang/cargo/pull/10269)
- 🎉 Added the `dep-name?/feature-name` syntax to the `[features]` table to
only enable the feature `feature-name` if the optional dependency `dep-name`
is already enabled by some other feature.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/features.html#dependency-features)
[#10269](https://github.com/rust-lang/cargo/pull/10269)
- Added the `"v"` and `"features2"` fields to the registry index.
The `"v"` field provides a method for compatibility with future changes to the index.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format)
[#10269](https://github.com/rust-lang/cargo/pull/10269)

### Changed
- Cargo now uses the clap 3 library for command-line argument parsing.
[#10265](https://github.com/rust-lang/cargo/pull/10265)
- The `build.pipelining` config option is now deprecated, pipelining will now
always be enabled.
[#10258](https://github.com/rust-lang/cargo/pull/10258)

### Fixed

### Nightly only
- Added `rustflags` option to a profile definition.
[#10217](https://github.com/rust-lang/cargo/pull/10217)


## Cargo 1.59 (2022-02-24)
[7f08ace4...HEAD](https://github.com/rust-lang/cargo/compare/7f08ace4...HEAD)
[7f08ace4...rust-1.59.0](https://github.com/rust-lang/cargo/compare/7f08ace4...rust-1.59.0)

### Added

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

### Changed

- Scanning the package directory should now be resilient to errors, such as
filesystem loops or access issues.
[#10188](https://github.com/rust-lang/cargo/pull/10188)
[#10214](https://github.com/rust-lang/cargo/pull/10214)
[#10286](https://github.com/rust-lang/cargo/pull/10286)
- `cargo help <alias>` will now show the target of the alias.
[#10193](https://github.com/rust-lang/cargo/pull/10193)
- Removed the deprecated `--host` CLI option.
[#10145](https://github.com/rust-lang/cargo/pull/10145)
- Cargo should now report its version to always be in sync with `rustc`.
[#10178](https://github.com/rust-lang/cargo/pull/10178)
- Added EOPNOTSUPP to ignored file locking errors, which is relevant to BSD
operating systems.
[#10157](https://github.com/rust-lang/cargo/pull/10157)

### Fixed

- macOS: Fixed an issue where running an executable would sporadically be
killed by the kernel (likely starting in macOS 12).
[#10196](https://github.com/rust-lang/cargo/pull/10196)
- Fixed so that the `doc=false` setting is honored in the `[lib]` definition
of a dependency.
[#10201](https://github.com/rust-lang/cargo/pull/10201)
- The `"executable"` field in the JSON option was incorrectly including the
path to `index.html` when documenting a binary. It is now null.
[#10171](https://github.com/rust-lang/cargo/pull/10171)
- Documenting a binary now waits for the package library to finish documenting
before starting. This fixes some race conditions if the binary has intra-doc
links to the library.
[#10172](https://github.com/rust-lang/cargo/pull/10172)
- Fixed panic when displaying help text to a closed pipe.
[#10164](https://github.com/rust-lang/cargo/pull/10164)

### Nightly only
- Added the `--crate-type` flag to `cargo rustc`.
[#10093](https://github.com/rust-lang/cargo/pull/10093)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo"
version = "0.60.0"
version = "0.61.0"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://crates.io"
Expand Down
22 changes: 1 addition & 21 deletions tests/testsuite/profiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::env;

use cargo_test_support::{is_nightly, project};
use cargo_test_support::project;

#[cargo_test]
fn profile_overrides() {
Expand Down Expand Up @@ -471,11 +471,6 @@ fn thin_lto_works() {

#[cargo_test]
fn strip_works() {
if !is_nightly() {
// rustc 1.58 stabilized -C strip; disable the test until that ships.
return;
}

let p = project()
.file(
"Cargo.toml",
Expand Down Expand Up @@ -504,11 +499,6 @@ fn strip_works() {

#[cargo_test]
fn strip_passes_unknown_option_to_rustc() {
if !is_nightly() {
// rustc 1.58 stabilized -C strip; disable the test until that ships.
return;
}

let p = project()
.file(
"Cargo.toml",
Expand Down Expand Up @@ -538,11 +528,6 @@ error: incorrect value `unknown` for [..] `strip` [..] was expected

#[cargo_test]
fn strip_accepts_true_to_strip_symbols() {
if !is_nightly() {
// rustc 1.58 stabilized -C strip; disable the test until that ships.
return;
}

let p = project()
.file(
"Cargo.toml",
Expand Down Expand Up @@ -571,11 +556,6 @@ fn strip_accepts_true_to_strip_symbols() {

#[cargo_test]
fn strip_accepts_false_to_disable_strip() {
if !is_nightly() {
// rustc 1.58 stabilized -C strip; disable the test until that ships.
return;
}

let p = project()
.file(
"Cargo.toml",
Expand Down