|
1 | 1 | # Changelog
|
2 | 2 |
|
| 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 | + |
3 | 27 | ## 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) |
5 | 29 |
|
6 | 30 | ### Added
|
7 | 31 | - Added `homepage` and `documentation` fields to `cargo metadata`.
|
8 | 32 | [#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) |
9 | 40 |
|
10 | 41 | ### Changed
|
11 | 42 | - Computed LTO flags are now included in the filename metadata hash so that
|
12 | 43 | changes in LTO settings will independently cache build artifacts instead of
|
13 | 44 | overwriting previous ones. This prevents rebuilds in some situations such as
|
14 | 45 | switching between `cargo build` and `cargo test` in some circumstances.
|
15 | 46 | [#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) |
16 | 57 |
|
17 | 58 | ### Fixed
|
18 | 59 | - Fixed building a library with both "dylib" and "rlib" crate types with LTO enabled.
|
19 | 60 | [#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) |
20 | 68 |
|
21 | 69 | ### 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) |
23 | 84 |
|
24 | 85 | ## Cargo 1.48 (2020-11-19)
|
25 | 86 | [51b66125...rust-1.48.0](https://github.com/rust-lang/cargo/compare/51b66125...rust-1.48.0)
|
|
52 | 113 | - Automatically reinitialize the index when an "Object not found" error is
|
53 | 114 | encountered in the git repository.
|
54 | 115 | [#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) |
55 | 119 |
|
56 | 120 | ### Nightly only
|
57 | 121 | - Fixed `cargo install` so that it will ignore the `[unstable]` table in local config files.
|
|
0 commit comments