【Rust日报】2019-09-26 Rust 1.38 发布

Rust 1.38 发布

Rust 官方今天如期发布了 1.38。这次的主要改进有:

  • 流水线编译,提升 10%~20% 的性能

  • #[deprecated] 标签,明确标出某些功能不推荐使用了。(不需要在注释里面标注了)

  • std::any::type_name,用于调试时打出类型名字

比如:

fn gen_value<T: Default>() -> T {
    println!("Initializing an instance of {}", std::any::type_name::<T>());
    Default::default()
}

fn main() {
    let _: i32 = gen_value();
    let _: String = gen_value();
}

会打印出

Initializing an instance of i32
Initializing an instance of alloc::string::String

想要啊。

还有很多其它改进,请查看原文。

Read More: https://blog.rust-lang.org/2019/09/26/Rust-1.38.0.html

bumper-rs - 打出你的 Cargo.toml 版本号

Repo: https://github.com/segfaultsourcery/bumper-rs

pkghist - 获取 Pacman 包管理的版本历史

Repo: https://github.com/herzrasen/pkghist

Drone OS 0.10 发布

Rust 操作系统来啦!

Drone is an Embedded Operating System for writing real-time applications in Rust. It aims to bring modern development approaches without compromising performance into the world of embedded programming.

目前只支持 ARM® Cortex®-M3/M4 ,但是设计成平台无关的。

Offical Site: https://www.drone-os.com/

type-freak - runtime-free 类型集合

这个库提供:

  • Non-trivial static assertions and type guards.

  • Typed list that supports insertion, removal and look-up.

  • Trait-level Boolean and Option

  • Some little tools on tuple types.

Repo: https://github.com/jerry73204/rust-type-freak


From 日报小组 Mike

日报订阅地址:

独立日报订阅地址:

  • Telgram Channel

  • 阿里云语雀订阅

  • Steemit

  • GitHub

社区学习交流平台订阅:

  • Rust.cc论坛: 支持rss

  • Rust Force: 支持rss

  • 微信公众号:Rust语言学习交流

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值