Thanks for starting a thread @arielb1! I’ve meant to do this for some time now so this is a good motivation to post as well 
So for those who may be new to rustbuild, this is the “code name” (still looking for a better one) for our new build system in the Rust compiler itself. Our old makefiles were seriously showing signs of aging and they were ripe for replacement. The heart of rustbuild is building the compiler via Cargo, which is why you’ll find a number of Cargo.toml files lying around in the repo as well.
A rewrite of the build system is no easy undertaking, but there were some key goals of rustbuild which are the underlying motivation:
- The makefiles were completely impenetrable to all but a few, deterring many prospective contributors. A primary goal of rustbuild is to be a readable and easily modifiable build system. Basically anything crazy we want to do with our build should not be hard to implement.
- Unfortunately
makeisn’t portable to one of our Tier 1 platforms, MSVC, where we want the developer experience to be similar as that of Unix. - There’s already a standard build system for Rust, and that’s Cargo, so we should use it as well! This ends up opening quite a few options down the road such as compiling libstd on demand if required.
Basically the tl;dr; is everyone should be able to contribute to the build system, no matter if this is your first patch, what platform you’re on, or what you’re goal is.
Currently the build system lives in src/bootstrap with a README to boot explaining how to get started with it as well as some of the high level architecture. The source should also be pretty well documented for prospective contributors or just the curious. If you’d like to know any more information about jumping in or the build system in general, feel free to let me know! I’d love to write up more docs to help out.
If you’ve got a feature request feel free to mention it here or open an issue on rust-lang/rust tagged with A-rustbuild (or just cc me, alexcrichton, and I’ll tag it for you). I can help spell out the steps needed to implement anything and help anyone get started as well! You can also reach out to me as acrichto on IRC if you’re interested in working on rustbuild.
Unfortunately a caveat for now is that any fundamental modifications to the build (e.g. changes in dependencies) need to be reflected in the makefiles as well as rustbuild for now. This means we can’t quite have all our hopes and dreams just yet, but I hope to aggressively message out the deprecation of the makefiles this next cycle and if all goes well delete them soon.