【Rust日报】2019-10-02 InfoQ 趋势报告- Rust 从创新阶段转变为早期采用阶段

InfoQ 趋势报告- Rust 从创新阶段转变为早期采用阶段

Rust 已经从创新阶段转变为早期采用阶段,这主要是因为它在基础设施和网络数据平面空间(例如,Habitat和Linkerd 2.0)中的应用。Rust 语言也逐渐成为 WebAssembly 的自然合做伙伴,帮助提升人们的认识。此外 Facebook 选择使用 Rust 实现其 Libra 加密货币。web

详情请查看详细报告微信

Parc3l

使用Parcel bundler工具,将Three .js代码和Rust代码合并到同一个web页面中。网络

更多请查看 Parc3l, 在线演示Demo异步

kubernetes-rust

Kubernetes API 的 Rust 客户端async

详情查看GitHub kubernetes-rust工具

Linux Security Summit 2019

用 Rust 编写 Linux Kernel 模块,详见YouTube视频学习

Async-await 开始 beta 测试

在 1.39 发布的 beta 版本中,将支持 async-await 语法,预计2019 年 11 月 7 日发布。当 async-await 稳定以后,意味着 Rust 通过多年的努力以后终于使得效率和异步I/O 获得支持。测试

详情请查看连接ui

Test-Case crate 发布 0.3.1 版本

test-case 是一个用于生成测试用例的过程性宏属性,这个 crate 设计来源于NUnit 和 JUnit,而且派生和继承了 /u/sasik520这个版本发布以后,这个宏可以稳定运行,而且更好的支持 errors 以及信息名字。使用用例:阿里云

use test_case::test_case;

#[test_case(2)]
#[test_case(4)]
fn multiple_test_cases(x: u32) {
assert!(x < 10)
}

#[test_case(2 => 4)] // test case can also assert result of the function
#[test_case(4 => 8)]
fn result(x: u32) -> u32 { x * 2 }

#[test_case(1, 8 ; "test 1 + 8 = 9") // test case can have optional name (default is taken from arguments)
fn name(x: u32, y: u32) {
assert_eq!(9, x + y)
}

#[test_case(1, 2 => 3 ; "test no. 1")]

#[test_case(4, 5 => 9)]
fn result_and_name(x: u32, y: u32) -> u32 { x + y }

详情请查看 Github 连接



From 日报小组 @ZLH

日报订阅地址:

独立日报订阅地址:

  • Telgram Channel

  • 阿里云语雀订阅

  • Steemit

  • GitHub

社区学习交流平台订阅:

  • Rust.cc论坛: 支持rss

  • Rust Force: 支持rss

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


本文分享自微信公众号 - Rust语言中文社区(rust-china)。
若有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一块儿分享。

相关文章
相关标签/搜索