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