|
1 | 1 | # Changelog
|
2 | 2 |
|
3 | 3 | ## Cargo 1.75 (2023-12-28)
|
4 |
| -[59596f0f...HEAD](https://github.com/rust-lang/cargo/compare/59596f0f...HEAD) |
| 4 | +[59596f0f...rust-1.75.0](https://github.com/rust-lang/cargo/compare/59596f0f...rust-1.75.0) |
5 | 5 |
|
6 | 6 | ### Added
|
7 | 7 |
|
| 8 | +- `package.version` field in `Cargo.toml` is now optional and defaults to `0.0.0`. |
| 9 | + This field is still required for publishing packages. |
| 10 | + [#12786](https://github.com/rust-lang/cargo/pull/12786) |
| 11 | +- Links in `--timings` and `cargo doc` outputs are clickable on supported terminals, |
| 12 | + controllable through `term.hyperlinks` config value. |
| 13 | + [#12889](https://github.com/rust-lang/cargo/pull/12889) |
| 14 | +- Print environment variables for build script executions with `-vv`. |
| 15 | + [#12829](https://github.com/rust-lang/cargo/pull/12829) |
| 16 | +- cargo-new: add new packages to [workspace.members] automatically. |
| 17 | + [#12779](https://github.com/rust-lang/cargo/pull/12779) |
| 18 | +- cargo-doc: print a new `Generated` status displaying the full path. |
| 19 | + [#12859](https://github.com/rust-lang/cargo/pull/12859) |
| 20 | + |
8 | 21 | ### Changed
|
9 | 22 |
|
| 23 | +- cargo-new: warn if crate name doesn't follow snake_case or kebab-case. |
| 24 | + [#12766](https://github.com/rust-lang/cargo/pull/12766) |
| 25 | +- cargo-install: clarify the arg `<crate>` to install is positional. |
| 26 | + [#12841](https://github.com/rust-lang/cargo/pull/12841) |
| 27 | +- cargo-install: Suggest an alternative version on MSRV failure. |
| 28 | + [#12798](https://github.com/rust-lang/cargo/pull/12798) |
| 29 | +- cargo-install: reports more detailed SemVer errors. |
| 30 | + [#12924](https://github.com/rust-lang/cargo/pull/12924) |
| 31 | +- cargo-install: install only once if there are crates duplicated. |
| 32 | + [#12868](https://github.com/rust-lang/cargo/pull/12868) |
| 33 | +- cargo-remove: Clarify flag behavior of different dependency kinds. |
| 34 | + [#12823](https://github.com/rust-lang/cargo/pull/12823) |
| 35 | +- cargo-remove: suggest the dependency to remove exists only in the other section. |
| 36 | + [#12865](https://github.com/rust-lang/cargo/pull/12865) |
| 37 | +- cargo-update: Do not call it "Downgrading" when difference is only build metadata. |
| 38 | + [#12796](https://github.com/rust-lang/cargo/pull/12796) |
| 39 | +- Enhanced help text to clarify `--test` flag is for Cargo targets, not test functions. |
| 40 | + [#12915](https://github.com/rust-lang/cargo/pull/12915) |
| 41 | +- Included package name/version in build script warnings. |
| 42 | + [#12799](https://github.com/rust-lang/cargo/pull/12799) |
| 43 | +- Provide next steps for bad -Z flag. |
| 44 | + [#12857](https://github.com/rust-lang/cargo/pull/12857) |
| 45 | +- Suggest `cargo search` when `cargo-<command>` cannot be found. |
| 46 | + [#12840](https://github.com/rust-lang/cargo/pull/12840) |
| 47 | +- Do not allow empty feature name. |
| 48 | + [#12928](https://github.com/rust-lang/cargo/pull/12928) |
| 49 | +- Added unsupported short flag suggestion for `--target` and `--exclude` flags. |
| 50 | + [#12805](https://github.com/rust-lang/cargo/pull/12805) |
| 51 | +- Added unsupported short flag suggestion for `--out-dir` flag. |
| 52 | + [#12755](https://github.com/rust-lang/cargo/pull/12755) |
| 53 | +- Added unsupported lowercase `-z` flag suggestion for `-Z` flag. |
| 54 | + [#12788](https://github.com/rust-lang/cargo/pull/12788) |
| 55 | +- Added better suggestion for unsupported `--path` flag. |
| 56 | + [#12811](https://github.com/rust-lang/cargo/pull/12811) |
| 57 | +- Added detailed message when target directory path is invalid. |
| 58 | + [#12820](https://github.com/rust-lang/cargo/pull/12820) |
| 59 | + |
10 | 60 | ### Fixed
|
11 | 61 |
|
12 | 62 | - Fixed corruption when cargo was killed while writing to files.
|
13 | 63 | [#12744](https://github.com/rust-lang/cargo/pull/12744)
|
| 64 | +- cargo-add: Preserve more comments |
| 65 | + [#12838](https://github.com/rust-lang/cargo/pull/12838) |
| 66 | +- cargo-fix: preserve jobserver file descriptors on rustc invocation. |
| 67 | + [#12951](https://github.com/rust-lang/cargo/pull/12951) |
| 68 | +- cargo-remove: Preserve feature comments |
| 69 | + [#12837](https://github.com/rust-lang/cargo/pull/12837) |
| 70 | +- Removed unnecessary backslash in timings HTML report when error happens. |
| 71 | + [#12934](https://github.com/rust-lang/cargo/pull/12934) |
| 72 | +- Fixed error message that invalid a feature name can contain `-`. |
| 73 | + [#12939](https://github.com/rust-lang/cargo/pull/12939) |
| 74 | +- When there's a version of a dependency in the lockfile, |
| 75 | + Cargo would use that "exact" version, including the build metadata. |
| 76 | + [#12772](https://github.com/rust-lang/cargo/pull/12772) |
14 | 77 |
|
15 | 78 | ### Nightly only
|
16 | 79 |
|
| 80 | +- Added `Edition2024` unstable feature. |
| 81 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024) |
| 82 | + [#12771](https://github.com/rust-lang/cargo/pull/12771) |
| 83 | +- 🔥 The `-Ztrim-paths` feature adds a new profile setting (among other things) |
| 84 | + to control how paths are sanitized in the resulting binary. |
| 85 | + ([RFC 3127](https://github.com/rust-lang/rfcs/blob/master/text/3127-trim-paths.md)) |
| 86 | + ([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-trim-paths-option)) |
| 87 | + [#12625](https://github.com/rust-lang/cargo/pull/12625) |
| 88 | + [#12900](https://github.com/rust-lang/cargo/pull/12900) |
| 89 | + [#12908](https://github.com/rust-lang/cargo/pull/12908) |
| 90 | +- `-Zcheck-cfg`: Adjusted for new rustc syntax and behavior. |
| 91 | + [#12845](https://github.com/rust-lang/cargo/pull/12845) |
| 92 | +- `-Zcheck-cfg`: Remove outdated option to `-Zcheck-cfg` warnings. |
| 93 | + [#12884](https://github.com/rust-lang/cargo/pull/12884) |
| 94 | +- `public-dependency`: Support `public` dependency configuration with workspace deps. |
| 95 | + [#12817](https://github.com/rust-lang/cargo/pull/12817) |
| 96 | + |
17 | 97 | ### Documentation
|
18 | 98 |
|
19 | 99 | - profile: add missing `strip` info.
|
20 | 100 | [#12754](https://github.com/rust-lang/cargo/pull/12754)
|
| 101 | +- features: a note about the new limit on number of features. |
| 102 | + [#12913](https://github.com/rust-lang/cargo/pull/12913) |
| 103 | +- crates-io: Add doc comment for `NewCrate` struct. |
| 104 | + [#12782](https://github.com/rust-lang/cargo/pull/12782) |
| 105 | +- resolver: Highlight commands to answer dep resolution questions. |
| 106 | + [#12903](https://github.com/rust-lang/cargo/pull/12903) |
| 107 | +- cargo-bench: `--bench` is passed in unconditionally to bench harnesses. |
| 108 | + [#12850](https://github.com/rust-lang/cargo/pull/12850) |
| 109 | +- cargo-login: mention args after `--` in manpage. |
| 110 | + [#12832](https://github.com/rust-lang/cargo/pull/12832) |
| 111 | +- cargo-vendor: clarify config to use vendored source is printed to stdout |
| 112 | + [#12893](https://github.com/rust-lang/cargo/pull/12893) |
| 113 | +- manifest: update to SPDX 2.3 license expression and 3.20 license list. |
| 114 | + [#12827](https://github.com/rust-lang/cargo/pull/12827) |
| 115 | +- contrib: Policy on manifest editing |
| 116 | + [#12836](https://github.com/rust-lang/cargo/pull/12836) |
| 117 | +- contrib: use `AND` search terms in mdbook search and fixed broken links. |
| 118 | + [#12812](https://github.com/rust-lang/cargo/pull/12812) |
| 119 | + [#12813](https://github.com/rust-lang/cargo/pull/12813) |
| 120 | + [#12814](https://github.com/rust-lang/cargo/pull/12814) |
| 121 | +- contrib: Describe how to add a new package |
| 122 | + [#12878](https://github.com/rust-lang/cargo/pull/12878) |
| 123 | +- contrib: Removed review capacity notice. |
| 124 | + [#12842](https://github.com/rust-lang/cargo/pull/12842) |
21 | 125 |
|
22 | 126 | ### Internal
|
23 | 127 |
|
24 | 128 | - Updated to `itertools` 0.11.0.
|
25 | 129 | [#12759](https://github.com/rust-lang/cargo/pull/12759)
|
26 | 130 | - Updated to `cargo_metadata` 0.18.0.
|
27 | 131 | [#12758](https://github.com/rust-lang/cargo/pull/12758)
|
| 132 | +- Updated to `curl-sys` 0.4.68, which corresponds to curl 8.4.0. |
| 133 | + [#12808](https://github.com/rust-lang/cargo/pull/12808) |
| 134 | +- Updated to `toml` 0.8.2. |
| 135 | + [#12760](https://github.com/rust-lang/cargo/pull/12760) |
| 136 | +- Updated to `toml_edit` 0.20.2. |
| 137 | + [#12761](https://github.com/rust-lang/cargo/pull/12761) |
| 138 | +- Updated to `gix` to 0.55.2 |
| 139 | + [#12906](https://github.com/rust-lang/cargo/pull/12906) |
28 | 140 | - Disabled the `custom_target::custom_bin_target` test on windows-gnu.
|
29 | 141 | [#12763](https://github.com/rust-lang/cargo/pull/12763)
|
| 142 | +- Refactored `Cargo.toml` parsing code in preparation of extracting an official |
| 143 | + schema API. |
| 144 | + [#12768](https://github.com/rust-lang/cargo/pull/12768) |
| 145 | + [#12881](https://github.com/rust-lang/cargo/pull/12881) |
| 146 | + [#12902](https://github.com/rust-lang/cargo/pull/12902) |
| 147 | + [#12911](https://github.com/rust-lang/cargo/pull/12911) |
| 148 | + [#12948](https://github.com/rust-lang/cargo/pull/12948) |
| 149 | +- Split out SemVer logic to its own module. |
| 150 | + [#12926](https://github.com/rust-lang/cargo/pull/12926) |
| 151 | + [#12940](https://github.com/rust-lang/cargo/pull/12940) |
| 152 | +- source: Prepare for new `PackageIDSpec` syntax |
| 153 | + [#12938](https://github.com/rust-lang/cargo/pull/12938) |
| 154 | +- resolver: Consolidate logic in `VersionPreferences` |
| 155 | + [#12930](https://github.com/rust-lang/cargo/pull/12930) |
| 156 | +- Make the `SourceId::precise` field an Enum. |
| 157 | + [#12849](https://github.com/rust-lang/cargo/pull/12849) |
| 158 | +- shell: Write at once rather than in fragments. |
| 159 | + [#12880](https://github.com/rust-lang/cargo/pull/12880) |
| 160 | +- Move up looking at index summary enum |
| 161 | + [#12749](https://github.com/rust-lang/cargo/pull/12749) |
| 162 | + [#12923](https://github.com/rust-lang/cargo/pull/12923) |
| 163 | +- Generate redirection HTML pages in CI for Cargo Contributor Guide. |
| 164 | + [#12846](https://github.com/rust-lang/cargo/pull/12846) |
| 165 | +- Add new package cache lock modes. |
| 166 | + [#12706](https://github.com/rust-lang/cargo/pull/12706) |
| 167 | +- Add regression test for issue 6915: features and transitive dev deps. |
| 168 | + [#12907](https://github.com/rust-lang/cargo/pull/12907) |
| 169 | +- Auto-labeling when PR review state changes. |
| 170 | + [#12856](https://github.com/rust-lang/cargo/pull/12856) |
| 171 | +- credential: include license files in all published crates. |
| 172 | + [#12953](https://github.com/rust-lang/cargo/pull/12953) |
| 173 | +- credential: Filter `cargo-credential-*` dependencies by OS. |
| 174 | + [#12949](https://github.com/rust-lang/cargo/pull/12949) |
| 175 | +- ci: bump cargo-semver-checks to 0.24.0 |
| 176 | + [#12795](https://github.com/rust-lang/cargo/pull/12795) |
| 177 | +- ci: set and verify all MSRVs for Cargo's crates automatically. |
| 178 | + [#12767](https://github.com/rust-lang/cargo/pull/12767) |
| 179 | + [#12654](https://github.com/rust-lang/cargo/pull/12654) |
| 180 | +- ci: use separate concurrency group for publishing Cargo Contributor Book. |
| 181 | + [#12834](https://github.com/rust-lang/cargo/pull/12834) |
| 182 | + [#12835](https://github.com/rust-lang/cargo/pull/12835) |
| 183 | +- ci: update `actions/checkout` action to v4 |
| 184 | + [#12762](https://github.com/rust-lang/cargo/pull/12762) |
| 185 | +- cargo-search: improved the margin calculation for the output. |
| 186 | + [#12890](https://github.com/rust-lang/cargo/pull/12890) |
30 | 187 |
|
31 | 188 | ## Cargo 1.74 (2023-11-16)
|
32 | 189 | [80eca0e5...rust-1.74.0](https://github.com/rust-lang/cargo/compare/80eca0e5...rust-1.74.0)
|
|
0 commit comments