# validator

Rust crate with a custom derive macro that validates the fields of a struct against declared rules.


Source: https://findsoftware.frbit.cloud/rust-validator/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/Keats/validator
- docs: https://docs.rs/validator

### Identity

- status: active
- maintainer: Vincent Prouillet
- maintainerType: individual
- parent: unknown
- firstRelease: 2016
- 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: not applicable

### Rendering and deploy

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

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-07-27

### Adoption

- githubStargazers: 2529
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 83
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 1357
- dependentPackages: 231

### Sources

- urls: https://api.github.com/repos/Keats/validator (read 2026-11-16)
- urls: https://raw.githubusercontent.com/Keats/validator/master/README.md (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/Keats/validator/master/LICENSE (read 2026-11-16)
- firstRelease: https://crates.io/api/v1/crates/validator (read 2026-11-16)
- category: https://raw.githubusercontent.com/Keats/validator/master/README.md (read 2026-11-16)
- language: https://api.github.com/repos/Keats/validator (read 2026-11-16)
- runtime: https://api.github.com/repos/Keats/validator (read 2026-11-16)
- installMethod: https://docs.rs/validator/latest/validator/ (read 2026-11-16)
- license: https://api.github.com/repos/Keats/validator (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/Keats/validator/master/LICENSE (read 2026-11-16)
- currentMajor: https://crates.io/api/v1/crates/validator/0.21.0 (read 2026-11-16)
- latestReleaseDate: https://crates.io/api/v1/crates/validator/0.21.0 (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/Keats/validator (read 2026-11-16)
- contributors: https://api.github.com/repos/Keats/validator/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/validator (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/validator (read 2026-11-16)

## Notes

validator is a Rust crate that checks the fields of a struct against rules declared with a derive macro.

## Worth knowing

The repository is a Cargo workspace whose derive crate and test crates sit beside the main crate. The newest version on crates.io has no matching tag in the repository, so the registry is where the current release is found.

---

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
