Skip to content

Commit ba584a9

Browse files
author
Jon Gjengset
committed
Merge remote-tracking branch 'upstream/master' into z-allowed-features
2 parents 3b23a37 + 7204d39 commit ba584a9

File tree

149 files changed

+3162
-2010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+3162
-2010
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
- run: cargo test --features 'deny-warnings'
6767
- run: cargo test --features 'deny-warnings' -p cargo-test-support
6868
- run: cargo test -p cargo-platform
69+
- run: cargo test -p cargo-util
6970
- run: cargo test --manifest-path crates/mdman/Cargo.toml
7071
- run: cargo build --manifest-path crates/credential/cargo-credential-1password/Cargo.toml
7172
- run: cargo build --manifest-path crates/credential/cargo-credential-gnome-secret/Cargo.toml

CHANGELOG.md

Lines changed: 113 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,117 @@
11
# Changelog
22

3+
## Cargo 1.53 (2021-06-17)
4+
[90691f2b...HEAD](https://github.com/rust-lang/cargo/compare/90691f2b...HEAD)
5+
6+
### Added
7+
8+
### Changed
9+
10+
- 🔥 macOS targets now default to `unpacked` debuginfo.
11+
[#9298](https://github.com/rust-lang/cargo/pull/9298)
12+
- ❗ The `authors` field is no longer included in `Cargo.toml` for new
13+
projects.
14+
[#9282](https://github.com/rust-lang/cargo/pull/9282)
15+
- `cargo update` may now work with the `--offline` flag.
16+
[#9279](https://github.com/rust-lang/cargo/pull/9279)
17+
18+
### Fixed
19+
20+
### Nightly only
21+
- Fixed config includes not working.
22+
[#9299](https://github.com/rust-lang/cargo/pull/9299)
23+
- Emit note when `--future-incompat-report` had nothing to report.
24+
[#9263](https://github.com/rust-lang/cargo/pull/9263)
25+
- Error messages for nightly features flags (like `-Z` and `cargo-features`)
26+
should now provide more information.
27+
[#9290](https://github.com/rust-lang/cargo/pull/9290)
28+
329
## Cargo 1.52 (2021-05-06)
4-
[34170fcd...HEAD](https://github.com/rust-lang/cargo/compare/34170fcd...HEAD)
30+
[34170fcd...rust-1.52.0](https://github.com/rust-lang/cargo/compare/34170fcd...rust-1.52.0)
531

632
### Added
33+
- Added the `"manifest_path"` field to JSON messages for a package.
34+
[#9022](https://github.com/rust-lang/cargo/pull/9022)
35+
[#9247](https://github.com/rust-lang/cargo/pull/9247)
736

837
### Changed
938
- 🔥 Cargo now supports git repositories where the default `HEAD` branch is not
1039
"master". This also includes a switch to the version 3 `Cargo.lock` format
1140
which can handle default branches correctly.
1241
[#9133](https://github.com/rust-lang/cargo/pull/9133)
42+
- Build scripts are now forbidden from setting `RUSTC_BOOTSTRAP` on stable.
43+
[#9181](https://github.com/rust-lang/cargo/pull/9181)
44+
- crates.io now supports SPDX 3.11 licenses.
45+
[#9209](https://github.com/rust-lang/cargo/pull/9209)
46+
- An error is now reported if `CARGO_TARGET_DIR` is an empty string.
47+
[#8939](https://github.com/rust-lang/cargo/pull/8939)
48+
- Doc tests now pass the `--message-format` flag into the test so that the
49+
"short" format can now be used for doc tests.
50+
[#9128](https://github.com/rust-lang/cargo/pull/9128)
51+
- `cargo test` now prints a clearer indicator of which target is currently running.
52+
[#9195](https://github.com/rust-lang/cargo/pull/9195)
53+
- The `CARGO_TARGET_<TRIPLE>` environment variable will now issue a warning if
54+
it is using lowercase letters.
55+
[#9169](https://github.com/rust-lang/cargo/pull/9169)
56+
- `cargo doc` will now erase the `doc` directory when switching between
57+
different toolchain versions. There are shared, unversioned files (such as
58+
the search index) that can become broken when using different versions.
59+
[#8640](https://github.com/rust-lang/cargo/pull/8640)
1360

1461
### Fixed
62+
- Fixed publication of packages with metadata and resolver fields in `Cargo.toml`.
63+
[#9300](https://github.com/rust-lang/cargo/pull/9300)
64+
[#9304](https://github.com/rust-lang/cargo/pull/9304)
65+
- Fixed logic for determining prefer-dynamic for a dylib which differed in a
66+
workspace vs a single package.
67+
[#9252](https://github.com/rust-lang/cargo/pull/9252)
68+
- Fixed an issue where exclusive target-specific dependencies that overlapped
69+
across dependency kinds (like regular and build-dependencies) would
70+
incorrectly include the dependencies in both.
71+
[#9255](https://github.com/rust-lang/cargo/pull/9255)
72+
- Fixed panic with certain styles of Package IDs when passed to the `-p` flag.
73+
[#9188](https://github.com/rust-lang/cargo/pull/9188)
74+
- When running cargo with output not going to a TTY, and with the progress bar
75+
and color force-enabled, the output will now correctly clear the progress
76+
line.
77+
[#9231](https://github.com/rust-lang/cargo/pull/9231)
78+
- Error instead of panic when JSON may contain non-utf8 paths.
79+
[#9226](https://github.com/rust-lang/cargo/pull/9226)
80+
- Fixed a hang that can happen on broken stderr.
81+
[#9201](https://github.com/rust-lang/cargo/pull/9201)
82+
- Fixed thin-local LTO not being disabled correctly when `lto=off` is set.
83+
[#9182](https://github.com/rust-lang/cargo/pull/9182)
1584

1685
### Nightly only
1786
- The `strip` profile option now supports `true` and `false` values.
1887
[#9153](https://github.com/rust-lang/cargo/pull/9153)
88+
- `cargo fix --edition` now displays a report when switching to 2021 if the
89+
new resolver changes features.
90+
[#9268](https://github.com/rust-lang/cargo/pull/9268)
91+
- Added `[patch]` table support in `.cargo/config` files.
92+
[#9204](https://github.com/rust-lang/cargo/pull/9204)
93+
- Added `cargo describe-future-incompatibilities` for generating a report on
94+
dependencies that contain future-incompatible warnings.
95+
[#8825](https://github.com/rust-lang/cargo/pull/8825)
96+
- Added easier support for testing the 2021 edition.
97+
[#9184](https://github.com/rust-lang/cargo/pull/9184)
98+
- Switch the default resolver to "2" in the 2021 edition.
99+
[#9184](https://github.com/rust-lang/cargo/pull/9184)
100+
- `cargo fix --edition` now supports 2021.
101+
[#9184](https://github.com/rust-lang/cargo/pull/9184)
102+
- Added `--print` flag to `cargo rustc` to pass along to `rustc` to display
103+
information from rustc.
104+
[#9002](https://github.com/rust-lang/cargo/pull/9002)
105+
- Added `-Zdoctest-in-workspace` for changing the directory where doctests are
106+
*run* versus where they are *compiled*.
107+
[#9105](https://github.com/rust-lang/cargo/pull/9105)
108+
- Added support for an `[env]` section in `.cargo/config.toml` to set
109+
environment variables when running cargo.
110+
[#9175](https://github.com/rust-lang/cargo/pull/9175)
111+
- Added a schema field and `features2` field to the index.
112+
[#9161](https://github.com/rust-lang/cargo/pull/9161)
113+
- Changes to JSON spec targets will now trigger a rebuild.
114+
[#9223](https://github.com/rust-lang/cargo/pull/9223)
19115

20116
## Cargo 1.51 (2021-03-25)
21117
[75d5d8cf...rust-1.51.0](https://github.com/rust-lang/cargo/compare/75d5d8cf...rust-1.51.0)
@@ -72,6 +168,19 @@
72168
[#9059](https://github.com/rust-lang/cargo/pull/9059)
73169
- Fixed to use `http.proxy` setting in `~/.gitconfig`.
74170
[#8986](https://github.com/rust-lang/cargo/pull/8986)
171+
- Fixed --feature pkg/feat for V1 resolver for non-member.
172+
[#9275](https://github.com/rust-lang/cargo/pull/9275)
173+
[#9277](https://github.com/rust-lang/cargo/pull/9277)
174+
- Fixed panic in `cargo doc` when there are colliding output filenames in a workspace.
175+
[#9276](https://github.com/rust-lang/cargo/pull/9276)
176+
[#9277](https://github.com/rust-lang/cargo/pull/9277)
177+
- Fixed `cargo install` from exiting with success if one of several packages
178+
did not install successfully.
179+
[#9185](https://github.com/rust-lang/cargo/pull/9185)
180+
[#9196](https://github.com/rust-lang/cargo/pull/9196)
181+
- Fix panic with doc collision orphan.
182+
[#9142](https://github.com/rust-lang/cargo/pull/9142)
183+
[#9196](https://github.com/rust-lang/cargo/pull/9196)
75184

76185
### Nightly only
77186
- Removed the `publish-lockfile` unstable feature, it was stabilized without
@@ -85,6 +194,9 @@
85194
[#8922](https://github.com/rust-lang/cargo/pull/8922)
86195
- Added support for the `rust-version` field in project metadata.
87196
[#8037](https://github.com/rust-lang/cargo/pull/8037)
197+
- Added a schema field to the index.
198+
[#9161](https://github.com/rust-lang/cargo/pull/9161)
199+
[#9196](https://github.com/rust-lang/cargo/pull/9196)
88200

89201
## Cargo 1.50 (2021-02-11)
90202
[8662ab42...rust-1.50.0](https://github.com/rust-lang/cargo/compare/8662ab42...rust-1.50.0)

Cargo.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo"
3-
version = "0.53.0"
3+
version = "0.54.0"
44
edition = "2018"
55
authors = ["Yehuda Katz <wycats@gmail.com>",
66
"Carl Lerche <me@carllerche.com>",
@@ -22,9 +22,9 @@ path = "src/cargo/lib.rs"
2222
atty = "0.2"
2323
bytesize = "1.0"
2424
cargo-platform = { path = "crates/cargo-platform", version = "0.1.1" }
25+
cargo-util = { path = "crates/cargo-util", version = "0.1.0" }
2526
crates-io = { path = "crates/crates-io", version = "0.33.0" }
2627
crossbeam-utils = "0.8"
27-
crypto-hash = "0.3.1"
2828
curl = { version = "0.4.23", features = ["http2"] }
2929
curl-sys = "0.4.22"
3030
env_logger = "0.8.1"
@@ -50,9 +50,8 @@ num_cpus = "1.0"
5050
opener = "0.4"
5151
percent-encoding = "2.0"
5252
rustfix = "0.5.0"
53-
same-file = "1"
5453
semver = { version = "0.10", features = ["serde"] }
55-
serde = { version = "1.0.82", features = ["derive"] }
54+
serde = { version = "1.0.123", features = ["derive"] }
5655
serde_ignored = "0.1.0"
5756
serde_json = { version = "1.0.30", features = ["raw_value"] }
5857
shell-escape = "0.1.4"
@@ -75,11 +74,7 @@ im-rc = "15.0.0"
7574
rustc-workspace-hack = "1.0.0"
7675
rand = "0.8.3"
7776

78-
[target.'cfg(target_os = "macos")'.dependencies]
79-
core-foundation = { version = "0.9.0", features = ["mac_os_10_7_support"] }
80-
8177
[target.'cfg(windows)'.dependencies]
82-
miow = "0.3.6"
8378
fwdansi = "1.1.0"
8479

8580
[target.'cfg(windows)'.dependencies.winapi]

crates/cargo-test-support/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ edition = "2018"
99
doctest = false
1010

1111
[dependencies]
12-
cargo = { path = "../.." }
12+
anyhow = "1.0.34"
1313
cargo-test-macro = { path = "../cargo-test-macro" }
14+
cargo-util = { path = "../cargo-util" }
1415
filetime = "0.2"
1516
flate2 = { version = "1.0", default-features = false, features = ["zlib"] }
1617
git2 = "0.13.16"

crates/cargo-test-support/src/cross_compile.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
//! These tests are all disabled on rust-lang/rust's CI, but run in Cargo's CI.
1111
1212
use crate::{basic_manifest, main_file, project};
13-
use cargo::util::ProcessError;
14-
use cargo::CargoResult;
13+
use cargo_util::ProcessError;
1514
use std::env;
1615
use std::fmt::Write;
1716
use std::process::{Command, Output};
@@ -41,7 +40,7 @@ pub fn disabled() -> bool {
4140

4241
let cross_target = alternate();
4342

44-
let run_cross_test = || -> CargoResult<Output> {
43+
let run_cross_test = || -> anyhow::Result<Output> {
4544
let p = project()
4645
.at("cross_test")
4746
.file("Cargo.toml", &basic_manifest("cross_test", "1.0.0"))

0 commit comments

Comments
 (0)