当前本来可以在这个版本下工作的代码:
Stable
Beta
nightly-2021-03-22
但在这两个版本上就不能正常工作了:
cargo 1.52.0-nightly (90691f2bf 2021-03-16)
release: 1.52.0
commit-hash: 90691f2bfe9a50291a98983b1ed2feab51d5ca55
commit-date: 2021-03-16
rustc 1.53.0-nightly (5d04957a4 2021-03-22)
binary: rustc
commit-hash: 5d04957a4b4714f71d38326fc96a0b0ef6dc5800
commit-date: 2021-03-22
host: x86_64-pc-windows-msvc
release: 1.53.0-nightly
LLVM version: 12.0.0
因此需要对这部分升级的代码进行回归,具体原由看这里:https://github.com/rust-lang/rust/issues/84958
这个库包含了TurboWish/tokio-console的原型实现,这是一个用于异步Rust程序的诊断和调试工具。诊断工具包由多个组件组成:
Tokio
和tracing
的项目,此代码库中的console-subscriber
库包含工具侧API的实现,作为traceing-subscriber
的Layer
。console
库实现了使用此数据的交互式命令行工具,但其他实现(例如图形工具或基于Web的工具)也是可能的。当前这个库只是作为一个实现原型,具体的工作进展请关注这里:https://github.com/tokio-rs/console
Github: https://github.com/tokio-rs/console#tokio-console-prototypes
一篇介绍如何使用Rust在安卓上运行的博客。同时作者提供了最小运行在安卓上的Rust项目模板。
Read More: https://blog.svgames.pl/article/running-rust-on-android
模板: https://github.com/suve/rust-on-android/
glommio
库的作者写的一篇关于Rust异步的博客,从中讨论了一些有关Rust异步Api设计历史以及使用心得。
Read More(需要科学上网): https://itnext.io/async-rust-history-strikes-back-d69aced6760
Readme部分介绍很精彩,将Rust当前实现collection
的各种方法做了比较,指出各自的优缺点。同时该库实现方法也很值得研究,如果对编译期引用计数等感兴趣的,千万不要错过。
Github: https://github.com/matthieu-m/ghost-collections
389。
Read More:https://this-week-in-rust.org/blog/2021/05/05/this-week-in-rust-389/
中文: https://blog.budshome.com/budshome/rust-guan-fang-zhou-bao-389-qi-(2021-05-05)
顺便推介一下芽之家的博客,内含大量Rust中文博客:https://blog.budshome.com/
From 日报小组 Cupnfish
社区学习交流平台订阅: