#rustc #target #llvm #linker #compilation #compiler #different

nightly fast-rustc-ap-rustc_target

该包 rustc_target 在 rust-lang/rust 仓库中从提交 15812785344d913d779d9738fe3cca8de56f71d5 的自动发布版本。此 crate 的发布脚本位于: https://github.com/alexcrichton/rustc-auto-publish

1 个稳定版本

1.0.0 2020年3月10日

#1875开发工具


3 个 Crates 中使用 (通过 fast-rustc-ap-rustc_sessi…)

MIT/Apache

1MB
27K SLoC

librustc_target 包含一些非常底层的细节,这些细节针对不同的编译目标等。

有关 rustc 的工作方式的更多信息,请参阅 rustc 指南.


lib.rs:

rustc 使用的一些没有很多依赖的代码

最初从 rustc::back 中提取出来,该 back 实际上是编译器的 '后端',尽管 LLVM 是 rustc 的后端,所以 rustc_target 实际上只是与代码生成和链接相关的零散代码。这个 crate 主要存在是为了让 rustc 更小,所以我们可能会在这里放更多 '东西'。它不依赖于 LLVM。

依赖项

~6MB
~109K SLoC