Hello everyone, I'm new here, when I follow the rustc guide to setup my local environment and notice there's a beta compiler which called stage0 compiler, I'm curious about where it come from, I discover that there is a stage0 file within src/stage0 which indicate where to download it, but it already a binary, So how does the beta compiler is produced?
It's a previous build of the compiler, which has been built with previous build of the compiler, which has been built with previous build of the compiler… which has been built by a Rust prototype compiler written in Ocaml.
If you want to build Rust fully from source without using pre-built binary, this process is called bootstrapping. See mrustc compiler.
4 Likes
thanks, bro. I just get it !