Prusti
A static verifier for Rust, built on the Viper verification infrastructure, that proves absence of panics and overflows and checks code contracts.
At a Glance
Prusti core verifier source code licensed under the Mozilla Public License 2.0 (OSI-approved), with some files under Public Domain (CC0) or Apache-2.0/MIT.
Engagement
Available On
Alternatives
Listed Dec 2026
About Prusti
Prusti is a prototype verifier for Rust that formally proves the absence of bugs and the correctness of code contracts. It builds on the Viper verification infrastructure and is developed in the open under the prusti GitHub organization, with a VS Code extension and command-line tools for running it.
What It Is
Prusti is a static verifier for Rust programs. By default it verifies the absence of integer overflows and panics, proving that statements such as unreachable!() and panic!() cannot be reached. Overflow checking can be disabled with a configuration flag, which treats all integers as unbounded.
Users can also specify the functional behaviour of functions and external libraries with annotations such as preconditions, postconditions and loop invariants. Prusti checks these specifications and reports error messages when the code does not adhere to them.
How the Workflow Looks
You run Prusti on a Rust program and it reports verification errors with source locations. In the README example, a binary search reports "attempt to add with overflow" on (low + high) / 2. After the line is changed to low + ((high - low) / 2), the function verifies. A further example shows how to prove that the result is correct as well.
Getting It
The easiest route is the Prusti Assistant extension for VS Code. From the command line, precompiled binaries for Ubuntu, Windows and macOS are available from GitHub releases, or it can be built from source with rustup and ./x.py setup followed by ./x.py build --release. A Docker image is also described but is marked unmaintained. All command-line options provide prusti-rustc and cargo-prusti, used analogously to rustc and cargo build.
Source and Licensing
Most of the source is licensed under the Mozilla Public License 2.0, with some test directories in the public domain and a few files under Apache-2.0 or MIT.
Collections
Popular collections
- Let Your AI Read the Document, Not Just the Words
Collection by @priyashah
- Local-First Databases
Collection by @joemseifi
- Team of Agents
Collection by @joemseifi
- Pick Up Where Your Agent Left Off
Collection by @caiovalverde
Add Prusti to one of your collections.
Community Discussions
Be the first to start a conversation about Prusti
Share your experience with Prusti, ask questions, or help others learn from your insights.
Pricing
Open Source
Prusti core verifier source code licensed under the Mozilla Public License 2.0 (OSI-approved), with some files under Public Domain (CC0) or Apache-2.0/MIT.
- Mozilla Public License Version 2.0 for code authored by the Prusti team
- Some test/bench directories under Public Domain (CC0)
- Three source files under Apache-2.0 or MIT at your option
- Precompiled binaries for Ubuntu, Windows, macOS via GitHub releases
- Free VS Code extension (Prusti Assistant) to use Prusti from the IDE
Capabilities
Key Features
- Proves absence of integer overflows and panics by default
- Preconditions, postconditions and loop invariants as annotations
- Configurable overflow checking
- Specifications for external libraries and trait implementations
- prusti-rustc and cargo-prusti command-line tools
- VS Code extension (Prusti Assistant)
- Built on the Viper verification infrastructure
Integrations
Demo Video

