前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust日报】2019-09-26 Rust 1.38 发布

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

作者头像
MikeLoveRust
发布2019-09-29 17:33:19
4560
发布2019-09-29 17:33:19
举报

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/ Repo: https://github.com/drone-os

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

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2019-09-26,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 Rust语言学习交流 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Rust 1.38 发布
  • bumper-rs - 打出你的 Cargo.toml 版本号
  • pkghist - 获取 Pacman 包管理的版本历史
  • Drone OS 0.10 发布
  • type-freak - runtime-free 类型集合
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档