FindSoftware

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

Current major version
Pre-1.06
Last release
2026-05-236

Adoption

GitHub stars
9071
Contributors
227
Dependent repositories
68
Dependent packages
108

Why these figures do not compare

Sources

  1. 2026-11-08: links, Written in, License model, GitHub stars
    api.github.com/repos/jprochazk/garde
  2. 2026-11-08: links, Categories, Runtime, Multilingual, License
    github.com/jprochazk/garde/blob/main/README.md
  3. 2026-11-08: Maintainer
    github.com/jprochazk/garde/blob/main/LICENSE-MIT
  4. 2026-11-08: First release
    api.github.com/repos/jprochazk/garde/commits/v0.3.0
  5. 2026-11-08: Install with
    docs.rs/garde/latest/garde/
  6. 2026-11-08: Current major version, Last release
    api.github.com/repos/jprochazk/garde/releases/tags/v0.23.0
  7. 2026-11-08: Contributors
    api.github.com/repos/jprochazk/garde/contributors?per_page=1
  8. 2026-11-08: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/crates.io/packages/garde

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON