前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust日报】 2019-05-11:wasm-flate 使用WASM对客户端文件进行超快压缩的工具

【Rust日报】 2019-05-11:wasm-flate 使用WASM对客户端文件进行超快压缩的工具

作者头像
MikeLoveRust
发布2019-07-09 13:12:43
1.3K0
发布2019-07-09 13:12:43
举报

「社区讨论」命名异步函数的返回类型

该贴的作者认为,在async趋于稳定之前,还有个重要的讨论,就是支持异步函数的返回类型的自定义命名。

代码语言:javascript
复制
async fn foo() -> impl Future<Output = usize> + Send { /**/ }
// or even to make the return type nameable
type FooReturn = impl Future<Output = usize> + Send; 
async fn foo() -> FooReturn { /**/ }

Read more

replace-await

一個替換舊版 await! 宏實作改成新版await 語法的工作

Read more

Cargo 權限控制

為每個庫增加權限控管。

有了這些權限,我們可以回答這些問題:

  • 為什麼png庫使用網絡層?
  • 為什麼http庫使用文件系統層?

Read more

「嵌入式Rust」μAMP: 微處理器上的非對稱多處理庫

在嵌入式系統AMP systems上的一個 framework

可以寫各種原生的嵌入式程式

Read more

Rust Wasm工作组发布:wasm-tracing-allocator

一個全局的分配器追踨器,可以追到wasm内存分配的情況

wasm-tracing-allocator

rust-hypervisor-firmware: 一個簡單的 kvm firmware

intel出品,代码不多,看上去确实简单,可以学习如何用rust实现一个kvm。

  • Read more
  • intel/rust-hypervisor-firmware

另一種 ray tracing 实现

Read more

wasm-flate: 使用WASM对客户端文件进行超快压缩的工具

支持GZIP,ZLIB和DEFLATE压缩和解压缩

wasm-flate

context-attribute: 使用文档注释设置错误上下文

代码语言:javascript
复制
/// Square a number if it's less than 10.
#[context]
fn square(num: usize) -> Result<usize, failure::Error> {
    ensure!(num < 10, "Number was too large");
    Ok(num * num)
}

输出

代码语言:javascript
复制
$ cargo run --example square 12
Error: ErrorMessage { msg: "Number was too large" }
Square a number if it's less than 10.

context-attribute

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

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

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

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

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 「社区讨论」命名异步函数的返回类型
  • replace-await
  • Cargo 權限控制
  • 「嵌入式Rust」μAMP: 微處理器上的非對稱多處理庫
  • Rust Wasm工作组发布:wasm-tracing-allocator
  • rust-hypervisor-firmware: 一個簡單的 kvm firmware
  • 另一種 ray tracing 实现
  • wasm-flate: 使用WASM对客户端文件进行超快压缩的工具
  • context-attribute: 使用文档注释设置错误上下文
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档