DevOps

rustc – compiler for the Rust programming language

rustc is the compiler for the Rust programming language. Compilers take your source code and produce binary code, either as a library or executable.

Most Rust programmers don’t invoke rustc directly, but instead do it through Cargo. It’s all in service of rustc.

The Rust compiler is special in two ways: it does things to your code that other compilers don’t do (such as borrow checking) and it has a lot of unconventional implementation choices (e.g. queries).

The Rust compiler uses a query system which is unlike most textbook compilers, which are organized as a series of passes over the code that execute sequentially. The compiler does this to make incremental compilation possible. If the user makes a change to their program and recompiles, the compiler performs as little redundant work as possible to produce the new binary.

rustc is free and open source software.

Website: doc.rust-lang.org
Support: GitHub Code Repository
Developer: Rust Foundation
License: Apache License 2.0 or MIT License

rustc itself is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

Compilers
GNU Compiler CollectionThe standard compiler for most Unix-like operating systems
rustcCompiler for the Rust programming language
AOCCAMD Optimizing C/C++ Compiler
LLVMLow-Level Virtual Machine (LLVM) compiler for C/C++
ispcIntel SPMD Program Compiler
BabelJavaScript compiler - use next generation JavaScript
Glasgow Haskell CompilerAn optimizing compiler for Haskell, written in Haskell
ClangC Language Family Frontend for LLVM
NuitkaOptimizing Python compiler
CHICKENCompiler for the Scheme programming language
FreeBASIC32-bit BASIC compiler
NumbaCompiler for Python array and numerical functions
Free PascalAdvanced Pascal compiler for Pascal and Object Pascal
NASMAssembler for the x86 CPU architecture
BiglooPractical Scheme compiler

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments