Auto merge of #9900 - ehuss:version-bump, r=alexcrichton

Bump to 0.58.0, update changelog
This commit is contained in:
bors 2021-09-10 18:24:27 +00:00
commit 2274489833
3 changed files with 97 additions and 11 deletions

View File

@ -1,19 +1,62 @@
# Changelog
## Cargo 1.56 (2021-10-21)
[cebef295...HEAD](https://github.com/rust-lang/cargo/compare/cebef295...HEAD)
## Cargo 1.57 (2021-12-02)
[18751dd3...HEAD](https://github.com/rust-lang/cargo/compare/18751dd3...HEAD)
### Added
- Added support for the [`rust-version`](https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field)
field in a crate's metadata and the `--ignore-rust-version` command line option.
- Build scripts can now pass additional linker arguments for binaries or all
- The `rev` option for a git dependency now supports git references that start
with `refs/`. An example where this can be used is to depend on a pull
request from a service like GitHub before it is merged.
[#9859](https://github.com/rust-lang/cargo/pull/9859)
### Changed
### Fixed
- Removed a log message (from `CARGO_LOG`) that may leak tokens.
[#9873](https://github.com/rust-lang/cargo/pull/9873)
### Nightly only
## Cargo 1.56 (2021-10-21)
[cebef295...rust-1.56.0](https://github.com/rust-lang/cargo/compare/cebef295...rust-1.56.0)
### Added
- 🎉 Cargo now supports the 2021 edition.
More information may be found in the [edition
guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html).
[#9800](https://github.com/rust-lang/cargo/pull/9800)
- 🎉 Added the
[`rust-version`](https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field)
field to `Cargo.toml` to specify the minimum supported Rust version, and the
`--ignore-rust-version` command line option to override it.
[#9732](https://github.com/rust-lang/cargo/pull/9732)
- Added the `[env]` table to config files to specify environment variables to
set.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#env)
[#9411](https://github.com/rust-lang/cargo/pull/9411)
- `[patch]` tables may now be specified in config files.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#patch)
[#9839](https://github.com/rust-lang/cargo/pull/9839)
- `cargo doc` now supports the `--example` and `--examples` flags.
[#9808](https://github.com/rust-lang/cargo/pull/9808)
- 🎉 Build scripts can now pass additional linker arguments for binaries or all
linkable targets. [docs](https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#outputs-of-the-build-script)
[#9557](https://github.com/rust-lang/cargo/pull/9557)
- Added support for the `-p` flag for `cargo publish` to publish a specific
package in a workspace. `cargo package` also now supports `-p` and
`--workspace`.
[#9559](https://github.com/rust-lang/cargo/pull/9559)
- Added documentation about third-party registries.
[#9830](https://github.com/rust-lang/cargo/pull/9830)
- Added the `{sha256-checksum}` placeholder for URLs in a registry `config.json`.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format)
[#9801](https://github.com/rust-lang/cargo/pull/9801)
- Added a warning when a dependency does not have a library.
[#9771](https://github.com/rust-lang/cargo/pull/9771)
### Changed
@ -27,11 +70,56 @@
filename. This allows multiple copies to be cached at once, and matches the
behavior on other platforms (except `msvc`).
[#9653](https://github.com/rust-lang/cargo/pull/9653)
- `cargo new` now generates an example that doesn't generate a warning with
clippy.
[#9796](https://github.com/rust-lang/cargo/pull/9796)
- `cargo fix --edition` now only applies edition-specific lints.
[#9846](https://github.com/rust-lang/cargo/pull/9846)
- Improve resolver message to include dependency requirements.
[#9827](https://github.com/rust-lang/cargo/pull/9827)
- `cargo fix` now has more debug logging available with the `CARGO_LOG`
environment variable.
[#9831](https://github.com/rust-lang/cargo/pull/9831)
- Changed `cargo fix --edition` to emit a warning when on the latest stable
edition when running on stable instead of generating an error.
[#9792](https://github.com/rust-lang/cargo/pull/9792)
- `cargo install` will now determine all of the packages to install before
starting the installation, which should help with reporting errors without
partially installing.
[#9793](https://github.com/rust-lang/cargo/pull/9793)
- The resolver report for `cargo fix --edition` now includes differences for
dev-dependencies.
[#9803](https://github.com/rust-lang/cargo/pull/9803)
- `cargo fix` will now show better diagnostics for abnormal errors from `rustc`.
[#9799](https://github.com/rust-lang/cargo/pull/9799)
- Entries in `cargo --list` are now deduplicated.
[#9773](https://github.com/rust-lang/cargo/pull/9773)
- Aliases are now included in `cargo --list`.
[#9764](https://github.com/rust-lang/cargo/pull/9764)
### Fixed
- Fixed panic with build-std of a proc-macro.
[#9834](https://github.com/rust-lang/cargo/pull/9834)
- Fixed running `cargo` recursively from proc-macros while running `cargo fix`.
[#9818](https://github.com/rust-lang/cargo/pull/9818)
- Return an error instead of a stack overflow for command alias loops.
[#9791](https://github.com/rust-lang/cargo/pull/9791)
### Nightly only
- Added `[future-incompat-report]` config section.
[#9774](https://github.com/rust-lang/cargo/pull/9774)
- Fixed value-after-table error with custom named profiles.
[#9789](https://github.com/rust-lang/cargo/pull/9789)
- Added the `different-binary-name` feature to support specifying a
non-rust-identifier for a binary name.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#different-binary-name)
[#9627](https://github.com/rust-lang/cargo/pull/9627)
- Added a profile option to select the codegen backend.
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#codegen-backend)
[#9118](https://github.com/rust-lang/cargo/pull/9118)
## Cargo 1.55 (2021-09-09)
[aa8b0929...rust-1.55.0](https://github.com/rust-lang/cargo/compare/aa8b0929...rust-1.55.0)
@ -100,6 +188,9 @@
includes several changes, such as new behavior when run on WSL, and using
the system `xdg-open` on Linux.
[#9583](https://github.com/rust-lang/cargo/pull/9583)
- Updated to libcurl 7.78.
[#9809](https://github.com/rust-lang/cargo/pull/9809)
[#9810](https://github.com/rust-lang/cargo/pull/9810)
### Fixed

View File

@ -1,6 +1,6 @@
[package]
name = "cargo"
version = "0.57.0"
version = "0.58.0"
edition = "2018"
authors = ["Yehuda Katz <wycats@gmail.com>",
"Carl Lerche <me@carllerche.com>",

View File

@ -342,11 +342,6 @@ fn custom_linker_env() {
#[cargo_test]
fn target_in_environment_contains_lower_case() {
if cfg!(windows) && !cargo_test_support::is_nightly() {
// Remove this check when 1.55 is stabilized.
// https://github.com/rust-lang/rust/pull/85270
return;
}
let p = project().file("src/main.rs", "fn main() {}").build();
let target = rustc_host();