rustc-std-workspace-core 板条箱的用途是什么?

What is the purpose of rustc-std-workspace-core crate?

查看 https://crates.io/ I found that rand is the most downloaded crate and looking in it's dependencies I found the libc crate and in it's dependencies I found the rustc-std-workspace-core 中的一些板条箱,其中有 0 个依赖项 带有此描述:“rust-lang/rust 集成的显式空板条箱”。我无法完全理解这意味着什么。有人可以详细解释一下吗?

std 取决于 libc 板条箱。

成为 std 的依赖者……并不容易。 std构建方式比较复杂,与编译器紧耦合,用它构建了两次,用于bootstrapping。

You can see this dependency is only activated if the rustc-dep-of-std feature is enabled.

此依赖项允许 std 依赖 crate。

另见 Plan for removal of rustc-dep-of-std