# 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.

- Kind: toolchain
- Verifies: Rust (Only code that opts in (inside the verus! macro or with Verus attributes) is checked. Verus supports a subset of Rust.)
- Effort: Auto-active — You write specifications and hints; a solver does the proving.
- Stage: 1 (Usable)
- Trust: Checker partial, Semantics partial, Frontend partial, Binary gap weak, Escape hatches partial
- Licence: open-source, MIT
- Latest release: 0.2026.11.22.1ce6a59 (2026-11-23) https://github.com/verus-lang/verus/releases/tag/release/0.2026.11.22.1ce6a59
- Links: [repo](https://github.com/verus-lang/verus), [docs](https://verus-lang.github.io/verus/guide/), [paper](https://doi.org/10.1145/3694715.3695952), [tutorial](https://verus-lang.github.io/verus/guide/getting_started.html)

## 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 (pipeline)

| Step | Component | Assurance | Note |
|---|---|---|---|
| frontend | 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. |
| 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. |
| checker | Z3 (`z3`) | trusted |  |
| compiler | rustc / LLVM | trusted | Ghost (proof-only) code is erased, and the remaining Rust code is compiled by the normal Rust compiler. |

## Trust

| Axis | Level | Summary | Note |
|---|---|---|---|
| Checker | Partial (amber) | 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](https://verus-lang.github.io/verus/guide/verus-guarantees.html) |
| Semantics | Partial (amber) | 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](https://iris-project.org/pdfs/2026-pldi-verusbelt.pdf) |
| Frontend | Partial (amber) | 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](https://verus-lang.github.io/verus/guide/verus-guarantees.html) |
| Binary gap | Weak (red) | The binary comes from rustc and LLVM, which are not verified. |  |
| Escape hatches | Partial (amber) | 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](https://verus-lang.github.io/verus/guide/tcb.html) |

## What it can prove

| Property | Support |
|---|---|
| No undefined behavior | Supported — 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](https://verus-lang.github.io/verus/guide/verus-guarantees.html)) |
| Functional correctness | Supported — Requires/ensures specifications with ghost code and proofs. ([source](https://verus-lang.github.io/verus/guide/verus-guarantees.html)) |
| Equivalence | Partial — No dedicated equivalence mode; you write both versions and a specification relating them by hand. |
| Information flow | Not supported — The Verus guide documents no information-flow or constant-time checking. ([source](https://verus-lang.github.io/verus/guide/)) |
| Concurrency | Partial — 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](https://verus-lang.github.io/verus/guide/features.html)) |
| Termination and liveness | Partial — 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](https://verus-lang.github.io/verus/guide/exec_termination.html)) |

## Common features

| Feature | Support |
|---|---|
| Machine integers | Supported — Signed, unsigned and usize/isize arithmetic and bitwise operations are supported; overflow must be proved absent. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Floating point | Partial — The feature table lists floating point as partially supported. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Heap and pointers | Supported — References and Box, Rc and Arc are supported. Raw pointers are only partly supported (see unsafe). ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Arrays and buffers | Supported — Arrays, slices and Vec are supported; index expressions are listed as partially supported. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Loops | Supported — loop and while with invariants are supported; for loops are partially supported. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Recursion | Supported — Recursive functions with decreases clauses. ([source](https://verus-lang.github.io/verus/guide/recursion.html)) |
| Higher-order code | Partial — Closures are supported, but not mutable captures; function pointer types are not supported. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Threads and shared memory | Partial — spawn/join, verified locks and Verus atomics work; std Mutex and RwLock do not. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| I/O and system calls | Not supported — Printing and I/O are listed as not supported; such calls must go through unverified code with assumed specifications. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Standard library | Partial — 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](https://verus-lang.github.io/verus/guide/features.html)) |

## Rust-specific features

| Feature | Support |
|---|---|
| References and borrowing | Supported — Shared and mutable borrows are supported. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Traits and generics | Supported — User-defined traits, associated types and higher-ranked bounds are supported; generic associated types only with lifetimes. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Closures | Partial — Closures without mutable captures. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| unsafe and raw pointers | Partial — Raw pointers are partially supported through vstd's permission-based raw_ptr API; transmute is not supported. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Interior mutability | Partial — Cell and RefCell from std are not used directly; Verus provides its own verified cell types (for example PCell) instead. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Trait objects | Partial — Trait objects are listed as partially supported. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Iterators | Partial — Iterators are listed as partially supported; the guide has a chapter on writing iterator specifications. ([source](https://verus-lang.github.io/verus/guide/features.html)) |
| Panics | Supported — Verified code is proved panic free (except resource exhaustion). Panic unwinding itself is partially supported. ([source](https://verus-lang.github.io/verus/guide/verus-guarantees.html)) |
| async / await | Not supported — async functions, async blocks and await are not supported. ([source](https://verus-lang.github.io/verus/guide/features.html)) |

## Stage

**Stage 1: Usable.**

| Stage | Criterion | Met | Evidence / note |
|---|---|---|---|
| 0 | Publicly available | yes | [evidence](https://github.com/verus-lang/verus) |
| 0 | At least one published verification uses it | yes | [evidence](https://doi.org/10.1145/3694715.3695952) Verus: A Practical Foundation for Systems Verification (SOSP 2024), with several verified systems. |
| 1 | Released or updated in the last 12 months | yes | [evidence](https://github.com/verus-lang/verus/releases/tag/release/0.2026.11.22.1ce6a59) Latest release: 0.2026.11.22.1ce6a59, 2026-11-23. |
| 1 | Installs and runs on current platforms | yes | [evidence](https://github.com/verus-lang/verus/releases/tag/release/0.2026.11.22.1ce6a59) Prebuilt releases for Linux, macOS and Windows on x86 and Arm. |
| 1 | User documentation or tutorial | yes | [evidence](https://verus-lang.github.io/verus/guide/) |
| 1 | Used by a group other than its authors | yes | [evidence](https://verus-lang.github.io/verus/publications-and-projects/) Projects by other groups include the Asterinas project's verification of its OSTD library (vostd). |
| 2 | Verified code in production at two or more independent organizations | no | 1 recorded: Amazon Web Services. |
| 2 | Checker axis is not red | yes |  |
| 2 | Semantics axis is not red | yes |  |
| 2 | Public channel for soundness bugs | yes | [evidence](https://github.com/verus-lang/verus/issues?q=label%3Asoundness) Public GitHub issues with a "soundness" label. |

Missing for Stage 2: Verified code in production at two or more independent organizations.

## In production
- Amazon Web Services: Proofs of key primitives used by the Nitro Isolation Engine and other critical infrastructure. ([source](https://www.amazon.science/blog/developing-provably-correct-rust-code-with-verus))

## Projects
- [Anvil: liveness of Kubernetes controllers (OSDI 2024)](https://www.usenix.org/conference/osdi24/presentation/sun-xudong)
- [VeriSMo: security module for confidential VMs (OSDI 2024)](https://www.usenix.org/conference/osdi24/presentation/zhou)
- [Atmosphere: verified kernel in Rust (SOSP 2025)](https://dl.acm.org/doi/10.1145/3731569.3764821)
- [Asterinas OSTD verification (vostd)](https://github.com/asterinas/vostd)

## Sources
- [Supported Rust features (last updated 2026-05-13)](https://verus-lang.github.io/verus/guide/features.html)
- [What Verus guarantees](https://verus-lang.github.io/verus/guide/verus-guarantees.html)
- [Assumptions and trusted components](https://verus-lang.github.io/verus/guide/tcb.html)
- [Verus: Verifying Rust Programs using Linear Ghost Types (OOPSLA 2023)](https://doi.org/10.1145/3586037)
- [Developing provably correct Rust code with Verus (Amazon Science, 2026-08-31)](https://www.amazon.science/blog/developing-provably-correct-rust-code-with-verus)
- [Verus publications and projects](https://verus-lang.github.io/verus/publications-and-projects/)

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