Hacker News new | ask | show | jobs
by kouteiheika 1010 days ago
> Maybe another memory safe language, but Rust has severe bootstrapping issues which is a hard sell for distros that care about source to binary transparency.

It is possible to bootstrap rustc from just GCC relatively easily, although it's a little bit time consuming.

You can use mrustc to bootstrap Rust 1.54: https://github.com/thepowersgang/mrustc

And from then you can go through each version all the way to the current 1.72. (Each new Rust version officially needs the previous one to compile.)

1 comments

Right, Guix solved that a while back:

https://guix.gnu.org/blog/2018/bootstrapping-rust/

I was thinking about the fact that building Rust requires cURL, Python, CMake, and more, which makes the "bootstrapping graph"[0] very complicated if coreutils is rewritten in Rust.

0: https://guix.gnu.org/en/manual/devel/en/guix.html#Full_002dS...