# garde

Validation library for Rust that checks struct fields and enum variants against rules declared with a derive macro.


Source: https://findsoftware.frbit.cloud/garde/
Last reviewed: 2026-11-08
Listed since: 2026-11-08

## Record

### Links

- repository: https://github.com/jprochazk/garde
- docs: https://docs.rs/garde/latest/garde/

### Identity

- status: active
- maintainer: Jan Procházka
- maintainerType: individual
- parent: unknown
- firstRelease: 2023
- hqCountry: unknown

### Kind

- category: library
- hosting: binary
- language: rust
- runtime: binary
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: yes, error messages can be customized by implementing an I18n trait

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: cargo

### License

- licenseModel: open-source
- license: Apache-2.0, MIT

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-05-23

### Adoption

- githubStargazers: 907
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 22
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 6
- dependentPackages: 10

### Sources

- urls: https://api.github.com/repos/jprochazk/garde (read 2026-11-08)
- urls: https://github.com/jprochazk/garde/blob/main/README.md (read 2026-11-08)
- maintainer: https://github.com/jprochazk/garde/blob/main/LICENSE-MIT (read 2026-11-08)
- firstRelease: https://api.github.com/repos/jprochazk/garde/commits/v0.3.0 (read 2026-11-08)
- category: https://github.com/jprochazk/garde/blob/main/README.md (read 2026-11-08)
- language: https://api.github.com/repos/jprochazk/garde (read 2026-11-08)
- runtime: https://github.com/jprochazk/garde/blob/main/README.md (read 2026-11-08)
- i18n: https://github.com/jprochazk/garde/blob/main/README.md (read 2026-11-08)
- installMethod: https://docs.rs/garde/latest/garde/ (read 2026-11-08)
- license: https://github.com/jprochazk/garde/blob/main/README.md (read 2026-11-08)
- license: https://github.com/jprochazk/garde/blob/main/README.md (read 2026-11-08)
- licenseModel: https://api.github.com/repos/jprochazk/garde (read 2026-11-08)
- currentMajor: https://api.github.com/repos/jprochazk/garde/releases/tags/v0.23.0 (read 2026-11-08)
- latestReleaseDate: https://api.github.com/repos/jprochazk/garde/releases/tags/v0.23.0 (read 2026-11-08)
- githubStargazers: https://api.github.com/repos/jprochazk/garde (read 2026-11-08)
- contributors: https://api.github.com/repos/jprochazk/garde/contributors?per_page=1 (read 2026-11-08)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/garde (read 2026-11-08)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/garde (read 2026-11-08)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
