From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: coconut-svsm@lists.linux.dev, linux-coco@lists.linux.dev
Subject: Discussion on policies around minimum rust version for coconut-svsm
Date: Wed, 25 Nov 2026 12:55:23 -0500 [thread overview]
Message-ID: <d79ddac2ab65877504ace5a1fa2eab9cab3d5db3.camel@HansenPartnership.com> (raw)
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
next reply other threads:[~2026-11-25 17:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 17:55 James Bottomley [this message]
2026-11-25 18:32 ` Discussion on policies around minimum rust version for coconut-svsm Mahmoud Nagy Adam
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=d79ddac2ab65877504ace5a1fa2eab9cab3d5db3.camel@HansenPartnership.com \
--to=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