|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.71 (2023-07-13) |
| 4 | +[84b7041f...HEAD](https://github.com/rust-lang/cargo/compare/84b7041f...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +- Better error message when getting an empty dependency table in Cargo.toml. |
| 11 | + [#11997](https://github.com/rust-lang/cargo/pull/11997) |
| 12 | +- Use restricted Damerau-Levenshtein algorithm to provide typo suggestions. |
| 13 | + [#11963](https://github.com/rust-lang/cargo/pull/11963) |
| 14 | + |
| 15 | +### Fixed |
| 16 | + |
| 17 | +- Corrected the bug report URL for `cargo clippy --fix`. |
| 18 | + [#11882](https://github.com/rust-lang/cargo/pull/11882) |
| 19 | + |
| 20 | +### Nightly only |
| 21 | + |
| 22 | +- Recompile on profile rustflags changes. |
| 23 | + [#11981](https://github.com/rust-lang/cargo/pull/11981) |
| 24 | + |
| 25 | +### Documentation |
| 26 | + |
| 27 | +### Internal |
| 28 | + |
| 29 | +- Cargo is now a Cargo workspace. We dogfood ourselves finally. |
| 30 | + [#11851](https://github.com/rust-lang/cargo/pull/11851) |
| 31 | + [#11994](https://github.com/rust-lang/cargo/pull/11994) |
| 32 | + [#11996](https://github.com/rust-lang/cargo/pull/11996) |
| 33 | +- Allow win/mac credential managers to build on all platforms. |
| 34 | + [#11993](https://github.com/rust-lang/cargo/pull/11993) |
| 35 | +- Use `openssl` only on non-Windows platforms. |
| 36 | + [#11979](https://github.com/rust-lang/cargo/pull/11979) |
| 37 | +- A new, straightforward issue labels system for Cargo contributors. |
| 38 | + [docs](https://doc.crates.io/contrib/issues.html) |
| 39 | + [#11995](https://github.com/rust-lang/cargo/pull/11995) |
| 40 | + [#12002](https://github.com/rust-lang/cargo/pull/12002) |
| 41 | + [#12003](https://github.com/rust-lang/cargo/pull/12003) |
| 42 | + |
3 | 43 | ## Cargo 1.70 (2023-06-01)
|
4 |
| -[9880b408...HEAD](https://github.com/rust-lang/cargo/compare/9880b408...HEAD) |
| 44 | +[9880b408...rust-1.70.0](https://github.com/rust-lang/cargo/compare/9880b408...rust-1.70.0) |
5 | 45 |
|
6 | 46 | ### Added
|
7 | 47 |
|
| 48 | +- 🎉 Added `cargo logout` command for removing an API token from the registry locally. |
| 49 | + [docs](https://doc.rust-lang.org/nightly/cargo/commands/cargo-logout.html) |
| 50 | + [#11919](https://github.com/rust-lang/cargo/pull/11919) |
| 51 | + [#11950](https://github.com/rust-lang/cargo/pull/11950) |
| 52 | +- Added `--ignore-rust-version` flag to `cargo install`. |
| 53 | + [#11859](https://github.com/rust-lang/cargo/pull/11859) |
8 | 54 | - The `CARGO_PKG_README` environment variable is now set to the path to the
|
9 |
| - README file when compiling a crate. |
| 55 | + README file when compiling a crate. |
10 | 56 | [#11645](https://github.com/rust-lang/cargo/pull/11645)
|
11 | 57 | - Cargo now displays richer information of Cargo target failed to compile.
|
12 | 58 | [#11636](https://github.com/rust-lang/cargo/pull/11636)
|
|
18 | 64 | ([docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#registry-protocols))
|
19 | 65 | [#11791](https://github.com/rust-lang/cargo/pull/11791)
|
20 | 66 | [#11783](https://github.com/rust-lang/cargo/pull/11783)
|
| 67 | +- ❗ `cargo login` and `cargo logout` now uses the registry specified in |
| 68 | + `registry.default`. This was an unintentional regression. |
| 69 | + [#11949](https://github.com/rust-lang/cargo/pull/11949) |
| 70 | +- `cargo update` accurately shows `Downgrading` status when downgrading dependencies. |
| 71 | + [#11839](https://github.com/rust-lang/cargo/pull/11839) |
| 72 | +- Added more information to HTTP errors to help with debugging. |
| 73 | + [#11878](https://github.com/rust-lang/cargo/pull/11878) |
| 74 | +- Added delays to network retries in Cargo. |
| 75 | + [#11881](https://github.com/rust-lang/cargo/pull/11881) |
| 76 | +- Refined `cargo puslish` message when waiting for a publish complete. |
| 77 | + [#11713](https://github.com/rust-lang/cargo/pull/11713) |
| 78 | +- Better error message when `cargo install` from a git repository but found |
| 79 | + multiple packages. |
| 80 | + [#11835](https://github.com/rust-lang/cargo/pull/11835) |
21 | 81 |
|
22 | 82 | ### Fixed
|
23 | 83 |
|
|
29 | 89 | [#11805](https://github.com/rust-lang/cargo/pull/11805)
|
30 | 90 | - Don't panic when [`patch`] involved in dependency resolution results in a conflict.
|
31 | 91 | [#11770](https://github.com/rust-lang/cargo/pull/11770)
|
| 92 | +- Fixed credential token format validation. |
| 93 | + [#11951](https://github.com/rust-lang/cargo/pull/11951) |
| 94 | +- Added the missing token format validation on publish. |
| 95 | + [#11952](https://github.com/rust-lang/cargo/pull/11952) |
| 96 | +- Fixed case mismatches when looking up env vars in the Config snapshot. |
| 97 | + [#11824](https://github.com/rust-lang/cargo/pull/11824) |
| 98 | +- `cargo new` generates the correct `.hgignore` aligning semantics with other |
| 99 | + VCS ignore files. |
| 100 | + [#11855](https://github.com/rust-lang/cargo/pull/11855) |
32 | 101 |
|
33 | 102 | ### Nightly only
|
34 | 103 |
|
|
42 | 111 | ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html##gitoxide))
|
43 | 112 | [#11448](https://github.com/rust-lang/cargo/pull/11448)
|
44 | 113 | [#11800](https://github.com/rust-lang/cargo/pull/11800)
|
| 114 | + [#11822](https://github.com/rust-lang/cargo/pull/11822) |
| 115 | + [#11830](https://github.com/rust-lang/cargo/pull/11830) |
45 | 116 | - Removed `-Zjobserver-per-rustc`. Its rustc counterpart never got landed.
|
46 | 117 | [#11764](https://github.com/rust-lang/cargo/pull/11764)
|
47 | 118 |
|
|
51 | 122 | [#11793](https://github.com/rust-lang/cargo/pull/11793)
|
52 | 123 | - Enhanced the documentation of timing report with graphs.
|
53 | 124 | [#11798](https://github.com/rust-lang/cargo/pull/11798)
|
| 125 | +- Clarified requirements about the state of the registry index after publish. |
| 126 | + [#11926](https://github.com/rust-lang/cargo/pull/11926) |
| 127 | +- Clarified docs on `-C` that it appears before the command. |
| 128 | + [#11947](https://github.com/rust-lang/cargo/pull/11947) |
| 129 | +- Clarified working directory behaviour for `cargo test`, `cargo bench` and |
| 130 | + `cargo run`. |
| 131 | + [#11901](https://github.com/rust-lang/cargo/pull/11901) |
| 132 | +- Fixed the doc of `registries.name.index` configuration. |
| 133 | + [#11880](https://github.com/rust-lang/cargo/pull/11880) |
| 134 | +- Notice for potential unexpected shell expansions in help text of `cargo-add`. |
| 135 | + [#11826](https://github.com/rust-lang/cargo/pull/11826) |
| 136 | +- Updated external-tools JSON docs. |
| 137 | + [#11918](https://github.com/rust-lang/cargo/pull/11918) |
| 138 | +- Call out the differences between the index JSON and the API or metadata. |
| 139 | + [#11927](https://github.com/rust-lang/cargo/pull/11927) |
| 140 | +- Consistently use `@` when mentioning pkgid format. |
| 141 | + [#11956](https://github.com/rust-lang/cargo/pull/11956) |
| 142 | +- Stopped using `UncanonicalizedIter` for `QueryKind::Exact`. |
| 143 | + [#11937](https://github.com/rust-lang/cargo/pull/11937) |
| 144 | +- Don't query permutations of the path prefix of a dependency in the registry index. |
| 145 | + [#11936](https://github.com/rust-lang/cargo/pull/11936) |
| 146 | +- Enabled clippy warning on `disallowed_methods` for `std::env::var` and friends. |
| 147 | + [#11828](https://github.com/rust-lang/cargo/pull/11828) |
| 148 | +- Enhanced Cargo Contributor Guide. |
| 149 | + [#11825](https://github.com/rust-lang/cargo/pull/11825) |
| 150 | + [#11842](https://github.com/rust-lang/cargo/pull/11842) |
| 151 | + [#11869](https://github.com/rust-lang/cargo/pull/11869) |
| 152 | + [#11876](https://github.com/rust-lang/cargo/pull/11876) |
| 153 | +- Moved a part of Cargo Contributor Guide to Cargo API documentation. |
| 154 | + [docs](https://doc.rust-lang.org/nightly/nightly-rustc/cargo) |
| 155 | + [#11809](https://github.com/rust-lang/cargo/pull/11809) |
| 156 | + [#11841](https://github.com/rust-lang/cargo/pull/11841) |
| 157 | + [#11850](https://github.com/rust-lang/cargo/pull/11850) |
| 158 | + [#11870](https://github.com/rust-lang/cargo/pull/11870) |
| 159 | +- Cargo team now arranges |
| 160 | + [office hours](https://github.com/rust-lang/cargo/wiki/Office-Hours)! |
| 161 | + [#11903](https://github.com/rust-lang/cargo/pull/11903) |
54 | 162 |
|
55 | 163 | ### Internal
|
56 | 164 |
|
57 | 165 | - Switched to `sha2` crate for SHA256 calculation.
|
58 | 166 | [#11795](https://github.com/rust-lang/cargo/pull/11795)
|
59 | 167 | [#11807](https://github.com/rust-lang/cargo/pull/11807)
|
60 |
| -- Updated to `base64` v0.21.0. |
| 168 | +- Switched benchsuite to the index archive. |
| 169 | + [#11933](https://github.com/rust-lang/cargo/pull/11933) |
| 170 | +- Updated to `base64` 0.21.0. |
61 | 171 | [#11796](https://github.com/rust-lang/cargo/pull/11796)
|
| 172 | +- Updated to `curl-sys` 0.4.61, which corresponds to curl 8.0.1. |
| 173 | + [#11871](https://github.com/rust-lang/cargo/pull/11871) |
| 174 | +- Updated to `proptest` 1.1.0. |
| 175 | + [#11886](https://github.com/rust-lang/cargo/pull/11886) |
| 176 | +- Updated to `git2` 0.17.0, which corresponds to libgit2 1.6.3. |
| 177 | + [#11928](https://github.com/rust-lang/cargo/pull/11928) |
| 178 | +- Updated to `clap` 4.2. |
| 179 | + [#11904](https://github.com/rust-lang/cargo/pull/11904) |
62 | 180 | - Integrated `cargo-deny` in Cargo its own CI pipeline.
|
63 | 181 | [#11761](https://github.com/rust-lang/cargo/pull/11761)
|
| 182 | +- Made non-blocking IO calls more robust. |
| 183 | + [#11624](https://github.com/rust-lang/cargo/pull/11624) |
| 184 | +- Dropped `derive` feature from `serde` in `cargo-platform`. |
| 185 | + [#11915](https://github.com/rust-lang/cargo/pull/11915) |
| 186 | +- Replaced `std::fs::canonicalize` with a more robust `try_canonicalize`. |
| 187 | + [#11866](https://github.com/rust-lang/cargo/pull/11866) |
64 | 188 |
|
65 | 189 | ## Cargo 1.69 (2023-04-20)
|
66 | 190 | [985d561f...rust-1.69.0](https://github.com/rust-lang/cargo/compare/985d561f...rust-1.69.0)
|
|
0 commit comments