Bootstrapping Rust Considered Harmful

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Building Rust from source is a painful, resource-intensive process. The official source tarball is 699 MB compressed (1.9 GB uncompressed), contains 50 million lines of code, and takes 3.5 hours to compile. Worse, there is no bootstrap compiler written in another language — you need an existing Rust binary to build Rust, creating a chicken-and-egg problem. The author compares this unfavorably to OCaml (500K lines, 3-minute build, pure C bootstrap), Go (C-based 1.4 bootstrap, flexible version requirements), and Zig (ships a C file). The conclusion is that Rust's complexity and binary bootstrap dependency make it a poor fit for minimalist systems programming, and developers should consider Go, OCaml, Zig, C, or Hare as alternatives depending on the task.

13m read timeFrom ntecs.de
Post cover image
Table of contents
Installing Rust from SourceCounting the Lines of CodeBuilding RustWho was first? The chicken or the egg?The n+1 problem of RustHow other languages bootstrap themselvesBootstrapping Rust without a binaryNo binary bootstrap, no RustConclusion - Rust is bloated
3 Impressions