Skip to content

Commit

Permalink
docs: update changelog for 1.83.0
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Oct 16, 2024
1 parent 6f92802 commit a867d90
Showing 1 changed file with 154 additions and 18 deletions.
172 changes: 154 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,185 @@
# Changelog

## Cargo 1.83 (2024-11-28)
[8f40fc59...HEAD](https://github.com/rust-lang/cargo/compare/8f40fc59...HEAD)
[8f40fc59...rust-1.83.0](https://github.com/rust-lang/cargo/compare/8f40fc59...rust-1.83.0)

### Added

- `--timings` HTML output can now auto-switch between light and dark color
schemes based on browser preference.
[#14588](https://github.com/rust-lang/cargo/pull/14588)
- Introduced a new `CARGO_MANIFEST_PATH` environment variable,
similar to `CARGO_MANIFEST_DIR` but pointing directly to the manifest file.
[#14404](https://github.com/rust-lang/cargo/pull/14404)
- manifest: Added `package.autolib`, allowing `[lib]` auto-discovery to be disabled.
[#14591](https://github.com/rust-lang/cargo/pull/14591)

### Changed

- Enhanced the missing feature error message.
- ❗️ Lockfile format v4 is now the default for creating/updating a lockfile.
Rust toolchains 1.78+ support lockfile v4.
For compatibility with earlier MSRV,
consdier setting the `package.rust-version` to 1.82 or earlier.
[#14595](https://github.com/rust-lang/cargo/pull/14595)
❗️ cargo-package: When using the `--package` flag, only the specified packages
are packaged. Previously, the package in the current working directory was
automatically selected for packaging.
[#14488](https://github.com/rust-lang/cargo/pull/14488)
- cargo-publish: Now fails fast if the package version is already published.
[#14448](https://github.com/rust-lang/cargo/pull/14448)
- Improved error messages for missing features.
[#14436](https://github.com/rust-lang/cargo/pull/14436)
- Enhanced the dependency update status message, including
- Reports incompatible packages with precise Rust version
[#14457](https://github.com/rust-lang/cargo/pull/14457)
- Reports incompatible-with-rustc when MSRV-resolver is disabled
[#14459](https://github.com/rust-lang/cargo/pull/14459)
- Reports compatible, incompatible, and direct-dep updates with different
colors and messages.
[#14461](https://github.com/rust-lang/cargo/pull/14461)
- The `Locking` status message stops showing workspace members.
[#14445](https://github.com/rust-lang/cargo/pull/14445)
- Log details of `rustc` invocation failure if no errors are seen
[#14453](https://github.com/rust-lang/cargo/pull/14453)
- cargo-package: Don't automatically include the current crate when packaging
[#14488](https://github.com/rust-lang/cargo/pull/14488)
- Uplifted `windows-gnullvm` import libraries, aligning them with `windows-gnu`.
[#14451](https://github.com/rust-lang/cargo/pull/14451)
- Suggest `cargo info` command in the `cargo search` result
[#14537](https://github.com/rust-lang/cargo/pull/14537)
- Enhanced dependency update status messages, now displaying updates
(compatible, incompatible, direct-dep) in different colors,
along with messages and MSRVs.
[#14440](https://github.com/rust-lang/cargo/pull/14440)
[#14457](https://github.com/rust-lang/cargo/pull/14457)
[#14459](https://github.com/rust-lang/cargo/pull/14459)
[#14461](https://github.com/rust-lang/cargo/pull/14461)
[#14471](https://github.com/rust-lang/cargo/pull/14471)
[#14568](https://github.com/rust-lang/cargo/pull/14568)
- The `Locking` status message no longer displays workspace members.
[#14445](https://github.com/rust-lang/cargo/pull/14445)

### Fixed

- cargo-add: Perform fuzzy search when translating package names
- Prevented duplicate library search environment variables when calling `cargo` recursively.
[#14464](https://github.com/rust-lang/cargo/pull/14464)
- Don't double-warn about `$CARGO_HOME/config` not having `.toml` extension.
[#14579](https://github.com/rust-lang/cargo/pull/14579)
- Correct diagnostic count message when using `--message-format json`.
[#14598](https://github.com/rust-lang/cargo/pull/14598)
- cargo-add: Perform fuzzy searches when translating package names
[#13765](https://github.com/rust-lang/cargo/pull/13765)
- cargo-new: only auto-add new packages to the workspace relative to the manifest,
rather than the current directory.
[#14505](https://github.com/rust-lang/cargo/pull/14505)
- cargo-rustc: Fixed parsing of comma-separated values in the `--crate-type` flag.
[#14499](https://github.com/rust-lang/cargo/pull/14499)
- cargo-vendor: trusts the crate version only when it originates from registries.
This causes git dependencies to be re-vendored even if they haven't changed.
[#14530](https://github.com/rust-lang/cargo/pull/14530)

### Nightly only

- ❗️ cargo-rustc: give trailing flags higher precedence on nightly.
The nightly gate will be removed after a few releases.
Please give feedback if it breaks any workflow.
A temporary environment variable `__CARGO_RUSTC_ORIG_ARGS_PRIO=1` is provided
to opt-out of the behavior.
[#14587](https://github.com/rust-lang/cargo/pull/14587)
- 🔥 cargo-install: a new `--dry-run` flag without actually installing binaries.
[#14280](https://github.com/rust-lang/cargo/pull/14280)
- 🔥 `native-completions`: moves the handwritten shell completion scripts to
Rust native, making it easier for us to add, extend, and test new completions.
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#native-completions))
[#14493](https://github.com/rust-lang/cargo/pull/14493)
[#14531](https://github.com/rust-lang/cargo/pull/14531)
[#14532](https://github.com/rust-lang/cargo/pull/14532)
[#14533](https://github.com/rust-lang/cargo/pull/14533)
[#14534](https://github.com/rust-lang/cargo/pull/14534)
[#14535](https://github.com/rust-lang/cargo/pull/14535)
[#14536](https://github.com/rust-lang/cargo/pull/14536)
[#14546](https://github.com/rust-lang/cargo/pull/14546)
[#14547](https://github.com/rust-lang/cargo/pull/14547)
[#14548](https://github.com/rust-lang/cargo/pull/14548)
[#14552](https://github.com/rust-lang/cargo/pull/14552)
[#14557](https://github.com/rust-lang/cargo/pull/14557)
[#14558](https://github.com/rust-lang/cargo/pull/14558)
[#14563](https://github.com/rust-lang/cargo/pull/14563)
[#14564](https://github.com/rust-lang/cargo/pull/14564)
[#14573](https://github.com/rust-lang/cargo/pull/14573)
[#14590](https://github.com/rust-lang/cargo/pull/14590)
[#14592](https://github.com/rust-lang/cargo/pull/14592)
[#14653](https://github.com/rust-lang/cargo/pull/14653)
[#14656](https://github.com/rust-lang/cargo/pull/14656)
- 🔥 `-Zchecksum-freshness`: replace the use of file mtimes in cargo’s rebuild
detection with a file checksum algorithm. This is most useful on systems with
a poor mtime implementation, or in CI/CD.
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#checksum-freshness))
[#14137](https://github.com/rust-lang/cargo/pull/14137)
- cargo-update: Add `matches_prerelease` semantic
[#14305](https://github.com/rust-lang/cargo/pull/14305)
- `build-plan`: document it as being deprecated.
[#14657](https://github.com/rust-lang/cargo/pull/14657)
- `edition2024`: Remove implicit feature removal from 2024 edition.
[#14630](https://github.com/rust-lang/cargo/pull/14630)
- `lockfile-path`: implies `--locked` on `cargo install`.
[#14556](https://github.com/rust-lang/cargo/pull/14556)
- `open-namespaces`: Allow open namespaces in `PackageIdSpec`s
[#14467](https://github.com/rust-lang/cargo/pull/14467)
- `path-bases`: `cargo [add|remove|update]` support
[#14427](https://github.com/rust-lang/cargo/pull/14427)
- `-Zmsrv-policy`: determine the workspace's MSRV by the most number of MSRVs within it.
[#14569](https://github.com/rust-lang/cargo/pull/14569)
- `-Zpackage-workspace`: allows to publish multiple crates in a workspace,
even if they have inter-dependencies.
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#package-workspace))
[#14433](https://github.com/rust-lang/cargo/pull/14433)
[#14496](https://github.com/rust-lang/cargo/pull/14496)
- `-Zpublic-dependency`: Include public/private dependency status in `cargo metadata`
[#14504](https://github.com/rust-lang/cargo/pull/14504)
- `-Zpublic-dependency`: Don't require MSRV bump
[#14507](https://github.com/rust-lang/cargo/pull/14507)

### Documentation

- 🎉 New chapter about the uses, support expectations, and management of
`package.rust-version` a.k.a MSRV.
([docs](https://doc.rust-lang.org/nightly/cargo/reference/rust-version.html))
[#14619](https://github.com/rust-lang/cargo/pull/14619)
[#14636](https://github.com/rust-lang/cargo/pull/14636)
- Clarify `target.'cfg(...)'` doesn't respect cfg from build script
[#14312](https://github.com/rust-lang/cargo/pull/14312)
- Clarify `[[bin]]` target auto-discovery can be `src/main.rs` and/or in `src/bin/`
[#14515](https://github.com/rust-lang/cargo/pull/14515)
- Disambiguate the use of 'target' in the feature resolver v2 doc.
[#14540](https://github.com/rust-lang/cargo/pull/14540)
- Make `--config <PATH>` more prominent
[#14631](https://github.com/rust-lang/cargo/pull/14631)
- Minor re-grouping of pages.
[#14620](https://github.com/rust-lang/cargo/pull/14620)
- contrib: Update docs for how cargo is published
[#14539](https://github.com/rust-lang/cargo/pull/14539)
- contrib: Declare support level for each crate in Cargo's Charter / crate docs
[#14600](https://github.com/rust-lang/cargo/pull/14600)
- contrib: Declare new Intentional Artifacts as 'small' changes
[#14599](https://github.com/rust-lang/cargo/pull/14599)

### Internal

- Updated to `pasetors` 0.7.0
- Cleanup duplicated check-cfg lint logic
[#14567](https://github.com/rust-lang/cargo/pull/14567)
- Fix elided lifetime due to nightly rustc changes
[#14487](https://github.com/rust-lang/cargo/pull/14487)
- Improved error reporting when a feature is not found in `activated_features`.
[#14647](https://github.com/rust-lang/cargo/pull/14647)
- cargo-info: Use the `shell.note` to print the note
[#14554](https://github.com/rust-lang/cargo/pull/14554)
- ci: bump CI tools
[#14503](https://github.com/rust-lang/cargo/pull/14503)
[#14628](https://github.com/rust-lang/cargo/pull/14628)
- perf: zero-copy deserialization for compiler messages when possible
[#14608](https://github.com/rust-lang/cargo/pull/14608)
- resolver: Add more SAT resolver tests
[#14583](https://github.com/rust-lang/cargo/pull/14583)
[#14614](https://github.com/rust-lang/cargo/pull/14614)
- test: Migrated more tests to snapbox
[#14576](https://github.com/rust-lang/cargo/pull/14576)
[#14577](https://github.com/rust-lang/cargo/pull/14577)
- Update dependencies.
[#14475](https://github.com/rust-lang/cargo/pull/14475)
[#14478](https://github.com/rust-lang/cargo/pull/14478)
- cargo-update: Prepare for smarter update messages
[#14440](https://github.com/rust-lang/cargo/pull/14440)
[#14489](https://github.com/rust-lang/cargo/pull/14489)
[#14607](https://github.com/rust-lang/cargo/pull/14607)
[#14624](https://github.com/rust-lang/cargo/pull/14624)
[#14632](https://github.com/rust-lang/cargo/pull/14632)

## Cargo 1.82 (2024-10-17)
[a2b58c3d...rust-1.82.0](https://github.com/rust-lang/cargo/compare/a2b58c3d...rust-1.82.0)
Expand Down

0 comments on commit a867d90

Please sign in to comment.