Valust - Validator for Rust
Valust aims to provide a user-friendly, auto-generated data validation tool.
By leveraging Rust's powerful procedural macro system, valust can
automatically generate everything you need for data validation with just a few
simple attributes added to your data structures.
Example
use ;
use Valust;
.to_owned))]
pub String,
);
let raw_profile = ;
let profile = validate.expect;
assert_eq!;
Project Structure
Core
valust: Main crate, exposing fundamental traits (trait Validate) and error types.valust-derive: Derive macro for creating a validate-able struct.
External Tools & Utilities
valust-utils: Utilities that might be used when defining validators.valust-axum: Utilities for integratingvalustwithaxum.
Minimum Supported Rust Version (MSRV)
The MSRV of this project is 1.78.0 (With lockfile version 4), but is possibly able to compile unlocked with Rust 1.74.1 (With lockfile version 3).
And for development, the project requires Rust 1.83.0 to work on the source code.