Cranelift现在可以编译rustc,比LLVM的编译速度快7倍!
在最近的一次测试中,编译速度比llvm快7倍
Cranelift是一个底层可重定向代码生成器。
Cranelift
https://github.com/bytecodealliance/wasmtime/tree/main/cranelift
Read More: https://www.reddit.com/r/rust/comments/iat25g/cranelift_can_now_compile_rustc_giving_nearly_7x/
作者在文中概述了Rust的unsafe
关键字为何起作用,而C / C ++中的类似措施却无效的缘由。
https://jam1.re/blog/why-rusts-unsafe-works
rust-analyzer
的语法高亮显示?将以下内容添加到settings.json文件中(假设使用的是默认主题)
{ "editor.semanticTokenColorCustomizations": { "[Default Dark+]": { "enabled": true, "rules": { "parameter.mutable": { "bold": true, "underline": false }, "selfKeyword.mutable": { "bold": true, "underline": false }, "variable.mutable": { "bold": true, "underline": false } } } } }
https://www.reddit.com/r/rust/comments/iak2hk/how_can_i_change_syntax_highlighting_of_rust/
今天排名前三的trending repos是 servo
,bevy
,libra
servo
: https://github.com/servo/servo
bevy
: https://github.com/bevyengine/bevy
libra
: https://github.com/libra/libra
ffmpeg-next是一个安全的FFmpeg wrapper
https://lib.rs/crates/ffmpeg-next
From 日报小组 格朗, Lanpeng
本文分享自微信公众号 - Rust语言学习交流(rust-china),作者:Lanpeng
原文出处及转载信息见文内详细说明,如有侵权,请联系 yunjia_community@tencent.com 删除。
原始发表时间:2020-08-16
本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。
我来说两句