Rust 官方今天如期发布了 1.38。这次的主要改进有:
比如:
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
Repo: https://github.com/segfaultsourcery/bumper-rs
Repo: https://github.com/herzrasen/pkghist
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
这个库提供:
Repo: https://github.com/jerry73204/rust-type-freak
From 日报小组 Mike