6

Linux 内核准备升级到 Rust 1.77

 4 months ago
source link: https://www.jdon.com/72557.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Linux 内核准备升级到 Rust 1.77

在 Linux 6.8 中,内核的 Rust 代码被提升到 Rust 1.75,而本周末发布的新补丁将代码移植到 Rust 1.76,然后是即将推出的 Rust 1.77。

  • 周六发布的这个补丁系列将内核的 Rust 基础设施提升到 Rust 1.76 兼容性。
  • 随后紧随其后的是Rust 1.77 补丁,该补丁尚未作为稳定工具链发布。

在 Rust 1.77 中,他们现在已经稳定了:

  • 内核 Rust 代码使用的单字段“offset_of”功能。
  • Rust 1.77 还添加了一个“--check-cfg”选项,Rust 内核代码将来可能会过渡到该选项。

这遵循了 Rust for Linux 的政策,即跟踪上游 Rust 版本的升级,直到有一个最低版本可以宣布,所有使用的功能都被认为是稳定的。在未来的未知时间点,最小版本将按照其版本政策进行声明。

升级到 Rust 1.77 很可能会在即将到来的 Linux 6.9 内核合并窗口中进行。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK