rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ABI stability and Rust
@ 2025-04-02 18:44 Andreas Hindborg
  2025-04-02 19:00 ` Miguel Ojeda
  2025-04-02 19:12 ` Greg KH
  0 siblings, 2 replies; 5+ messages in thread
From: Andreas Hindborg @ 2025-04-02 18:44 UTC (permalink / raw)
  To: Daniel Wagner; +Cc: Boqun Feng, rust-for-linux@vger.kernel.org

Hi Daniel,

I just wanted to mention that we discussed ABI stability in our
bi-weekly rust subsystem meeting today [1].

Two solutions were discussed:

a) Ship a blessed toolchain for each kernel image you ship. Users
   building out-of-tree modules must use this toolchain.

b) If users cannot use the blessed toolchain, they must link all rust
   code into their module and ensure no rust symbols in vmlinux are called.

Outside of those options, I don't think there are any other solutions. I
would not hedge my bets on rustc getting ABI stability, ever.


Best regards,
Andreas Hindborg



[1] https://hackmd.io/PbZOPV1HTwe0hjZTlDGnmA?view#ABI-compatibility-for-Rust



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-07 11:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-02 18:44 ABI stability and Rust Andreas Hindborg
2025-04-02 19:00 ` Miguel Ojeda
2025-04-07 11:17   ` Daniel Wagner
2025-04-02 19:12 ` Greg KH
2025-04-07 11:23   ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).