让 Rust 的 CI 加速 2~3倍速度
作者最近花了几天时间调整 Nushell 的 GitHub Actions CI pipeline,结果得到了回报: CI过去大约需要30分钟,现在接近10分钟. 主要通过以下手段加速:
- 在 cargo build 之后再运行 clippy
原文链接: https://www.reillywood.com/blog/rust-faster-ci/Lifetime GAT 更好的替代方案
GAT 是一个未稳定的特性,可能会在未来的几个版本中稳定下来, 他可以让我们写出如下代码. 本文探讨了一些更好的替代方案的可能性.pub trait LendingIterator {
type Item<'this>
where
Self: 'this;
fn next(&mut self) -> Option<Self::Item<'_>>;
}
原文链接: https://sabrinajewson.org/blog/the-better-alternative-to-lifetime-gats100 行 Rust 代码构建一个静态网站
原文链接: https://kerkour.com/rust-static-site-generatoregui: 0.18.1 发布
egui 是一个使用 Rust 编写的 简单、快速、高度可移植的即时模式GUI库。Egui可以在网页上原生运行,也可以在你最喜欢的游戏引擎中运行。原文链接: https://github.com/emilk/egui/blob/master/CHANGELOG.mdrmodbus: 0.6 版本发布
rmodbus 是一个构建快速可靠的modbus驱动的应用程序的框架。原文链接: https://github.com/alttch/rmodbus
原文作者:Rust语言中文社区;如有侵权,请联系管理员删除。