Skip to content

Commit 6585cda

Browse files
committed
Auto merge of #8659 - ehuss:version-bump, r=alexcrichton
Bump to 0.49.0, update changelog
2 parents 55e59bd + f609624 commit 6585cda

File tree

3 files changed

+79
-11
lines changed

3 files changed

+79
-11
lines changed

CHANGELOG.md

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,37 @@
11
# Changelog
22

3+
## Cargo 1.48 (2020-11-19)
4+
[51b66125...HEAD](https://github.com/rust-lang/cargo/compare/51b66125...HEAD)
5+
6+
### Added
7+
8+
### Changed
9+
10+
### Fixed
11+
- Fixed LTO with doctests.
12+
[#8657](https://github.com/rust-lang/cargo/pull/8657)
13+
14+
### Nightly only
15+
316
## Cargo 1.47 (2020-10-08)
4-
[4f74d9b2...HEAD](https://github.com/rust-lang/cargo/compare/4f74d9b2...HEAD)
17+
[4f74d9b2...rust-1.47.0](https://github.com/rust-lang/cargo/compare/4f74d9b2...rust-1.47.0)
518

619
### Added
20+
- `cargo doc` will now include the package's version in the left sidebar.
21+
[#8509](https://github.com/rust-lang/cargo/pull/8509)
22+
- Added the `test` field to `cargo metadata` targets.
23+
[#8478](https://github.com/rust-lang/cargo/pull/8478)
24+
- Cargo's man pages are now displayed via the `cargo help` command (such as
25+
`cargo help build`).
26+
[#8456](https://github.com/rust-lang/cargo/pull/8456)
27+
[#8577](https://github.com/rust-lang/cargo/pull/8577)
28+
- Added new documentation chapters on [how dependency resolution
29+
works](https://doc.rust-lang.org/nightly/cargo/reference/resolver.html) and
30+
[SemVer
31+
compatibility](https://doc.rust-lang.org/nightly/cargo/reference/semver.html),
32+
along with suggestions on how to version your project and work with
33+
dependencies.
34+
[#8609](https://github.com/rust-lang/cargo/pull/8609)
735

836
### Changed
937
- The comments added to `.gitignore` when it is modified have been tweaked to
@@ -14,12 +42,59 @@
1442
- By default, build scripts and proc-macros are now built with `opt-level=0`
1543
and the default codegen units, even in release mode.
1644
[#8500](https://github.com/rust-lang/cargo/pull/8500)
45+
- `workspace.default-members` is now filtered by `workspace.exclude`.
46+
[#8485](https://github.com/rust-lang/cargo/pull/8485)
47+
- `workspace.members` globs now ignore non-directory paths.
48+
[#8511](https://github.com/rust-lang/cargo/pull/8511)
49+
- git zlib errors now trigger a retry.
50+
[#8520](https://github.com/rust-lang/cargo/pull/8520)
51+
- "http" class git errors now trigger a retry.
52+
[#8553](https://github.com/rust-lang/cargo/pull/8553)
53+
- git dependencies now override the `core.autocrlf` git configuration value to
54+
ensure they behave consistently across platforms, particularly when
55+
vendoring git dependencies on Windows.
56+
[#8523](https://github.com/rust-lang/cargo/pull/8523)
57+
- If `Cargo.lock` needs to be updated, then it will be automatically
58+
transitioned to the new V2 format. This format removes the `[metadata]`
59+
table, and should be easier to merge changes in source control systems. This
60+
format was introduced in 1.38, and made the default for new projects in
61+
1.41.
62+
[#8554](https://github.com/rust-lang/cargo/pull/8554)
63+
- Added preparation for support of git repositories with a non-"master"
64+
default branch. Actual support will arrive in a future version. This
65+
introduces some warnings:
66+
- Warn if a git dependency does not specify a branch, and the default branch
67+
on the repository is not "master". In the future, Cargo will fetch the
68+
default branch. In this scenario, the branch should be explicitly
69+
specified.
70+
- Warn if a workspace has multiple dependencies to the same git repository,
71+
one without a `branch` and one with `branch="master"`. Dependencies should
72+
all use one form or the other.
73+
[#8522](https://github.com/rust-lang/cargo/pull/8522)
74+
- Warnings are now issued if a `required-features` entry lists a feature that
75+
does not exist.
76+
[#7950](https://github.com/rust-lang/cargo/pull/7950)
77+
- Built-in aliases are now included in `cargo --list`.
78+
[#8542](https://github.com/rust-lang/cargo/pull/8542)
79+
- `cargo install` with a specific version that has been yanked will now
80+
display an error message that it has been yanked, instead of "could not
81+
find".
82+
[#8565](https://github.com/rust-lang/cargo/pull/8565)
83+
- `cargo publish` with a package that has the `publish` field set to a single
84+
registry, and no `--registry` flag has been given, will now publish to that
85+
registry instead of generating an error.
86+
[#8571](https://github.com/rust-lang/cargo/pull/8571)
1787

1888
### Fixed
1989
- Fixed issue where if a project directory was moved, and one of the
2090
build scripts did not use the `rerun-if-changed` directive, then that
2191
build script was being rebuilt when it shouldn't.
2292
[#8497](https://github.com/rust-lang/cargo/pull/8497)
93+
- Console colors should now work on Windows 7 and 8.
94+
[#8540](https://github.com/rust-lang/cargo/pull/8540)
95+
- The `CARGO_TARGET_{triplet}_RUNNER` environment variable will now correctly
96+
override the config file instead of trying to merge the commands.
97+
[#8629](https://github.com/rust-lang/cargo/pull/8629)
2398

2499
### Nightly only
25100
- Added support for `-Z terminal-width` which tells `rustc` the width of the
@@ -30,7 +105,8 @@
30105
`[unstable]` table.
31106
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html)
32107
[#8393](https://github.com/rust-lang/cargo/pull/8393)
33-
- Added [`-Z build-std-features`] flag to set features for the standard library.
108+
- Added `-Z build-std-features` flag to set features for the standard library.
109+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std-features)
34110
[#8490](https://github.com/rust-lang/cargo/pull/8490)
35111

36112
## Cargo 1.46 (2020-08-27)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo"
3-
version = "0.48.0"
3+
version = "0.49.0"
44
edition = "2018"
55
authors = ["Yehuda Katz <wycats@gmail.com>",
66
"Carl Lerche <me@carllerche.com>",

tests/testsuite/freshness.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,10 +2485,6 @@ fn lld_is_fresh() {
24852485

24862486
#[cargo_test]
24872487
fn env_in_code_causes_rebuild() {
2488-
// Only nightly 1.46 has support in dep-info files for this
2489-
if !cargo_test_support::is_nightly() {
2490-
return;
2491-
}
24922488
let p = project()
24932489
.file(
24942490
"Cargo.toml",
@@ -2555,10 +2551,6 @@ fn env_in_code_causes_rebuild() {
25552551

25562552
#[cargo_test]
25572553
fn env_build_script_no_rebuild() {
2558-
// Only nightly 1.46 has support in dep-info files for this
2559-
if !cargo_test_support::is_nightly() {
2560-
return;
2561-
}
25622554
let p = project()
25632555
.file(
25642556
"Cargo.toml",

0 commit comments

Comments
 (0)