Skip to content

Commit db11258

Browse files
committed
Auto merge of #7851 - ehuss:version-bump, r=alexcrichton
Bump to 0.44.0, update changelog
2 parents f913212 + 6efd25c commit db11258

File tree

6 files changed

+86
-30
lines changed

6 files changed

+86
-30
lines changed

CHANGELOG.md

+84-3
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,106 @@
11
# Changelog
22

3+
## Cargo 1.43 (2020-04-23)
4+
[9d32b7b0...HEAD](https://github.com/rust-lang/cargo/compare/9d32b7b0...HEAD)
5+
6+
### Added
7+
- 🔥 Profiles may now be specified in config files (and environment variables).
8+
[#7823](https://github.com/rust-lang/cargo/pull/7823)
9+
10+
### Changed
11+
- `cargo install --git` now honors workspaces in a git repository. This allows
12+
workspace settings, like `[patch]`, `[replace]`, or `[profile]` to be used.
13+
[#7768](https://github.com/rust-lang/cargo/pull/7768)
14+
15+
### Fixed
16+
17+
### Nightly only
18+
- Added `build.out-dir` config variable to set the output directory.
19+
[#7810](https://github.com/rust-lang/cargo/pull/7810)
20+
- Added `-Zjobserver-per-rustc` feature to support improved performance for
21+
parallel rustc.
22+
[#7731](https://github.com/rust-lang/cargo/pull/7731)
23+
24+
25+
326
## Cargo 1.42 (2020-03-12)
4-
[0bf7aafe...HEAD](https://github.com/rust-lang/cargo/compare/0bf7aafe...HEAD)
27+
[0bf7aafe...rust-1.42.0](https://github.com/rust-lang/cargo/compare/0bf7aafe...rust-1.42.0)
528

629
### Added
730
- Added documentation on git authentication.
831
[#7658](https://github.com/rust-lang/cargo/pull/7658)
932
- Bitbucket Pipeline badges are now supported on crates.io.
1033
[#7663](https://github.com/rust-lang/cargo/pull/7663)
34+
- `cargo vendor` now accepts the `--versioned-dirs` option to force it to
35+
always include the version number in each package's directory name.
36+
[#7631](https://github.com/rust-lang/cargo/pull/7631)
37+
- The `proc_macro` crate is now automatically added to the extern prelude for
38+
proc-macro packages. This means that `extern crate proc_macro;` is no longer
39+
necessary for proc-macros.
40+
[#7700](https://github.com/rust-lang/cargo/pull/7700)
1141

1242
### Changed
1343
- Emit a warning if `debug_assertions`, `test`, `proc_macro`, or `feature=` is
1444
used in a `cfg()` expression.
1545
[#7660](https://github.com/rust-lang/cargo/pull/7660)
46+
- Large update to the Cargo documentation, adding new chapters on Cargo
47+
targets, workspaces, and features.
48+
[#7733](https://github.com/rust-lang/cargo/pull/7733)
49+
- Windows: `.lib` DLL import libraries are now copied next to the dll for all
50+
Windows MSVC targets. Previously it was only supported for
51+
`pc-windows-msvc`. This adds DLL support for `uwp-windows-msvc` targets.
52+
[#7758](https://github.com/rust-lang/cargo/pull/7758)
53+
- The `ar` field in the `[target]` configuration is no longer read. It has
54+
been ignored for over 4 years.
55+
[#7763](https://github.com/rust-lang/cargo/pull/7763)
56+
- Bash completion file simplified and updated for latest changes.
57+
[#7789](https://github.com/rust-lang/cargo/pull/7789)
58+
- Credentials are only loaded when needed, instead of every Cargo command.
59+
[#7774](https://github.com/rust-lang/cargo/pull/7774)
1660

1761
### Fixed
18-
- Removed `--offline` empty index check, which was a false positive in some cases.
62+
- Removed `--offline` empty index check, which was a false positive in some
63+
cases.
1964
[#7655](https://github.com/rust-lang/cargo/pull/7655)
65+
- Files and directories starting with a `.` can now be included in a package
66+
by adding it to the `include` list.
67+
[#7680](https://github.com/rust-lang/cargo/pull/7680)
68+
- Fixed `cargo login` removing alternative registry tokens when previous
69+
entries existed in the credentials file.
70+
[#7708](https://github.com/rust-lang/cargo/pull/7708)
71+
- Fixed `cargo vendor` from panicking when used with alternative registries.
72+
[#7718](https://github.com/rust-lang/cargo/pull/7718)
73+
- Fixed incorrect explanation in the fingerprint debug log message.
74+
[#7749](https://github.com/rust-lang/cargo/pull/7749)
75+
- A `[source]` that is defined multiple times will now result in an error.
76+
Previously it was randomly picking a source, which could cause
77+
non-deterministic behavior.
78+
[#7751](https://github.com/rust-lang/cargo/pull/7751)
79+
- `dep_kinds` in `cargo metadata` are now de-duplicated.
80+
[#7756](https://github.com/rust-lang/cargo/pull/7756)
81+
- Fixed packaging where `Cargo.lock` was listed in `.gitignore` in a
82+
subdirectory inside a git repository. Previously it was assuming
83+
`Cargo.lock` was at the root of the repo.
84+
[#7779](https://github.com/rust-lang/cargo/pull/7779)
85+
- Partial file transfer errors will now cause an automatic retry.
86+
[#7788](https://github.com/rust-lang/cargo/pull/7788)
87+
- Linux: Fixed panic if CPU iowait stat decreases.
88+
[#7803](https://github.com/rust-lang/cargo/pull/7803)
89+
- Fixed using the wrong sysroot for detecting host compiler settings when
90+
`--sysroot` is passed in via `RUSTFLAGS`.
91+
[#7798](https://github.com/rust-lang/cargo/pull/7798)
2092

2193
### Nightly only
22-
94+
- `build-std` now uses `--extern` instead of `--sysroot` to find sysroot
95+
pacakges.
96+
[#7699](https://github.com/rust-lang/cargo/pull/7699)
97+
- Added `--config` command-line option to set config settings.
98+
[#7649](https://github.com/rust-lang/cargo/pull/7649)
99+
- Added `include` config setting which allows including another config file.
100+
[#7649](https://github.com/rust-lang/cargo/pull/7649)
101+
- Profiles in config files now support any named profile. Previously it was
102+
limited to dev/release.
103+
[#7750](https://github.com/rust-lang/cargo/pull/7750)
23104

24105
## Cargo 1.41 (2020-01-30)
25106
[5da4b4d4...rust-1.41.0](https://github.com/rust-lang/cargo/compare/5da4b4d4...rust-1.41.0)

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo"
3-
version = "0.43.0"
3+
version = "0.44.0"
44
edition = "2018"
55
authors = ["Yehuda Katz <[email protected]>",
66
"Carl Lerche <[email protected]>",

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

-10
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ pub struct TargetInfo {
3939
pub rustflags: Vec<String>,
4040
/// Extra flags to pass to `rustdoc`, see `env_args`.
4141
pub rustdocflags: Vec<String>,
42-
// Remove this when it hits stable (1.41).
43-
pub supports_pathless_extern: Option<bool>,
4442
}
4543

4644
/// Kind of each file generated by a Unit, part of `FileType`.
@@ -103,13 +101,6 @@ impl TargetInfo {
103101
.args(&rustflags)
104102
.env_remove("RUSTC_LOG");
105103

106-
let mut pathless_test = process.clone();
107-
pathless_test.args(&["--extern", "proc_macro"]);
108-
let supports_pathless_extern = match kind {
109-
CompileKind::Host => Some(rustc.cached_output(&pathless_test).is_ok()),
110-
_ => None,
111-
};
112-
113104
if let CompileKind::Target(target) = kind {
114105
process.arg("--target").arg(target.rustc_target());
115106
}
@@ -192,7 +183,6 @@ impl TargetInfo {
192183
"RUSTDOCFLAGS",
193184
)?,
194185
cfg,
195-
supports_pathless_extern,
196186
})
197187
}
198188

src/cargo/core/compiler/mod.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1018,13 +1018,7 @@ pub fn extern_args<'a>(
10181018
link_to(dep, dep.extern_crate_name, dep.noprelude)?;
10191019
}
10201020
}
1021-
if unit.target.proc_macro()
1022-
&& cx
1023-
.bcx
1024-
.info(CompileKind::Host)
1025-
.supports_pathless_extern
1026-
.unwrap()
1027-
{
1021+
if unit.target.proc_macro() {
10281022
// Automatically import `proc_macro`.
10291023
result.push(OsString::from("--extern"));
10301024
result.push(OsString::from("proc_macro"));

tests/testsuite/proc_macro.rs

-4
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,6 @@ Caused by:
443443

444444
#[cargo_test]
445445
fn proc_macro_extern_prelude() {
446-
if !is_nightly() {
447-
// remove once pathless `--extern` hits stable (1.41)
448-
return;
449-
}
450446
// Check that proc_macro is in the extern prelude.
451447
let p = project()
452448
.file(

tests/testsuite/rustc_info_cache.rs

-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ use std::env;
66

77
#[cargo_test]
88
fn rustc_info_cache() {
9-
if !cargo_test_support::is_nightly() {
10-
// remove once pathless `--extern` hits stable (1.41)
11-
return;
12-
}
13-
149
let p = project()
1510
.file("src/main.rs", r#"fn main() { println!("hello"); }"#)
1611
.build();

0 commit comments

Comments
 (0)