Skip to content

Commit 675fb9f

Browse files
committed
Update changelog for 1.49
1 parent 9b590d0 commit 675fb9f

File tree

1 file changed

+66
-2
lines changed

1 file changed

+66
-2
lines changed

CHANGELOG.md

+66-2
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,86 @@
11
# Changelog
22

3+
## Cargo 1.50 (2021-02-11)
4+
[8662ab42...HEAD](https://github.com/rust-lang/cargo/compare/8662ab42...HEAD)
5+
6+
### Added
7+
- Added the `doc` field to `cargo metadata`, which indicates if a target is
8+
documented.
9+
[#8869](https://github.com/rust-lang/cargo/pull/8869)
10+
11+
### Changed
12+
- `.crate` files uploaded to a registry are now built with reproducible
13+
settings, so that the same `.crate` file created on different machines
14+
should be identical.
15+
[#8864](https://github.com/rust-lang/cargo/pull/8864)
16+
17+
### Fixed
18+
19+
### Nightly only
20+
- Allow `resolver="1"` to specify the original feature resolution behavior.
21+
[#8857](https://github.com/rust-lang/cargo/pull/8857)
22+
- Added `-Z extra-link-arg` which adds the `cargo:rustc-link-arg-bins`
23+
and `cargo:rustc-link-arg` build script options.
24+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#extra-link-arg)
25+
[#8441](https://github.com/rust-lang/cargo/pull/8441)
26+
327
## Cargo 1.49 (2020-12-31)
4-
[75615f8e...HEAD](https://github.com/rust-lang/cargo/compare/75615f8e...HEAD)
28+
[75615f8e...rust-1.49.0](https://github.com/rust-lang/cargo/compare/75615f8e...rust-1.49.0)
529

630
### Added
731
- Added `homepage` and `documentation` fields to `cargo metadata`.
832
[#8744](https://github.com/rust-lang/cargo/pull/8744)
33+
- Added the `CARGO_PRIMARY_PACKAGE` environment variable which is set when
34+
running `rustc` if the package is one of the "root" packages selected on the
35+
command line.
36+
[#8758](https://github.com/rust-lang/cargo/pull/8758)
37+
- Added support for Unix-style glob patterns for package and target selection
38+
flags on the command-line (such as `-p 'serde*'` or `--test '*'`).
39+
[#8752](https://github.com/rust-lang/cargo/pull/8752)
940

1041
### Changed
1142
- Computed LTO flags are now included in the filename metadata hash so that
1243
changes in LTO settings will independently cache build artifacts instead of
1344
overwriting previous ones. This prevents rebuilds in some situations such as
1445
switching between `cargo build` and `cargo test` in some circumstances.
1546
[#8755](https://github.com/rust-lang/cargo/pull/8755)
47+
- `cargo tree` now displays `(proc-macro)` next to proc-macro packages.
48+
[#8765](https://github.com/rust-lang/cargo/pull/8765)
49+
- Added a warning that the allowed characters for a feature name have been
50+
restricted to letters, digits, `_`, `-`, and `+` to accommodate future
51+
syntax changes. This is still a superset of the allowed syntax on crates.io,
52+
which requires ASCII. This is intended to be changed to an error in the
53+
future.
54+
[#8814](https://github.com/rust-lang/cargo/pull/8814)
55+
- `-p` without a value will now print a list of workspace package names.
56+
[#8808](https://github.com/rust-lang/cargo/pull/8808)
1657

1758
### Fixed
1859
- Fixed building a library with both "dylib" and "rlib" crate types with LTO enabled.
1960
[#8754](https://github.com/rust-lang/cargo/pull/8754)
61+
- Fixed paths in Cargo's dep-info files.
62+
[#8819](https://github.com/rust-lang/cargo/pull/8819)
63+
- Fixed inconsistent source IDs in `cargo metadata` for git dependencies that
64+
explicitly specify `branch="master"`.
65+
[#8824](https://github.com/rust-lang/cargo/pull/8824)
66+
- Fixed re-extracting dependencies which contained a `.cargo-ok` file.
67+
[#8835](https://github.com/rust-lang/cargo/pull/8835)
2068

2169
### Nightly only
22-
70+
- Fixed a panic with `cargo doc -Zfeatures=itarget` in some situations.
71+
[#8777](https://github.com/rust-lang/cargo/pull/8777)
72+
- New implementation for namespaced features, using the syntax `dep:serde`.
73+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#namespaced-features)
74+
[#8799](https://github.com/rust-lang/cargo/pull/8799)
75+
- Added support for "weak" dependency features, using the syntax
76+
`dep_name?/feat_name`, which will enable a feature for a dependency without
77+
also enabling the dependency.
78+
[#8818](https://github.com/rust-lang/cargo/pull/8818)
79+
- Fixed the new feature resolver downloading extra dependencies that weren't
80+
strictly necessary.
81+
[#8823](https://github.com/rust-lang/cargo/pull/8823)
82+
- Vendored builds now work with `-Zbuild-std`.
83+
[#8834](https://github.com/rust-lang/cargo/pull/8834)
2384

2485
## Cargo 1.48 (2020-11-19)
2586
[51b66125...rust-1.48.0](https://github.com/rust-lang/cargo/compare/51b66125...rust-1.48.0)
@@ -52,6 +113,9 @@
52113
- Automatically reinitialize the index when an "Object not found" error is
53114
encountered in the git repository.
54115
[#8735](https://github.com/rust-lang/cargo/pull/8735)
116+
- Updated libgit2, which brings in several fixes for git repository handling.
117+
[#8778](https://github.com/rust-lang/cargo/pull/8778)
118+
[#8780](https://github.com/rust-lang/cargo/pull/8780)
55119

56120
### Nightly only
57121
- Fixed `cargo install` so that it will ignore the `[unstable]` table in local config files.

0 commit comments

Comments
 (0)