|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.57 (2021-12-02) |
| 4 | +[18751dd3...HEAD](https://github.com/rust-lang/cargo/compare/18751dd3...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +- The `rev` option for a git dependency now supports git references that start |
| 9 | + with `refs/`. An example where this can be used is to depend on a pull |
| 10 | + request from a service like GitHub before it is merged. |
| 11 | + [#9859](https://github.com/rust-lang/cargo/pull/9859) |
| 12 | + |
| 13 | +### Changed |
| 14 | + |
| 15 | +### Fixed |
| 16 | + |
| 17 | +- Removed a log message (from `CARGO_LOG`) that may leak tokens. |
| 18 | + [#9873](https://github.com/rust-lang/cargo/pull/9873) |
| 19 | + |
| 20 | +### Nightly only |
| 21 | + |
| 22 | + |
3 | 23 | ## Cargo 1.56 (2021-10-21)
|
4 |
| -[cebef295...HEAD](https://github.com/rust-lang/cargo/compare/cebef295...HEAD) |
| 24 | +[cebef295...rust-1.56.0](https://github.com/rust-lang/cargo/compare/cebef295...rust-1.56.0) |
5 | 25 |
|
6 | 26 | ### Added
|
7 | 27 |
|
8 |
| -- Added support for the [`rust-version`](https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field) |
9 |
| - field in a crate's metadata and the `--ignore-rust-version` command line option. |
10 |
| -- Build scripts can now pass additional linker arguments for binaries or all |
| 28 | +- 🎉 Cargo now supports the 2021 edition. |
| 29 | + More information may be found in the [edition |
| 30 | + guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html). |
| 31 | + [#9800](https://github.com/rust-lang/cargo/pull/9800) |
| 32 | +- 🎉 Added the |
| 33 | + [`rust-version`](https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field) |
| 34 | + field to `Cargo.toml` to specify the minimum supported Rust version, and the |
| 35 | + `--ignore-rust-version` command line option to override it. |
| 36 | + [#9732](https://github.com/rust-lang/cargo/pull/9732) |
| 37 | +- Added the `[env]` table to config files to specify environment variables to |
| 38 | + set. |
| 39 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#env) |
| 40 | + [#9411](https://github.com/rust-lang/cargo/pull/9411) |
| 41 | +- `[patch]` tables may now be specified in config files. |
| 42 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#patch) |
| 43 | + [#9839](https://github.com/rust-lang/cargo/pull/9839) |
| 44 | +- `cargo doc` now supports the `--example` and `--examples` flags. |
| 45 | + [#9808](https://github.com/rust-lang/cargo/pull/9808) |
| 46 | +- 🎉 Build scripts can now pass additional linker arguments for binaries or all |
11 | 47 | linkable targets. [docs](https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#outputs-of-the-build-script)
|
12 | 48 | [#9557](https://github.com/rust-lang/cargo/pull/9557)
|
13 | 49 | - Added support for the `-p` flag for `cargo publish` to publish a specific
|
14 | 50 | package in a workspace. `cargo package` also now supports `-p` and
|
15 | 51 | `--workspace`.
|
16 | 52 | [#9559](https://github.com/rust-lang/cargo/pull/9559)
|
| 53 | +- Added documentation about third-party registries. |
| 54 | + [#9830](https://github.com/rust-lang/cargo/pull/9830) |
| 55 | +- Added the `{sha256-checksum}` placeholder for URLs in a registry `config.json`. |
| 56 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format) |
| 57 | + [#9801](https://github.com/rust-lang/cargo/pull/9801) |
| 58 | +- Added a warning when a dependency does not have a library. |
| 59 | + [#9771](https://github.com/rust-lang/cargo/pull/9771) |
17 | 60 |
|
18 | 61 | ### Changed
|
19 | 62 |
|
|
27 | 70 | filename. This allows multiple copies to be cached at once, and matches the
|
28 | 71 | behavior on other platforms (except `msvc`).
|
29 | 72 | [#9653](https://github.com/rust-lang/cargo/pull/9653)
|
| 73 | +- `cargo new` now generates an example that doesn't generate a warning with |
| 74 | + clippy. |
| 75 | + [#9796](https://github.com/rust-lang/cargo/pull/9796) |
| 76 | +- `cargo fix --edition` now only applies edition-specific lints. |
| 77 | + [#9846](https://github.com/rust-lang/cargo/pull/9846) |
| 78 | +- Improve resolver message to include dependency requirements. |
| 79 | + [#9827](https://github.com/rust-lang/cargo/pull/9827) |
| 80 | +- `cargo fix` now has more debug logging available with the `CARGO_LOG` |
| 81 | + environment variable. |
| 82 | + [#9831](https://github.com/rust-lang/cargo/pull/9831) |
| 83 | +- Changed `cargo fix --edition` to emit a warning when on the latest stable |
| 84 | + edition when running on stable instead of generating an error. |
| 85 | + [#9792](https://github.com/rust-lang/cargo/pull/9792) |
| 86 | +- `cargo install` will now determine all of the packages to install before |
| 87 | + starting the installation, which should help with reporting errors without |
| 88 | + partially installing. |
| 89 | + [#9793](https://github.com/rust-lang/cargo/pull/9793) |
| 90 | +- The resolver report for `cargo fix --edition` now includes differences for |
| 91 | + dev-dependencies. |
| 92 | + [#9803](https://github.com/rust-lang/cargo/pull/9803) |
| 93 | +- `cargo fix` will now show better diagnostics for abnormal errors from `rustc`. |
| 94 | + [#9799](https://github.com/rust-lang/cargo/pull/9799) |
| 95 | +- Entries in `cargo --list` are now deduplicated. |
| 96 | + [#9773](https://github.com/rust-lang/cargo/pull/9773) |
| 97 | +- Aliases are now included in `cargo --list`. |
| 98 | + [#9764](https://github.com/rust-lang/cargo/pull/9764) |
30 | 99 |
|
31 | 100 | ### Fixed
|
32 | 101 |
|
| 102 | +- Fixed panic with build-std of a proc-macro. |
| 103 | + [#9834](https://github.com/rust-lang/cargo/pull/9834) |
| 104 | +- Fixed running `cargo` recursively from proc-macros while running `cargo fix`. |
| 105 | + [#9818](https://github.com/rust-lang/cargo/pull/9818) |
| 106 | +- Return an error instead of a stack overflow for command alias loops. |
| 107 | + [#9791](https://github.com/rust-lang/cargo/pull/9791) |
| 108 | + |
33 | 109 | ### Nightly only
|
34 | 110 |
|
| 111 | +- Added `[future-incompat-report]` config section. |
| 112 | + [#9774](https://github.com/rust-lang/cargo/pull/9774) |
| 113 | +- Fixed value-after-table error with custom named profiles. |
| 114 | + [#9789](https://github.com/rust-lang/cargo/pull/9789) |
| 115 | +- Added the `different-binary-name` feature to support specifying a |
| 116 | + non-rust-identifier for a binary name. |
| 117 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#different-binary-name) |
| 118 | + [#9627](https://github.com/rust-lang/cargo/pull/9627) |
| 119 | +- Added a profile option to select the codegen backend. |
| 120 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#codegen-backend) |
| 121 | + [#9118](https://github.com/rust-lang/cargo/pull/9118) |
| 122 | + |
35 | 123 |
|
36 | 124 | ## Cargo 1.55 (2021-09-09)
|
37 | 125 | [aa8b0929...rust-1.55.0](https://github.com/rust-lang/cargo/compare/aa8b0929...rust-1.55.0)
|
|
100 | 188 | includes several changes, such as new behavior when run on WSL, and using
|
101 | 189 | the system `xdg-open` on Linux.
|
102 | 190 | [#9583](https://github.com/rust-lang/cargo/pull/9583)
|
| 191 | +- Updated to libcurl 7.78. |
| 192 | + [#9809](https://github.com/rust-lang/cargo/pull/9809) |
| 193 | + [#9810](https://github.com/rust-lang/cargo/pull/9810) |
103 | 194 |
|
104 | 195 | ### Fixed
|
105 | 196 |
|
|
0 commit comments