【Rust日报】2022-01-13 Rust 1.58.0 稳定版发布

Glicol - 以图为导向的音乐实时编程语言

Glicol 可以帮助您使用代码制作音乐。您可以简单地连接不同的节点以形成循环,用 Rust 编写,得益于 WebAssembly,它可以在浏览器中丝滑运行。

glicol.org: https://glicol.org/

GitHub - glicol: https://github.com/chaosprint/glicol

Rust 1.58.0 稳定版发布

Rust 1.58 在格式字符串中引入了捕获的标识符、对 Windows 上的搜索路径的更改、 #[must_use] 标准库中的更多注释以及一些新的库稳定性。

let (width, precision) = get_format();
for (name, score) in get_scores() {
  println!("{name}: {score:width$.precision$}");
}

另外在 release note里一些编译器和库的改进也值得一看,比如:

  1. *const T 现在可以在 const 上下文中解引用指针

  2. 重新启用调试检查copy和copy_nonoverlapping

  3. 为 Rc 实现了 RefUnwindSafe

  4. 稳定了 relaxed_struct_unsize ,参考:https://github.com/rust-lang/rust/issues/81793

  5. Rust 编译器支持 LLVM CFI (Control-flow integrity ,控制流完整性) , CFI 通过检查确保间接函数调用(indirect function call)未被攻击者修改过,从而堵住系统漏洞。

(感谢张汉东老师供稿)

Announcing Rust 1.58.0: https://blog.rust-lang.org/2022/01/13/Rust-1.58.0.html

Changelog - Version 1.58.0 (2022-01-13): https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1580-2022-01-13

This Week in Rust 425

新一期的 Rust 周报速递发布,快来看看有哪些内容你曾经关注过 :)

This Week in Rust 425: https://this-week-in-rust.org/blog/2022/01/12/this-week-in-rust-425/


From 日报小组 PsiACE

社区学习交流平台订阅:

  • Rust.cc 论坛: 支持 rss

  • 微信公众号:Rust 语言中文社区

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值