From: Mahmoud Nagy Adam <madam@amd.com>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: coconut-svsm@lists.linux.dev, linux-coco@lists.linux.dev
Subject: Re: Discussion on policies around minimum rust version for coconut-svsm
Date: Wed, 25 Nov 2026 19:32:08 +0100 [thread overview]
Message-ID: <65vkyfqwo92zb.fsf@amd.com> (raw)
In-Reply-To: <d79ddac2ab65877504ace5a1fa2eab9cab3d5db3.camel@HansenPartnership.com>
James Bottomley <James.Bottomley@HansenPartnership.com> writes:
> In the Wednesday coconut-svsm meeting I advocated for keeping this the
> lowest version possible, in line with the way the kernel handles gcc
> versioning, but since rust is a lot less mature than gcc, there are
> more compelling reasons not to do this. However, the situation we
> really want to avoid is moving too aggressively to a newer rust version
> which then complicates actually doing a stable release of coconut
> through a distribution.
>
> Just in case it's instructive, the Linux Kernel actually maintains a
> global and per-architecture minimum of gcc (checked in scripts/min-
> tool-version.sh). The current minimum version of gcc is gcc-8, which is
> way behind the latest gnu release of gcc-16. The last time it was
> actually changed was in early 2025. The driver for the change was x86
> needing gcc-8.1 for stack protector support:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a3e8fe814ad15c16735cdf394454a8bd96eb4d56
>
> However Arnd Bergmann later raised it globally because there had been
> no objections from any other architecture:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=118c40b7b50340bf7ff7e0adee8e3bab6e552c82
>
> You can read the discussion in the links, but the compact summary is
> "does anyone care ... no ... OK let's do it"
>
> I think the coconut-svsm policy should be conservative; i.e. we try to
> stay on the lowest possible rust version, starting with where we are
> now (1.85 but shortly to be bumped to 1.90). However, if any forcing
> function comes along that version should be increased. I think the two
> forcing functions are
>
> 1. Language feature we really need to help with or simplify the code
> 2. cargo dependency hygiene (we need a version of our dependencies
> which is current with fixes and they may require a newer rust
> version to keep that currency)
>
> but others may have things to add.
>
> The other thing that came up is that eventually coconut-svsm will have
> to be shipped by distributions and that means its minimum version must
> overlap the build versions that distributions have chosen, so this
> policy has to also be informed by the policies the distributions (both
> enterprise like RHEL and community like Debian and Fedora) are going to
> adopt ... which at least Red Hat promised to think about.
>
> Are there any other considerations people can think of?
>
> Regards,
>
> James
For information, Rust for Linux already has a policy for this: their
minimum Rust version follows Debian Stable's and is raised some months
after each Debian stable release, so the kernel can always be built with
the Rust that Debian ships
(https://rust-for-linux.com/rust-version-policy).
We could generally follow this policy, unless a forcing function (a
needed language feature or a dependency fix) requires a newer version.
Regards,
Nagy
next prev parent reply other threads:[~2026-11-25 18:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 17:55 Discussion on policies around minimum rust version for coconut-svsm James Bottomley
2026-11-25 18:32 ` Mahmoud Nagy Adam [this message]
2026-11-26 12:31 ` Jörg Rödel
2026-11-26 12:27 ` Jörg Rödel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=65vkyfqwo92zb.fsf@amd.com \
--to=madam@amd.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=coconut-svsm@lists.linux.dev \
--cc=linux-coco@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox