Conceptual
Login

Compiling Rust Without Cargo

Most Rust tutorials use Cargo, a tool that fetches libraries and drives the build for you. Underneath, Cargo just calls the compiler, rustc, on your source files with a list of options. Knowing how to think in terms of plain compiler invocations matters when your code is built by somebody else's build system that has no internet access and no package manager.

Questions this Concept answers

  • Why does the kernel build drive `rustc` itself rather than delegating to Cargo?