Skip to content

rust: Upgrade to 1.96.1 - #18511

Open
Kavya Sree Kaitepalli (KavyaSree2610) wants to merge 8 commits into
fasttrack/3.0from
kkaitepalli/upgrade-rust-latest
Open

rust: Upgrade to 1.96.1#18511
Kavya Sree Kaitepalli (KavyaSree2610) wants to merge 8 commits into
fasttrack/3.0from
kkaitepalli/upgrade-rust-latest

Conversation

@KavyaSree2610

@KavyaSree2610 Kavya Sree Kaitepalli (KavyaSree2610) commented Aug 19, 2026

Copy link
Copy Markdown

Summary:

  • Upgrades the  rust  toolchain from 1.90.0 to 1.96.1 and rebuilds/updates all dependencies. Splitted the stage0 bootstrap tarballs (cargo/rustc/rust-std) into a separate  rust-bootstrap  SRPM to keep the  rust  SRPM's size down, and so the large prebuilt binaries only need to be re-fetched/rebuilt when the stage0 version actually changes, not on every  rust  spec/patch update

Changes:

Rust toolchain upgrade:

Downstream dependents rebuilt:

  • rust-fix-unstable-name-collisions.patch added to kata specs (kata-containers-cc, kata-containers-preview). Backport of the upstream commit that resolves the new unstable_name_collisions errors that Rust 1.96 raises on the kata code base (mostly around Iterator/Stream trait method shadowing in the agent). Removable at kata v3.30.0, where the fix lands natively.
  • rust-1.96-protection-cpuid.patch added to kata-containers-preview only. Backport of the two upstream commits that remove now-unnecessary unsafe blocks around __cpuid / __cpuid_count, which Rust 1.96 promoted to safe intrinsics. Without this patch the build fails with unused_unsafe warnings-as-errors. Removable at kata v3.32.0

License file changes:

  • Rust ships a number of new license/copyright text files that the toolkit's license scanner flags as "files that look like licenses but aren't classified," failing the build. Two scoped exceptions added:
    rust : ignore ^/usr/lib/rustlib/.?/license-files/.. These are per-target license files that the new src tool extracts alongside the stdlib sources; they're already covered by the top-level Rust COPYRIGHT / LICENSE-APACHE / LICENSE-MIT we ship via %license.
    rust-doc : ignore the embedded font and web-asset license/copyright files inside the generated HTML doc tree (/usr/share/doc/docs/html/.../fonts/.txt, static.files/LICENSE.txt, static.files/COPYRIGHT.txt, static.files/LICENSE.md, plus a couple of false-positive HTML pages whose paths contain bsd/absd, and search.index/.js). These are licenses for the bundled web fonts (DejaVu, Source Code Pro, Source Serif, FiraSans, NanumBarunGothic) and JS assets the rustdoc generator embeds; they're not the package's own license and are correctly carried inside the rust-doc HTML payload.

Linked workitems:
https://microsoft.visualstudio.com/OS/_workitems/edit/57001289/ for license warnings
https://microsoft.visualstudio.com/OS/_workitems/edit/59197184/ for rust-src package
Validation:

  • Local build is successful

@microsoft-github-policy-service microsoft-github-policy-service Bot added Packaging specs-extended PR to fix SPECS-EXTENDED fasttrack/3.0 PRs Destined for Azure Linux 3.0 labels Aug 19, 2026
@KavyaSree2610 Kavya Sree Kaitepalli (KavyaSree2610) changed the title Kkaitepalli/upgrade rust latest rust: Upgrade to 1.96.1 Aug 19, 2026
@KavyaSree2610

Kavya Sree Kaitepalli (KavyaSree2610) commented Aug 19, 2026

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

@KavyaSree2610

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

Comment thread SPECS/rust/rust.spec
Name: rust
Version: 1.90.0
Release: 9%{?dist}
Version: 1.96.1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a decent Jump :)
I would encourage to do a full build as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fasttrack/3.0 PRs Destined for Azure Linux 3.0 Packaging specs-extended PR to fix SPECS-EXTENDED

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants