Toolchain verifies Rust

Verus

Write specifications and proofs next to your Rust code; Verus turns them into questions for the Z3 solver and checks them for every possible run.

Trust: Checker partial, Semantics partial, Frontend partial, Binary gap weak, Escape hatches partial CheckerSemanticsFrontendBinary gapEscape hatches 0 of 5 strong, 1 weak

Use it if

  • You write new Rust systems code (allocators, storage, kernels, parsers) and can add specifications and proof hints.
  • You want proofs about functional correctness, not only the absence of panics.
  • You need to verify concurrent or pointer-heavy code and can use Verus's own verified cells, atomics and locks.

Look elsewhere if

  • Your code relies on async, function pointers, Drop, std Mutex or RwLock, or other features Verus does not support yet.
  • You need the proof to be checked by a small proof kernel; Verus trusts the Z3 solver.
  • You want to check existing Rust code without changing it; verified code must be wrapped in Verus syntax or attributes.

How it works

From your code to an accepted proof. Each step either has to be trusted or is checked by something else.

  1. Input
    Rust code
  2. Front end
    rustc front end, with the verus! macro syntax Trusted Verus builds on rustc to parse and type-check the code. Verus lists rustc and cargo among the components that must be trusted.
  3. Translation
    Verus encoding of Rust code and specifications into SMT queries Trusted Not verified. A 2026 master's thesis formalized one translation step (SST to AIR expressions) in Lean 4.
  4. Checker
    Z3 Trusted
  5. Compiler
    rustc / LLVM Trusted Ghost (proof-only) code is erased, and the remaining Rust code is compiled by the normal Rust compiler.

Verified or checked: outside the trusted base Validated per run or by tests Trusted without proof

  • Rust: Only code that opts in (inside the verus! macro or with Verus attributes) is checked. Verus supports a subset of Rust.

Trust

What a proof from this toolchain relies on: the trusted computing baseTrusted computing base (TCB). Everything that must be correct for a proof to mean what it says., one part at a time. How these are rated.

  1. Checker What has the final word on a proof?
    Partial

    The Z3 SMT solver decides each proof obligation; no proof certificate is kept.

    The Verus guide lists the correctness of Verus itself, its solvers and rustc among the trusted assumptions.

    source

  2. Semantics Is the tool's model of the language the real language?
    Partial

    Rust's meaning is built into Verus's encoding; no published validation against rustc.

    VerusBelt (PLDI 2026) gives a semantic foundation for Verus's extensions to the Rust type system, but this is a proof about the design, not a test of the tool against real Rust.

    source

  3. Frontend How does your source get into the model?
    Partial

    rustc parses and type-checks; Verus's own unverified code then translates the result.

    Proc macros can change what Verus sees compared to a normal build, and Verus may not catch every unstable Rust feature.

    source

  4. Binary gap Does the proof cover what actually runs?
    Weak

    The binary comes from rustc and LLVM, which are not verified.

  5. Escape hatches Can a proof silently rest on unchecked assumptions?
    Partial

    assume, admit, external_body exist; --no-cheating rejects them outside trusted code.

    Without --no-cheating, assumptions are allowed anywhere and are not listed in the result. Flags such as --no-verify also change what is checked.

    source

What it can prove

Kinds of guarantees, not how easy they are to get.

Properties
FeatureSupportNotes
No undefined behavior Memory safety and absence of runtime errors: no out-of-bounds access, use-after-free, overflow traps, panics or undefined behavior on any input allowed by the precondition. SupportedSupported.For code that opted into verification, Verus promises memory safety, no undefined behavior and no panics (except running out of memory or stack). This is conditional on the trusted assumptions in the code.
Source
For code that opted into verification, Verus promises memory safety, no undefined behavior and no panics (except running out of memory or stack). This is conditional on the trusted assumptions in the code. source
Functional correctness The code meets a written specification of its results, for example “returns the sorted list” or “implements this RFC”. SupportedSupported.Requires/ensures specifications with ghost code and proofs.
Source
Requires/ensures specifications with ghost code and proofs. source
Equivalence Two programs (an optimized and a reference version, or code before and after a change) are proved to behave the same, or one refines the other. PartialPartial.No dedicated equivalence mode; you write both versions and a specification relating them by hand. No dedicated equivalence mode; you write both versions and a specification relating them by hand.
Information flow Secrets do not influence public outputs, timing or memory access patterns (constant-time code, non-interference). Not supportedNot supported.The Verus guide documents no information-flow or constant-time checking.
Source
The Verus guide documents no information-flow or constant-time checking. source
Concurrency Correctness of code with threads or shared memory: absence of data races, deadlock freedom, linearizability of concurrent data structures. PartialPartial.Threads (spawn/join), verified locks, atomics with ghost invariants and logically atomic specifications are supported through Verus's own libraries. The standard library's Mutex and RwLock are not supported.
Source
Threads (spawn/join), verified locks, atomics with ghost invariants and logically atomic specifications are supported through Verus's own libraries. The standard library's Mutex and RwLock are not supported. source
Termination and liveness Every run finishes, or the system keeps making progress (liveness). PartialPartial.Specification and proof code must terminate. For executable code, decreases clauses on loops and recursion are only a lightweight check; Verus does not guarantee that executable code terminates.
Source
Specification and proof code must terminate. For executable code, decreases clauses on loops and recursion are only a lightweight check; Verus does not guarantee that executable code terminates. source

Language coverage

Which parts of Rust it handles. Hover or focus a mark for details.

Common features

Common features
FeatureSupportNotes
Machine integers Fixed-width integer arithmetic, overflow and bit operations. SupportedSupported.Signed, unsigned and usize/isize arithmetic and bitwise operations are supported; overflow must be proved absent.
Source
Signed, unsigned and usize/isize arithmetic and bitwise operations are supported; overflow must be proved absent. source
Floating point IEEE 754 floating-point arithmetic, including rounding and NaNs. PartialPartial.The feature table lists floating point as partially supported.
Source
The feature table lists floating point as partially supported. source
Heap and pointers Dynamically allocated memory, pointers or references, and aliasing. SupportedSupported.References and Box, Rc and Arc are supported. Raw pointers are only partly supported (see unsafe).
Source
References and Box, Rc and Arc are supported. Raw pointers are only partly supported (see unsafe). source
Arrays and buffers Indexed memory such as arrays, slices, vectors and byte buffers. SupportedSupported.Arrays, slices and Vec are supported; index expressions are listed as partially supported.
Source
Arrays, slices and Vec are supported; index expressions are listed as partially supported. source
Loops Unbounded loops, which need invariants or bounds to verify. SupportedSupported.loop and while with invariants are supported; for loops are partially supported.
Source
loop and while with invariants are supported; for loops are partially supported. source
Recursion Functions that call themselves, directly or through others. SupportedSupported.Recursive functions with decreases clauses.
Source
Recursive functions with decreases clauses. source
Higher-order code Function pointers, closures and callbacks. PartialPartial.Closures are supported, but not mutable captures; function pointer types are not supported.
Source
Closures are supported, but not mutable captures; function pointer types are not supported. source
Threads and shared memory Concurrent threads with locks, atomics or message passing. PartialPartial.spawn/join, verified locks and Verus atomics work; std Mutex and RwLock do not.
Source
spawn/join, verified locks and Verus atomics work; std Mutex and RwLock do not. source
I/O and system calls Files, network, system calls and foreign-function calls. Not supportedNot supported.Printing and I/O are listed as not supported; such calls must go through unverified code with assumed specifications.
Source
Printing and I/O are listed as not supported; such calls must go through unverified code with assumed specifications. source
Standard library Specifications or models for the language's standard library. PartialPartial.The vstd library gives specifications for parts of std (Vec, HashMap, HashSet, VecDeque, Option, Result, Box, Rc, Arc). Many standard traits are only partly supported; Debug is not.
Source
The vstd library gives specifications for parts of std (Vec, HashMap, HashSet, VecDeque, Option, Result, Box, Rc, Arc). Many standard traits are only partly supported; Debug is not. source

Rust-specific features

Rust-specific features
FeatureSupportNotes
References and borrowing Shared and mutable references checked by the borrow checker. SupportedSupported.Shared and mutable borrows are supported.
Source
Shared and mutable borrows are supported. source
Traits and generics Generic functions and types with trait bounds. SupportedSupported.User-defined traits, associated types and higher-ranked bounds are supported; generic associated types only with lifetimes.
Source
User-defined traits, associated types and higher-ranked bounds are supported; generic associated types only with lifetimes. source
Closures Anonymous functions that capture their environment. PartialPartial.Closures without mutable captures.
Source
Closures without mutable captures. source
unsafe and raw pointers Code inside unsafe blocks, raw pointer dereferences and FFI. PartialPartial.Raw pointers are partially supported through vstd's permission-based raw_ptr API; transmute is not supported.
Source
Raw pointers are partially supported through vstd's permission-based raw_ptr API; transmute is not supported. source
Interior mutability Cell, RefCell, UnsafeCell and other mutation through shared references. PartialPartial.Cell and RefCell from std are not used directly; Verus provides its own verified cell types (for example PCell) instead.
Source
Cell and RefCell from std are not used directly; Verus provides its own verified cell types (for example PCell) instead. source
Trait objects dyn Trait values with dynamic dispatch. PartialPartial.Trait objects are listed as partially supported.
Source
Trait objects are listed as partially supported. source
Iterators Iterator chains such as map, filter and for loops over collections. PartialPartial.Iterators are listed as partially supported; the guide has a chapter on writing iterator specifications.
Source
Iterators are listed as partially supported; the guide has a chapter on writing iterator specifications. source
Panics Panicking operations (unwrap, indexing, overflow in debug builds) and their absence. SupportedSupported.Verified code is proved panic free (except resource exhaustion). Panic unwinding itself is partially supported.
Source
Verified code is proved panic free (except resource exhaustion). Panic unwinding itself is partially supported. source
async / await Asynchronous functions and futures. Not supportedNot supported.async functions, async blocks and await are not supported.
Source
async functions, async blocks and await are not supported. source

Stage

Computed from the evidence below; see the criteria. 1criterion is missing for Stage 2.

Stage 0 Research Met
  • Met: Publicly available evidence
  • Met: At least one published verification uses it Verus: A Practical Foundation for Systems Verification (SOSP 2024), with several verified systems. evidence
Stage 1 Usable Met
  • Met: Released or updated in the last 12 months Latest release: 0.2026.11.22.1ce6a59, 2026-11-23. evidence
  • Met: Installs and runs on current platforms Prebuilt releases for Linux, macOS and Windows on x86 and Arm. evidence
  • Met: User documentation or tutorial evidence
  • Met: Used by a group other than its authors Projects by other groups include the Asterinas project's verification of its OSTD library (vostd). evidence
Stage 2 Production Next
  • Not met: Verified code in production at two or more independent organizations 1 recorded: Amazon Web Services.
  • Met: Checker axis is not red
  • Met: Semantics axis is not red
  • Met: Public channel for soundness bugs Public GitHub issues with a "soundness" label. evidence

In use

Verified code in production, and notable verification projects.

In production

  • Amazon Web Services Proofs of key primitives used by the Nitro Isolation Engine and other critical infrastructure. source

Facts and sources

Effort
Auto-active: You write specifications and hints; a solver does the proving.
Licence
Open source, MIT
Maintained by
Verus contributors (github.com/verus-lang)
Latest release
0.2026.11.22.1ce6a59 (23 Nov 2026) source
Last checked
26 Nov 2026

Further sources

esc