sail-solve 0.3.1

Fast, cached Verus verification for Rust: standalone files, projects, watch and agent workflows
Documentation

sail-solve

Sail makes Verus verification fast and usable from the command line and coding agents. Verify an existing Rust file or Cargo project, watch edits, retain successful proofs, and independently validate focused repairs.

Install Sail 0.3.1 with Rust 1.99 or newer, a C toolchain, Rustup and Python 3:

rustup toolchain install 1.99.1 --profile minimal --component rust-src
cargo +1.99.1 install sail-solve --version 0.3.1 --locked
sail engine install

Save this as proof.rs:

use vstd::prelude::*;
verus! {
    proof fn arithmetic() {
        assert(1 + 1 == 2);
    }
}
fn main() {}
sail verify proof.rs
sail watch proof.rs

Verification reports the pinned Verus verdicts and diagnostics. Changing the assertion to 1 + 1 == 3 produces a verification error; unchanged successful inputs can reuse their established proof. sail mcp exposes verification and jobs over stdio for coding agents. Run sail --help for the CLI commands.

The package installs sail and its sail-solve-z3 companion. Engine installation downloads Sail's exact pinned Verus/Z3 runtime and validates the archive digest, provenance and every runtime file. Supported runtime platforms are Linux x86-64 with glibc 2.39 or newer and macOS on Apple silicon. No source checkout or separate Verus installation is needed.

Cargo installations build the CLI from source and establish their own proofs; GitHub release archives additionally provide preverified vstd and signed solver replies. Both routes keep the same proof-admission checks.

Installation · Standalone files · Background preparation · MCP · Project