|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.67 (2023-01-26) |
| 4 | +[7e484fc1...HEAD](https://github.com/rust-lang/cargo/compare/7e484fc1...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +### Fixed |
| 11 | + |
| 12 | +### Nightly only |
| 13 | + |
3 | 14 | ## Cargo 1.66 (2022-12-15)
|
4 |
| -[08250398...HEAD](https://github.com/rust-lang/cargo/compare/08250398...HEAD) |
| 15 | +[08250398...rust-1.66.0](https://github.com/rust-lang/cargo/compare/08250398...rust-1.66.0) |
5 | 16 |
|
6 | 17 | ### Added
|
7 | 18 |
|
| 19 | +- 🎉 Added `cargo remove` command for removing dependencies from `Cargo.toml`. |
| 20 | + [docs](https://doc.rust-lang.org/nightly/cargo/commands/cargo-remove.html) |
| 21 | + [#11059](https://github.com/rust-lang/cargo/pull/11059) |
| 22 | + [#11099](https://github.com/rust-lang/cargo/pull/11099) |
| 23 | + [#11193](https://github.com/rust-lang/cargo/pull/11193) |
| 24 | + [#11204](https://github.com/rust-lang/cargo/pull/11204) |
| 25 | + [#11227](https://github.com/rust-lang/cargo/pull/11227) |
| 26 | +- Added support for git dependencies having git submodules with relative paths. |
| 27 | + [#11106](https://github.com/rust-lang/cargo/pull/11106) |
| 28 | +- Cargo now sends requests with a `Accept-Encoding` header to registries. |
| 29 | + [#11292](https://github.com/rust-lang/cargo/pull/11292) |
| 30 | +- Cargo now forwards non-UTF8 arguments to external subcommands. |
| 31 | + [#11118](https://github.com/rust-lang/cargo/pull/11118) |
| 32 | + |
8 | 33 | ### Changed
|
9 | 34 |
|
| 35 | +- ❗ Disambiguate source replacements from various angles. |
| 36 | + [RFC-3289](https://github.com/rust-lang/rfcs/blob/master/text/3289-source_replacement_ambiguity.md) |
| 37 | + [#10907](https://github.com/rust-lang/cargo/pull/10907) |
| 38 | + - When the crates-io source is replaced, the user is required to specify which registry to use with `--registry <NAME>` when performing an API operation. |
| 39 | + - Publishing to source-replaced crates.io is no longer permitted using the crates.io token (`registry.token`). |
| 40 | + - In source replacement, the `replace-with` key can reference the name of an alternative registry in the `[registries]` table. |
| 41 | +- ❗ `cargo publish` now blocks until it sees the published package in the index. |
| 42 | + [#11062](https://github.com/rust-lang/cargo/pull/11062) |
| 43 | + [#11210](https://github.com/rust-lang/cargo/pull/11210) |
| 44 | + [#11216](https://github.com/rust-lang/cargo/pull/11216) |
| 45 | + [#11255](https://github.com/rust-lang/cargo/pull/11255) |
| 46 | +- Cargo now uses the clap v4 library for command-line argument parsing. |
| 47 | + [#11116](https://github.com/rust-lang/cargo/pull/11116) |
| 48 | + [#11119](https://github.com/rust-lang/cargo/pull/11119) |
| 49 | + [#11159](https://github.com/rust-lang/cargo/pull/11159) |
| 50 | + [#11190](https://github.com/rust-lang/cargo/pull/11190) |
| 51 | + [#11239](https://github.com/rust-lang/cargo/pull/11239) |
| 52 | + [#11280](https://github.com/rust-lang/cargo/pull/11280) |
| 53 | +- Cargo now only warns on a user-defined alias shadowing an external command. |
| 54 | + [#11170](https://github.com/rust-lang/cargo/pull/11170) |
| 55 | +- Several documentation improvements. |
| 56 | + [#10770](https://github.com/rust-lang/cargo/pull/10770) |
| 57 | + [#10938](https://github.com/rust-lang/cargo/pull/10938) |
| 58 | + [#11082](https://github.com/rust-lang/cargo/pull/11082) |
| 59 | + [#11093](https://github.com/rust-lang/cargo/pull/11093) |
| 60 | + [#11157](https://github.com/rust-lang/cargo/pull/11157) |
| 61 | + [#11185](https://github.com/rust-lang/cargo/pull/11185) |
| 62 | + [#11207](https://github.com/rust-lang/cargo/pull/11207) |
| 63 | + [#11219](https://github.com/rust-lang/cargo/pull/11219) |
| 64 | + [#11240](https://github.com/rust-lang/cargo/pull/11240) |
| 65 | + [#11241](https://github.com/rust-lang/cargo/pull/11241) |
| 66 | + [#11282](https://github.com/rust-lang/cargo/pull/11282) |
| 67 | + |
10 | 68 | ### Fixed
|
11 | 69 |
|
| 70 | +- ❗ Config file loaded via `cargo --config <file>` now takes priority over |
| 71 | + environment variables. This is a documented behaviour but the old |
| 72 | + implementation accidentally got it wrong. |
| 73 | + [#11077](https://github.com/rust-lang/cargo/pull/11077) |
| 74 | +- ❗ Cargo collects rustflags in `target.cfg(…).rustflags` more correctly |
| 75 | + and warns if that's not enough for convergence. |
| 76 | + [#11114](https://github.com/rust-lang/cargo/pull/11114) |
| 77 | +- Final artifacts not removed by linker should be removed before a compilation gets started. |
| 78 | + [#11122](https://github.com/rust-lang/cargo/pull/11122) |
| 79 | +- `cargo add` now reports unknown features in a more discoverable manner. |
| 80 | + [#11098](https://github.com/rust-lang/cargo/pull/11098) |
| 81 | +- Cargo now reports command aliasing failure with more error contexts. |
| 82 | + [#11087](https://github.com/rust-lang/cargo/pull/11087) |
| 83 | +- A better error message when `cargo login` prompt receives empty input. |
| 84 | + [#11145](https://github.com/rust-lang/cargo/pull/11145) |
| 85 | +- A better error message for fields with wrong types |
| 86 | + where workspace inheritance is supported. |
| 87 | + [#11113](https://github.com/rust-lang/cargo/pull/11113) |
| 88 | +- A better error message when mixing feature syntax `dep:` with `/`. |
| 89 | + [#11172](https://github.com/rust-lang/cargo/pull/11172) |
| 90 | +- A better error message when publishing but `package.publish` is `false` |
| 91 | + in the manifest. |
| 92 | + [#11280](https://github.com/rust-lang/cargo/pull/11280) |
| 93 | + |
12 | 94 | ### Nightly only
|
13 | 95 |
|
| 96 | +- Added new config option `publish.timeout` behind `-Zpublish-timeout`. |
| 97 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#publish-timeout) |
| 98 | + [#11230](https://github.com/rust-lang/cargo/pull/11230) |
| 99 | +- Added retry support to sparse registries. |
| 100 | + [#11069](https://github.com/rust-lang/cargo/pull/11069) |
| 101 | +- Fixed sparse registry lockfile urls containing `registry+sparse+`. |
| 102 | + [#11177](https://github.com/rust-lang/cargo/pull/11177) |
| 103 | +- Add new config option `registries.crates-io.protocol` |
| 104 | + for controlling crates.io protocol. |
| 105 | + [#11215](https://github.com/rust-lang/cargo/pull/11215) |
| 106 | +- Removed `sparse+` prefix for index.crates.io. |
| 107 | + [#11247](https://github.com/rust-lang/cargo/pull/11247) |
| 108 | +- Fixed publishing with a dependency on a sparse registry. |
| 109 | + [#11268](https://github.com/rust-lang/cargo/pull/11268) |
| 110 | +- Fixed confusing error messages when using `-Zsparse-registry`. |
| 111 | + [#11283](https://github.com/rust-lang/cargo/pull/11283) |
| 112 | +- Fixed 410 gone response handling for sparse registries. |
| 113 | + [#11286](https://github.com/rust-lang/cargo/pull/11286) |
| 114 | + |
14 | 115 | ## Cargo 1.65 (2022-11-03)
|
15 | 116 | [4fd148c4...rust-1.65.0](https://github.com/rust-lang/cargo/compare/4fd148c4...rust-1.65.0)
|
16 | 117 |
|
|
0 commit comments