< 返回版块

Koalr 发表于 2022-07-20 10:06

Tags:rust,日报

rustc 为加速编译所做的努力

今年 4 月的时候,作者根据当时的编译器的情况写了一篇有关 rust 编译速度的文章 https://nnethercote.github.io/2022/04/12/how-to-speed-up-the-rust-compiler-in-april-2022.html 三个月过去后,rustc 又有一些新的变化。平均来看编译时间平均缩短了 5% 左右,特别的,得益于 windows 下 PGO 机制的实现,windows用户有约 12.5% 的编译时间缩短。

ReadMore: https://nnethercote.github.io/2022/07/20/how-to-speed-up-the-rust-compiler-in-july-2022.html

cargo-module 一个展示 cargo 依赖树的工具

Rust 为我们提供了一个非常复杂的模块系统,允许我们将 crate 巧妙地拆分为任意小的类型和函数的子模块,但有时也很难在保持手头项目的整体结构比较科学,借助这个工具可以查看整个项目的依赖关系:

tree_output.png

ReadMore: https://github.com/regexident/cargo-modules

rust-analyzer 更新日志 #138

ReadMore: https://rust-analyzer.github.io/thisweek/2022/07/18/changelog-138.html


From 日报小组 Koalr

社区学习交流平台订阅:

评论区

写评论

还没有评论

1 共 0 条评论, 1 页