这是一篇来自官方的博客,围绕着2020年Rust的发展将如何这个话题进行的,同时也希望社区中的所有人给出一些建议
这个话题的运作方式如下:
这个过程需要时间,并且在2020年之前还不能完全完成。
更多详情大家可以去直接阅读原文,就不一一翻译了,希望国内的Rustaceans也积极参加呀
原文链接:https://blog.rust-lang.org/2019/10/29/A-call-for-blogs-2020.html
这里月泉在给大家推荐几个国外Rustaceans写的对2020年Rust希望的博文供大家参考~
https://blog.turbo.fish/rust-2020/
https://blog.dend.ro/my-rust-2020-wishlist/
https://omarabid.com/rust-2020
https://beyermatthias.de/blog/2019/11/01/rust-2020-libraries-libraries-libraries/
Rust有非常好的错误消息以及非常具有同理心的编译器界面而闻名,如果出现问题,Rust编译器会尽力帮助您解决问题,这篇文章主要是谈谈调试错误的运行时相关的内容。 文章不长,感兴趣的可以看看
Read more:https://blog.yoshuawuyts.com/runtime-diagnostics/
Cargo是一个很好的包管理器,但有一些局限性,该工具提供了其他选项用于避免其中的一些限制。
Installation
cargo install cargo-hack
Usage --each-feature
cargo hack check --each-feature --no-dev-deps
Repo:https://github.com/taiki-e/cargo-hack
该库与JSX之类的技术相比,它更加面向结构,并且大量借鉴了SwiftUI。
[dependencies]
view = "0.1.3"
示例
let show_coupon = false;
let v = view!{
VStack {
Image("company.png")
Button(text:"order".to_string(),style:BOLD)
.on_click(Box::new(|| do_order())) {
Image("order_icon.png")
}
For(i in images.iter()) { Image(i) }
If(show_coupon) { Coupon }
Legal
}
};
Repo:https://github.com/richardanaya/view