mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
chore: bump to 0.91.0; update changelog (#15710)
This commit is contained in:
commit
37ac0c28b8
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -300,7 +300,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cargo"
|
name = "cargo"
|
||||||
version = "0.90.0"
|
version = "0.91.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"annotate-snippets",
|
"annotate-snippets",
|
||||||
"anstream",
|
"anstream",
|
||||||
|
@ -136,7 +136,7 @@ self_named_module_files = "warn"
|
|||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "cargo"
|
name = "cargo"
|
||||||
version = "0.90.0"
|
version = "0.91.0"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
rust-version = "1.88" # MSRV:1
|
rust-version = "1.88" # MSRV:1
|
||||||
|
@ -1,12 +1,35 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Cargo 1.90 (2025-09-18)
|
||||||
|
[c24e1064...HEAD](https://github.com/rust-lang/cargo/compare/c24e1064...HEAD)
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Expanded error messages around path dependency on `cargo package` and `cargo publish`
|
||||||
|
[#15705](https://github.com/rust-lang/cargo/pull/15705)
|
||||||
|
|
||||||
|
### Nightly only
|
||||||
|
|
||||||
|
- feat(toml): Parse support for multiple build scripts
|
||||||
|
[#15630](https://github.com/rust-lang/cargo/pull/15630)
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
### Internal
|
||||||
|
|
||||||
## Cargo 1.89 (2025-08-07)
|
## Cargo 1.89 (2025-08-07)
|
||||||
[873a0649...HEAD](https://github.com/rust-lang/cargo/compare/873a0649...HEAD)
|
[873a0649...rust-1.89.0](https://github.com/rust-lang/cargo/compare/873a0649...rust-1.89.0)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Add `*` and `?` pattern support for SSH known hosts matching.
|
- Add `*` and `?` pattern support for SSH known hosts matching.
|
||||||
[#15508](https://github.com/rust-lang/cargo/pull/15508)
|
[#15508](https://github.com/rust-lang/cargo/pull/15508)
|
||||||
|
- Stabilize doctest-xcompile. Doctests will now automatically be tested when cross-compiling to a target that is different from the host, just like other tests.
|
||||||
|
[#15462](https://github.com/rust-lang/cargo/pull/15462)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
@ -28,6 +51,28 @@
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed potential deadlock in `CacheState::lock`
|
||||||
|
[#15698](https://github.com/rust-lang/cargo/pull/15698)
|
||||||
|
[#15699](https://github.com/rust-lang/cargo/pull/15699)
|
||||||
|
- Fixed the `--manifest-path` arg being ignored in `cargo fix`
|
||||||
|
[#15633](https://github.com/rust-lang/cargo/pull/15633)
|
||||||
|
- When publishing, don't tell people to ctrl-c without knowing consequences.
|
||||||
|
[#15632](https://github.com/rust-lang/cargo/pull/15632)
|
||||||
|
- Added missing `--offline` in shell completions.
|
||||||
|
[#15623](https://github.com/rust-lang/cargo/pull/15623)
|
||||||
|
- cargo-credential-libsecret: load libsecret only once
|
||||||
|
[#15295](https://github.com/rust-lang/cargo/pull/15295)
|
||||||
|
- When failing to find the mtime of a file for rebuild detection, report an explicit reason rather than "stale; unknown reason".
|
||||||
|
[#15617](https://github.com/rust-lang/cargo/pull/15617)
|
||||||
|
- Fixed cargo add overwriting symlinked Cargo.toml files
|
||||||
|
[#15281](https://github.com/rust-lang/cargo/pull/15281)
|
||||||
|
- Vendor files with .rej/.orig suffix
|
||||||
|
[#15569](https://github.com/rust-lang/cargo/pull/15569)
|
||||||
|
- Vendor using direct extraction for registry sources. This should ensure that vendored files now always match the originals.
|
||||||
|
[#15514](https://github.com/rust-lang/cargo/pull/15514)
|
||||||
|
- In the network retry message, use singular "try" for the last retry.
|
||||||
|
[#15328](https://github.com/rust-lang/cargo/pull/15328)
|
||||||
|
|
||||||
### Nightly only
|
### Nightly only
|
||||||
|
|
||||||
- 🔥 `-Zno-embed-metadata`: This tells Cargo to pass the `-Zembed-metadata=no`
|
- 🔥 `-Zno-embed-metadata`: This tells Cargo to pass the `-Zembed-metadata=no`
|
||||||
@ -36,10 +81,43 @@
|
|||||||
`.rmeta` files.
|
`.rmeta` files.
|
||||||
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#no-embed-metadata))
|
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#no-embed-metadata))
|
||||||
[#15378](https://github.com/rust-lang/cargo/pull/15378)
|
[#15378](https://github.com/rust-lang/cargo/pull/15378)
|
||||||
|
- 🔥 Plumb rustc `-Zhint-mostly-unused` flag through as a profile option
|
||||||
|
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-hint-mostly-unused-option))
|
||||||
|
[#15643](https://github.com/rust-lang/cargo/pull/15643)
|
||||||
|
- Added the "future" edition
|
||||||
|
[#15595](https://github.com/rust-lang/cargo/pull/15595)
|
||||||
|
- Added `-Zfix-edition`
|
||||||
|
[#15596](https://github.com/rust-lang/cargo/pull/15596)
|
||||||
|
- Added perma unstable `--compile-time-deps` option for `cargo build`
|
||||||
|
[#15674](https://github.com/rust-lang/cargo/pull/15674)
|
||||||
- `-Zscript`: Make cargo script ignore workspaces.
|
- `-Zscript`: Make cargo script ignore workspaces.
|
||||||
[#15496](https://github.com/rust-lang/cargo/pull/15496)
|
[#15496](https://github.com/rust-lang/cargo/pull/15496)
|
||||||
- `-Zpackage-workspace`: keep dev-dependencies if they have a version.
|
- `-Zpackage-workspace`: keep dev-dependencies if they have a version.
|
||||||
[#15470](https://github.com/rust-lang/cargo/pull/15470)
|
[#15470](https://github.com/rust-lang/cargo/pull/15470)
|
||||||
|
- Added custom completer for `cargo remove <TAB>`
|
||||||
|
[#15662](https://github.com/rust-lang/cargo/pull/15662)
|
||||||
|
- Test improvements in prep for `-Zpackage-workspace` stabilization
|
||||||
|
[#15628](https://github.com/rust-lang/cargo/pull/15628)
|
||||||
|
- Allow packaging of self-cycles with `-Zpackage-workspace`
|
||||||
|
[#15626](https://github.com/rust-lang/cargo/pull/15626)
|
||||||
|
- With trim-paths, remap all paths to `build.build-dir`
|
||||||
|
[#15614](https://github.com/rust-lang/cargo/pull/15614)
|
||||||
|
- Enable more trim-paths tests for windows-msvc
|
||||||
|
[#15621](https://github.com/rust-lang/cargo/pull/15621)
|
||||||
|
- Fix doc rebuild detection by passing `toolchain-shared-resources` to get doc styled for rustdoc-depinfo tracking
|
||||||
|
[#15605](https://github.com/rust-lang/cargo/pull/15605)
|
||||||
|
- Resolve multiple bugs in frontmatter parser for `-Zscript`
|
||||||
|
[#15573](https://github.com/rust-lang/cargo/pull/15573)
|
||||||
|
- Remove workaround for rustc frontmatter support for `-Zscript`
|
||||||
|
[#15570](https://github.com/rust-lang/cargo/pull/15570)
|
||||||
|
- Allow configuring arbitrary codegen backends
|
||||||
|
[#15562](https://github.com/rust-lang/cargo/pull/15562)
|
||||||
|
- skip `publish=false` pkg when publishing entire workspace for `-Zpackage-workspace`.
|
||||||
|
[#15525](https://github.com/rust-lang/cargo/pull/15525)
|
||||||
|
- Update instructions on using native-completions
|
||||||
|
[#15480](https://github.com/rust-lang/cargo/pull/15480)
|
||||||
|
- Skip registry check if its not needed with `-Zpackage-workspace`.
|
||||||
|
[#15629](https://github.com/rust-lang/cargo/pull/15629)
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
|
||||||
@ -49,6 +127,14 @@
|
|||||||
[#15478](https://github.com/rust-lang/cargo/pull/15478)
|
[#15478](https://github.com/rust-lang/cargo/pull/15478)
|
||||||
- home: update version notice for deprecation removal
|
- home: update version notice for deprecation removal
|
||||||
[#15511](https://github.com/rust-lang/cargo/pull/15511)
|
[#15511](https://github.com/rust-lang/cargo/pull/15511)
|
||||||
|
- docs(contrib): change clap URL to docs.rs/clap
|
||||||
|
[#15682](https://github.com/rust-lang/cargo/pull/15682)
|
||||||
|
- Update links in contrib docs
|
||||||
|
[#15659](https://github.com/rust-lang/cargo/pull/15659)
|
||||||
|
- docs: clarify `--all-features` not available for all commmands
|
||||||
|
[#15572](https://github.com/rust-lang/cargo/pull/15572)
|
||||||
|
- docs(README): fix the link to the changelog in the Cargo book
|
||||||
|
[#15597](https://github.com/rust-lang/cargo/pull/15597)
|
||||||
|
|
||||||
### Internal
|
### Internal
|
||||||
|
|
||||||
@ -64,6 +150,37 @@
|
|||||||
[#15498](https://github.com/rust-lang/cargo/pull/15498)
|
[#15498](https://github.com/rust-lang/cargo/pull/15498)
|
||||||
- Update dependencies.
|
- Update dependencies.
|
||||||
[#15456](https://github.com/rust-lang/cargo/pull/15456)
|
[#15456](https://github.com/rust-lang/cargo/pull/15456)
|
||||||
|
- refactor: replace InternedString with Cow in IndexPackage
|
||||||
|
[#15559](https://github.com/rust-lang/cargo/pull/15559)
|
||||||
|
- Use `Not::not` rather than a custom `is_false` function
|
||||||
|
[#15645](https://github.com/rust-lang/cargo/pull/15645)
|
||||||
|
- fix: Make UI tests handle hyperlinks consistently
|
||||||
|
[#15640](https://github.com/rust-lang/cargo/pull/15640)
|
||||||
|
- Update dependencies
|
||||||
|
[#15635](https://github.com/rust-lang/cargo/pull/15635)
|
||||||
|
[#15557](https://github.com/rust-lang/cargo/pull/15557)
|
||||||
|
- refactor: clean up `clippy::perf` lint warnings
|
||||||
|
[#15631](https://github.com/rust-lang/cargo/pull/15631)
|
||||||
|
- chore(deps): update alpine docker tag to v3.22
|
||||||
|
[#15616](https://github.com/rust-lang/cargo/pull/15616)
|
||||||
|
- chore: remove HTML comments in PR template and inline guide
|
||||||
|
[#15613](https://github.com/rust-lang/cargo/pull/15613)
|
||||||
|
- Added .git-blame-ignore-revs
|
||||||
|
[#15612](https://github.com/rust-lang/cargo/pull/15612)
|
||||||
|
- refactor: cleanup for `CompileMode`
|
||||||
|
[#15608](https://github.com/rust-lang/cargo/pull/15608)
|
||||||
|
- refactor: separate "global" mode from CompileMode
|
||||||
|
[#15601](https://github.com/rust-lang/cargo/pull/15601)
|
||||||
|
- chore: Upgrade schemars
|
||||||
|
[#15602](https://github.com/rust-lang/cargo/pull/15602)
|
||||||
|
- Update gix & socket2
|
||||||
|
[#15600](https://github.com/rust-lang/cargo/pull/15600)
|
||||||
|
- chore(toml): disable `toml`'s default features, unless necessary, to reduce cargo-util-schemas build time
|
||||||
|
[#15598](https://github.com/rust-lang/cargo/pull/15598)
|
||||||
|
- chore(gh): Add new-lint issue template
|
||||||
|
[#15575](https://github.com/rust-lang/cargo/pull/15575)
|
||||||
|
- Fix comment for cargo/core/compiler/fingerprint/mod.rs
|
||||||
|
[#15565](https://github.com/rust-lang/cargo/pull/15565)
|
||||||
|
|
||||||
## Cargo 1.88 (2025-06-26)
|
## Cargo 1.88 (2025-06-26)
|
||||||
[a6c604d1...rust-1.88.0](https://github.com/rust-lang/cargo/compare/a6c604d1...rust-1.88.0)
|
[a6c604d1...rust-1.88.0](https://github.com/rust-lang/cargo/compare/a6c604d1...rust-1.88.0)
|
||||||
@ -117,6 +234,9 @@
|
|||||||
as git status check is mostly informational.
|
as git status check is mostly informational.
|
||||||
[#15416](https://github.com/rust-lang/cargo/pull/15416)
|
[#15416](https://github.com/rust-lang/cargo/pull/15416)
|
||||||
[#15419](https://github.com/rust-lang/cargo/pull/15419)
|
[#15419](https://github.com/rust-lang/cargo/pull/15419)
|
||||||
|
- Fixed `cargo rustc --bin` panicking on unknown bin names
|
||||||
|
[#15515](https://github.com/rust-lang/cargo/pull/15515)
|
||||||
|
[#15497](https://github.com/rust-lang/cargo/pull/15497)
|
||||||
|
|
||||||
### Nightly only
|
### Nightly only
|
||||||
|
|
||||||
@ -206,7 +326,6 @@
|
|||||||
[#15193](https://github.com/rust-lang/cargo/pull/15193)
|
[#15193](https://github.com/rust-lang/cargo/pull/15193)
|
||||||
- Include the package name also in the target hint message.
|
- Include the package name also in the target hint message.
|
||||||
[#15199](https://github.com/rust-lang/cargo/pull/15199)
|
[#15199](https://github.com/rust-lang/cargo/pull/15199)
|
||||||
[#15497](https://github.com/rust-lang/cargo/pull/15497)
|
|
||||||
- cargo-add: collapse large feature lists
|
- cargo-add: collapse large feature lists
|
||||||
[#15200](https://github.com/rust-lang/cargo/pull/15200)
|
[#15200](https://github.com/rust-lang/cargo/pull/15200)
|
||||||
- cargo-vendor: Add context which workspace failed to resolve
|
- cargo-vendor: Add context which workspace failed to resolve
|
||||||
|
@ -5602,17 +5602,14 @@ test check_target ... ok
|
|||||||
"#]])
|
"#]])
|
||||||
.run();
|
.run();
|
||||||
|
|
||||||
// Remove check once 1.88 is stable
|
p.cargo("test --workspace --doc --target")
|
||||||
if cargo_test_support::is_nightly() {
|
.arg(&target)
|
||||||
p.cargo("test --workspace --doc --target")
|
.with_stdout_data(str![[r#"
|
||||||
.arg(&target)
|
|
||||||
.with_stdout_data(str![[r#"
|
|
||||||
...
|
...
|
||||||
test foo/src/lib.rs - (line 2) ... ok
|
test foo/src/lib.rs - (line 2) ... ok
|
||||||
...
|
...
|
||||||
"#]])
|
"#]])
|
||||||
.run();
|
.run();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
|
@ -1136,10 +1136,7 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; fini
|
|||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cargo_test(
|
#[cargo_test]
|
||||||
nightly,
|
|
||||||
reason = "waiting for 1.88 to be stable for doctest xcompile flags"
|
|
||||||
)]
|
|
||||||
fn doctest_xcompile_linker() {
|
fn doctest_xcompile_linker() {
|
||||||
if cross_compile_disabled() {
|
if cross_compile_disabled() {
|
||||||
return;
|
return;
|
||||||
|
@ -1987,11 +1987,9 @@ fn compatible_with_older_cargo() {
|
|||||||
middle = "1.0"
|
middle = "1.0"
|
||||||
"#,
|
"#,
|
||||||
);
|
);
|
||||||
// TODO: Remove -Zgc after 1.82 is stabilized.
|
|
||||||
rustup_cargo()
|
rustup_cargo()
|
||||||
.args(&["+stable", "check", "-Zgc"])
|
.args(&["+stable", "check"])
|
||||||
.cwd(p.root())
|
.cwd(p.root())
|
||||||
.masquerade_as_nightly_cargo(&["gc"])
|
|
||||||
.env("__CARGO_TEST_LAST_USE_NOW", months_ago_unix(2))
|
.env("__CARGO_TEST_LAST_USE_NOW", months_ago_unix(2))
|
||||||
.run();
|
.run();
|
||||||
assert_eq!(get_registry_names("src"), ["middle-1.0.0", "new-1.0.0"]);
|
assert_eq!(get_registry_names("src"), ["middle-1.0.0", "new-1.0.0"]);
|
||||||
|
@ -4742,10 +4742,7 @@ fn test_dep_with_dev() {
|
|||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cargo_test(
|
#[cargo_test]
|
||||||
nightly,
|
|
||||||
reason = "waiting for 1.88 to be stable for doctest xcompile flags"
|
|
||||||
)]
|
|
||||||
fn cargo_test_doctest_xcompile_ignores() {
|
fn cargo_test_doctest_xcompile_ignores() {
|
||||||
// Check ignore-TARGET syntax.
|
// Check ignore-TARGET syntax.
|
||||||
let p = project()
|
let p = project()
|
||||||
@ -4782,10 +4779,7 @@ test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; fini
|
|||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cargo_test(
|
#[cargo_test]
|
||||||
nightly,
|
|
||||||
reason = "waiting for 1.88 to be stable for doctest xcompile flags"
|
|
||||||
)]
|
|
||||||
fn cargo_test_doctest_xcompile_runner() {
|
fn cargo_test_doctest_xcompile_runner() {
|
||||||
if !cross_compile_can_run_on_host() {
|
if !cross_compile_can_run_on_host() {
|
||||||
return;
|
return;
|
||||||
@ -4868,10 +4862,7 @@ this is a runner
|
|||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cargo_test(
|
#[cargo_test]
|
||||||
nightly,
|
|
||||||
reason = "waiting for 1.88 to be stable for doctest xcompile flags"
|
|
||||||
)]
|
|
||||||
fn cargo_test_doctest_xcompile_no_runner() {
|
fn cargo_test_doctest_xcompile_no_runner() {
|
||||||
if !cross_compile_can_run_on_host() {
|
if !cross_compile_can_run_on_host() {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user