【Rust日报】 2019-09-27:async-std v0.99.7 released
- 2019 年 10 月 10 日
- 筆記
will 2d動作遊戲更新
Read more
CloudFlare 增加 HTTP/3 and QUIC 支援
Read more
再大約六星期後就會有 Async/await 了
Read more
pin-project 符合人體工學的 pin 保護功能
範例
use pin_project::pin_project; use std::pin::Pin; #[pin_project] struct Struct<T, U> { #[pin] pinned: T, unpinned: U, } impl<T, U> Struct<T, U> { fn foo(self: Pin<&mut Self>) { let this = self.project(); let _: Pin<&mut T> = this.pinned; // Pinned reference to the field let _: &mut U = this.unpinned; // Normal reference to the field } }
Read more
async-std v0.99.7 released
增加了16個新的api
example future::join
use async_std::future; let a = future::ready(1); let b = future::ready(2); let c = future::ready(3); let f = future::join!(a, b, c); assert_eq!(f.await, (1, 2, 3));
Read more
Rust 求職專帖
From 日报小组 @Damody