Skip to content

rustc: 1.86.0 -> 1.87.0 - #407444

Merged
winterqt merged 3 commits into
NixOS:stagingfrom
winterqt:push-owxrwkxpvkkt
May 18, 2025
Merged

winterqt merged 3 commits into
NixOS:stagingfrom
winterqt:push-owxrwkxpvkkt

Conversation

@winterqt

Copy link
Copy Markdown
Member

https://github.com/rust-lang/rust/releases/tag/1.87.0

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin, nix-build -A fd
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added the 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. label May 15, 2025
@nix-owners
nix-owners Bot requested review from Mic92, alyssais, figsoda and zowoq May 15, 2025 19:46
@winterqt

winterqt commented May 15, 2025 •

Copy link
Copy Markdown
Member Author

(forgot whether we normally backport these or not (we don't, it seems) -- but I guess it may be nice to get it into 25.05...?)

@github-actions github-actions Bot added 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. labels May 15, 2025
@nix-owners
nix-owners Bot requested review from bjornfor, prusnak and tjni May 15, 2025 19:52
@dotlambda

Copy link
Copy Markdown
Member

How about adding rust_1_87 in a PR targeting master and change the default in a PR targeting staging?

@yuyuyureka yuyuyureka mentioned this pull request May 15, 2025
13 tasks
@winterqt

Copy link
Copy Markdown
Member Author

Good idea, though it seems like we usually don’t do that until something that requires it comes up. If we were doing another staging cycle before the release then I’d backport it, but… dunno.

@alyssais

Copy link
Copy Markdown
Member

Good idea, though it seems like we usually don’t do that until something that requires it comes up.

Indeed. It doesn't seem like there's anything earth-shattering in this release that makes it particularly urgent to have this in stable (where we'd then be forced to keep it around for six months).

@alyssais alyssais left a comment

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.

Diff LGTM.

@wegank wegank added 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 12.approvals: 1 This PR was reviewed and approved by one person. labels May 17, 2025
@winterqt
winterqt merged commit ef977c7 into NixOS:staging May 18, 2025
@winterqt
winterqt deleted the push-owxrwkxpvkkt branch May 18, 2025 17:04
@winterqt winterqt mentioned this pull request May 30, 2025
4 of 13 tasks
@mksafavi mksafavi mentioned this pull request May 30, 2025
3 of 13 tasks
@nixpkgs-ci

nixpkgs-ci Bot commented Jul 31, 2025

Copy link
Copy Markdown
Contributor

Backport failed for release-25.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-25.05
git worktree add -d .worktree/backport-407444-to-release-25.05 origin/release-25.05
cd .worktree/backport-407444-to-release-25.05
git switch --create backport-407444-to-release-25.05
git cherry-pick -x 3b58d0ac8533e58882c9b4e6e2ffe0fc4a300dbf 4efa2ff7a1c0343a0a253fb02c7725d119a4321c 1000a826ebc4b104746cb127852993ca3910efbd

@D3vil0p3r

Copy link
Copy Markdown
Member

Can you create a backport PR to 25.05 for 1.87 rustc version please?

@alyssais

Copy link
Copy Markdown
Member

We don't backport Rust updates, as they can be breaking for packages that use nightly features, of which we have many.

@alyssais

Copy link
Copy Markdown
Member

(When we really need a newer Rust version on stable, e.g. to build browsers, it's added as a new, versioned attribute.)

@adamcstephens

adamcstephens commented Aug 13, 2025 •

Copy link
Copy Markdown
Contributor

(When we really need a newer Rust version on stable, e.g. to build browsers, it's added as a new, versioned attribute.)

Do we have a good example or pattern for creating this versioned backport? I've now hit two security important patches that really should be backported, kanidm and fractal, that need a newer rustc. I'd probably suggest 1.88 since that's what the matrix libraries want.

@alyssais

Copy link
Copy Markdown
Member

You can't backport just the security fix, not the changes to use newer Rust features?

@adamcstephens

Copy link
Copy Markdown
Contributor

In the case of Fractal, they upgraded to the newer version of matrix-rust-sdk which depends on 1.88, but is where the important security fixes come in. So no, there's not really a trivial way to just backport the security fix.

For kanidm, there are multiple dependencies that want 1.87+. While not technically a security fix, we do follow upstream's support lifecycle and backport upgrades. Since it's a security important tool, I'd much prefer to continue to stick to what upstream supports.

@alyssais

Copy link
Copy Markdown
Member

In the case of Fractal, they upgraded to the newer version of matrix-rust-sdk which depends on 1.88, but is where the important security fixes come in. So no, there's not really a trivial way to just backport the security fix.

Hmm yes, it's annoying that we don't have a good way to patch dependencies.


Anyway, if you do need to backport a rustc, look at past Firefox backports, I guess.

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

Labels

6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants