|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.61 (2022-04-07) |
| 4 | +[ea2a21c9...HEAD](https://github.com/rust-lang/cargo/compare/ea2a21c9...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +- `cargo test --no-run` will now display the path to the test executables. |
| 11 | + [#10346](https://github.com/rust-lang/cargo/pull/10346) |
| 12 | + |
| 13 | +### Fixed |
| 14 | + |
| 15 | +### Nightly only |
| 16 | + |
| 17 | +- Added `-Z check-cfg-features` to enable compile-time checking of features |
| 18 | + [#10408](https://github.com/rust-lang/cargo/pull/10408) |
| 19 | +- Added `-Z bindeps` to support binary artifact dependencies (RFC-3028) |
| 20 | + [#9992](https://github.com/rust-lang/cargo/pull/9992) |
| 21 | + |
| 22 | + |
3 | 23 | ## Cargo 1.60 (2022-04-07)
|
4 |
| -[358e79fe...HEAD](https://github.com/rust-lang/cargo/compare/358e79fe...HEAD) |
| 24 | +[358e79fe...rust-1.60.0](https://github.com/rust-lang/cargo/compare/358e79fe...rust-1.60.0) |
5 | 25 |
|
6 | 26 | ### Added
|
| 27 | + |
7 | 28 | - 🎉 Added the `dep:` prefix in the `[features]` table to refer to an optional
|
8 | 29 | dependency. This allows creating feature names with the same name as a
|
9 | 30 | dependency, and allows for "hiding" optional dependencies so that they do
|
|
15 | 36 | is already enabled by some other feature.
|
16 | 37 | [docs](https://doc.rust-lang.org/nightly/cargo/reference/features.html#dependency-features)
|
17 | 38 | [#10269](https://github.com/rust-lang/cargo/pull/10269)
|
| 39 | +- 🎉 Added `--timings` option to generate an HTML report about build timing, |
| 40 | + concurrency, and CPU use. |
| 41 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/timings.html) |
| 42 | + [#10245](https://github.com/rust-lang/cargo/pull/10245) |
18 | 43 | - Added the `"v"` and `"features2"` fields to the registry index.
|
19 | 44 | The `"v"` field provides a method for compatibility with future changes to the index.
|
20 | 45 | [docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format)
|
21 | 46 | [#10269](https://github.com/rust-lang/cargo/pull/10269)
|
| 47 | +- Added bash completion for `cargo clippy` |
| 48 | + [#10347](https://github.com/rust-lang/cargo/pull/10347) |
| 49 | +- Added bash completion for `cargo report` |
| 50 | + [#10295](https://github.com/rust-lang/cargo/pull/10295) |
| 51 | +- Added support to build scripts for `rustc-link-arg-tests`, |
| 52 | + `rustc-link-arg-examples`, and `rustc-link-arg-benches`. |
| 53 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#outputs-of-the-build-script) |
| 54 | + [#10274](https://github.com/rust-lang/cargo/pull/10274) |
22 | 55 |
|
23 | 56 | ### Changed
|
| 57 | + |
24 | 58 | - Cargo now uses the clap 3 library for command-line argument parsing.
|
25 | 59 | [#10265](https://github.com/rust-lang/cargo/pull/10265)
|
26 | 60 | - The `build.pipelining` config option is now deprecated, pipelining will now
|
27 | 61 | always be enabled.
|
28 | 62 | [#10258](https://github.com/rust-lang/cargo/pull/10258)
|
| 63 | +- `cargo new` will now generate a `.gitignore` which only ignores `Cargo.lock` |
| 64 | + in the root of the repo, instead of any directory. |
| 65 | + [#10379](https://github.com/rust-lang/cargo/pull/10379) |
| 66 | +- Improved startup time of bash completion. |
| 67 | + [#10365](https://github.com/rust-lang/cargo/pull/10365) |
| 68 | +- The `--features` flag is now honored when used with the `--all-features` |
| 69 | + flag, which allows enabling features from other packages. |
| 70 | + [#10337](https://github.com/rust-lang/cargo/pull/10337) |
| 71 | +- Cargo now uses a different TOML parser. This should not introduce any |
| 72 | + user-visible changes. This paves the way to support format-preserving |
| 73 | + programmatic modification of TOML files for supporting `cargo add` and other |
| 74 | + future enhancements. |
| 75 | + [#10086](https://github.com/rust-lang/cargo/pull/10086) |
| 76 | +- Setting a library to emit both a `dylib` and `cdylib` is now an error, as |
| 77 | + this combination is not supported. |
| 78 | + [#10243](https://github.com/rust-lang/cargo/pull/10243) |
| 79 | +- `cargo --list` now includes the `help` command. |
| 80 | + [#10300](https://github.com/rust-lang/cargo/pull/10300) |
29 | 81 |
|
30 | 82 | ### Fixed
|
31 | 83 |
|
| 84 | +- Fixed running `cargo doc` on examples with dev-dependencies. |
| 85 | + [#10341](https://github.com/rust-lang/cargo/pull/10341) |
| 86 | +- Fixed `cargo install --path` for a path that is relative to a directory |
| 87 | + outside of the workspace in the current directory. |
| 88 | + [#10335](https://github.com/rust-lang/cargo/pull/10335) |
| 89 | +- `cargo test TEST_FILTER` should no longer build binaries that are explicitly |
| 90 | + disabled with `test = false`. |
| 91 | + [#10305](https://github.com/rust-lang/cargo/pull/10305) |
| 92 | + |
32 | 93 | ### Nightly only
|
| 94 | + |
33 | 95 | - Added `rustflags` option to a profile definition.
|
34 | 96 | [#10217](https://github.com/rust-lang/cargo/pull/10217)
|
35 |
| - |
| 97 | +- Changed `--config` to only support dotted keys. |
| 98 | + [#10176](https://github.com/rust-lang/cargo/pull/10176) |
36 | 99 |
|
37 | 100 | ## Cargo 1.59 (2022-02-24)
|
38 | 101 | [7f08ace4...rust-1.59.0](https://github.com/rust-lang/cargo/compare/7f08ace4...rust-1.59.0)
|
|
43 | 106 | behavior for removing symbols and debug information from binaries.
|
44 | 107 | [docs](https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#strip)
|
45 | 108 | [#10088](https://github.com/rust-lang/cargo/pull/10088)
|
| 109 | + [#10376](https://github.com/rust-lang/cargo/pull/10376) |
46 | 110 | - 🎉 Added future incompatible reporting.
|
47 | 111 | This provides reporting for when a future change in `rustc` may cause a
|
48 | 112 | package or any of its dependencies to stop building.
|
|
69 | 133 | [#10193](https://github.com/rust-lang/cargo/pull/10193)
|
70 | 134 | - Removed the deprecated `--host` CLI option.
|
71 | 135 | [#10145](https://github.com/rust-lang/cargo/pull/10145)
|
| 136 | + [#10327](https://github.com/rust-lang/cargo/pull/10327) |
72 | 137 | - Cargo should now report its version to always be in sync with `rustc`.
|
73 | 138 | [#10178](https://github.com/rust-lang/cargo/pull/10178)
|
74 | 139 | - Added EOPNOTSUPP to ignored file locking errors, which is relevant to BSD
|
|
83 | 148 | - Fixed so that the `doc=false` setting is honored in the `[lib]` definition
|
84 | 149 | of a dependency.
|
85 | 150 | [#10201](https://github.com/rust-lang/cargo/pull/10201)
|
| 151 | + [#10324](https://github.com/rust-lang/cargo/pull/10324) |
86 | 152 | - The `"executable"` field in the JSON option was incorrectly including the
|
87 | 153 | path to `index.html` when documenting a binary. It is now null.
|
88 | 154 | [#10171](https://github.com/rust-lang/cargo/pull/10171)
|
|
0 commit comments