garde
Validation library for Rust that checks struct fields and enum variants against rules declared with a derive macro.
garde is a validation library for Rust. A struct or enum takes the Validate derive, and each field carries garde attributes that name its rules, such as length, range, email or a custom function. Calling validate on a value reports the failed rules with their field paths. Error messages can be customized by implementing an I18n trait. The README names integration crates for the axum and actix-web web frameworks.
The README says garde is heavily inspired by the validator crate and is essentially a full rewrite of it.
Identity
- Status
- Active
- Maintainer
- Jan Procházka3
- Maintained by
- Individual
- First release
- 20234
Rendering and deploy
- Install with
- cargo5
Releases
Adoption
Sources
- 2026-11-08: links, Written in, License model, GitHub stars
api.github.com/repos/jprochazk/garde - 2026-11-08: links, Categories, Runtime, Multilingual, License
github.com/jprochazk/garde/blob/main/README.md - 2026-11-08: Maintainer
github.com/jprochazk/garde/blob/main/LICENSE-MIT - 2026-11-08: First release
api.github.com/repos/jprochazk/garde/commits/v0.3.0 - 2026-11-08: Install with
docs.rs/garde/latest/garde/ - 2026-11-08: Current major version, Last release
api.github.com/repos/jprochazk/garde/releases/tags/v0.23.0 - 2026-11-08: Contributors
api.github.com/repos/jprochazk/garde/contributors?per_page=1 - 2026-11-08: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/crates.io/packages/garde