Verified Rust for low-level systems code
Browse cluster: Lean4 Formal Verification & Cryptography →Verus is a project for verified Rust, a formal methods tool designed for proving properties of low-level systems code. The project incorporates a modified version of prettyplease, a minimal pretty-printer for Rust's `syn` syntax trees that converts AST structures into well-formatted source code strings. Prettyplease is built in Rust and designed as an alternative to rustfmt for formatting generated code, prioritizing reliability over perfection by ensuring entire inputs are always formattable rather than bailing out on complex constructs. The implementation is based on Derek C. Oppen's 1979 pretty-printing algorithm and uses the `syn` crate to work with Rust syntax trees.