* Discussion on policies around minimum rust version for coconut-svsm
@ 2026-11-25 17:55 James Bottomley
2026-11-25 18:32 ` Mahmoud Nagy Adam
2026-11-26 12:27 ` Jörg Rödel
0 siblings, 2 replies; 4+ messages in thread
From: James Bottomley @ 2026-11-25 17:55 UTC (permalink / raw)
To: coconut-svsm, linux-coco
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Discussion on policies around minimum rust version for coconut-svsm
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
2026-11-26 12:31 ` Jörg Rödel
2026-11-26 12:27 ` Jörg Rödel
1 sibling, 1 reply; 4+ messages in thread
From: Mahmoud Nagy Adam @ 2026-11-25 18:32 UTC (permalink / raw)
To: James Bottomley; +Cc: coconut-svsm, linux-coco
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Discussion on policies around minimum rust version for coconut-svsm
2026-11-25 18:32 ` Mahmoud Nagy Adam
@ 2026-11-26 12:31 ` Jörg Rödel
0 siblings, 0 replies; 4+ messages in thread
From: Jörg Rödel @ 2026-11-26 12:31 UTC (permalink / raw)
To: Mahmoud Nagy Adam; +Cc: James Bottomley, coconut-svsm, linux-coco
Hi Mahmoud,
On Wed, Nov 25, 2026 at 07:32:08PM +0100, Mahmoud Nagy Adam wrote:
> 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.
The Rust4Linux project is in a different situation. They do not use cargo and
vendor all external dependencies to maintain them within the Linux source tree.
This gives them much more freedom to set the minimum Rust version because
constraint #2 (from James' email) does not apply to them.
Also Debian stable uses Rust 1.85, COCONUT is already on 1.88 with the aim to
go to 1.91.
-Joerg
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Discussion on policies around minimum rust version for coconut-svsm
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
@ 2026-11-26 12:27 ` Jörg Rödel
1 sibling, 0 replies; 4+ messages in thread
From: Jörg Rödel @ 2026-11-26 12:27 UTC (permalink / raw)
To: James Bottomley; +Cc: coconut-svsm, linux-coco
Hi James,
On Wed, Nov 25, 2026 at 12:55:23PM -0500, James Bottomley wrote:
> 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
I agree with the assessment, COCONUT should be conservative about updating the
minimum required Rust compiler version. There are some constraints to think
about, though.
> 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.
The distribution policies are the main uncertainty for the project. We fully
control which language features COCONUT-SVSM is using, but not what our
downstream users require to build packages.
This can become problematic once COCONUT maintains stable release branches and
a security issue appears in a dependency, requiring an update which needs a
newer compiler version. We have a similar situation right now with PR #1277.
I am sure COCONUT is not the only Rust project which aims to be packaged by a
Linux distribution. It would be good to learn how the distributors handle these
situations with already packaged software so that we can adapt our policy to
their processes.
-Joerg
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-26 12:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-11-26 12:31 ` Jörg Rödel
2026-11-26 12:27 ` Jörg Rödel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox