Systemd 正式支持 Rust 语言开发程序:Linux 系统组件迎来新选项

据奇客Solidot报道,Systemd 现已支持使用 Rust 语言开发程序。对 systemd 程序与末端组件,开发者可以用 Rust 编写,而核心 systemd 库目前暂不支持 Rust 代码。

Systemd 开发者并不打算把现有 C 代码移植到 Rust,所有 Rust 代码统一通过 Meson 构建(不使用 Cargo),仅强制要求使用 C 语言链接。从体积看,一个 Rust 测试程序约 32KB,而对应的 C 版本约 20KB,Rust 组件体积略大。

目前 systemd 的 Rust 支持属于可选能力。对系统级开发者而言,这意味着在 Linux 基础设施组件中引入内存安全的 Rust 又前进了一步,值得关注。

来源:奇客Solidot(https://www.solidot.org/story?sid=85710)

邀请讨论 换一换
暂无数据
0 人关注

版权区

亲爱的用户欢迎您
侵犯版权/问题反馈
发送至邮箱:qitong@haihua.com.cn
Powered by 綦桐专业团队研发-luolitu.vip 0.7.1

网站备案/许可证号:鲁ICP备2021035806号

gotop
0 new message tips
title list