# Rust

> A systems language whose type system rules out most memory errors in safe code; increasingly used for infrastructure and security-critical components.

- Kind: language
- Versions: Rust 2021 and 2024 editions

## Compiles to

| To | Via | Assurance | What is lost |
|---|---|---|---|
| LLVM IR | rustc | trusted | Ownership and borrowing information (only partly kept as LLVM attributes). Specifications. |

## Verify your code directly

| Toolchain | Stage | Effort | Via |
|---|---|---|---|
| [Creusot](/toolchains/creusot.md) | 1 Usable | Auto-active | — |
| [Verus](/toolchains/verus.md) | 1 Usable | Auto-active | — |
| [Aeneas (with Charon)](/toolchains/aeneas.md) | 1 Usable | Interactive | — |
| [Kani Rust Verifier](/toolchains/kani.md) | 1 Usable | Push-button | — |

## Verify the compiled code

| Toolchain | Stage | Effort | Via |
|---|---|---|---|
| [s2n-bignum](/toolchains/s2n-bignum.md) | 1 Usable | Interactive | Rust → LLVM IR (rustc, trusted), LLVM IR → x86-64 (LLVM backend (llc), trusted) |
| [Alive2](/toolchains/alive2.md) | 1 Usable | Push-button | Rust → LLVM IR (rustc, trusted) |
| [Islaris](/toolchains/islaris.md) | 0 Research | Interactive | Rust → LLVM IR (rustc, trusted), LLVM IR → AArch64 (LLVM backend (llc), trusted) |
| [LNSym](/toolchains/lnsym.md) | 0 Research | Interactive | Rust → LLVM IR (rustc, trusted), LLVM IR → AArch64 (LLVM backend (llc), trusted) |

## Formal semantics
- [a-mir-formality](/semantics/a-mir-formality.md): An early-stage, executable model of Rust's type system, trait solver and borrow checker, written as inference rules in Rust and maintained by members of the Rust types team.
- [MiniRust](/semantics/minirust.md): An executable specification of what Rust programs do at run time, including exactly which unsafe operations are undefined behavior. It describes an idealized MIR-like core language that Rust is translated into.

---
Last checked 2026-11-26. Data: [JSON](/targets/rust.json) · Page: [HTML](/targets/rust/) · Methodology v0.1: [/methodology/](/methodology/) · Corrections: [/contribute/](/contribute/)
