Decision Workspace
github_username_regex vs gatekpr-patterns vs darth-rust
Side-by-side comparison of Rust crates
A lightweight Rust crate to check if a GitHub username / handle is valid
Regex pattern registry and pre-built pattern sets for Shopify validation
DarthRust is a Rust procedural macro library that aims to enhance developer productivity by auto-generating essential methods for struct manipulation. It provides a suite of macros that can be derived on any struct to equip it with a rich API for accessing and modifying fields, performing calculations, and handling input/output operations. With features like mutable and immutable getters, setters, JSON conversion methods, and custom printer functions for debugging, DarthRust streamlines the boilerplate code typically associated with struct management in Rust applications. It also includes unique methods for regex validation and range checking, further extending its utility. The library emphasizes ease of use, requiring only the addition of relevant crates and a simple derive attribute to unlock its full potential.
Core Metrics
| github_username_regex | gatekpr-patterns | darth-rust | |
|---|---|---|---|
| Health Score | 44 | 52 | 51 |
| Total Downloads | 3.9K | 216 | 86.0K |
| 30d Downloads | 5 | 80 | 193 |
| Dependents | 0 | 8 | 16 |
| Releases | 3 | 4 | 70 |
| Last Updated | 927d ago | 59d ago | 633d ago |
| Age | 2y 6m | 1m | 2y 4m |
Health Breakdown
Technical Details
| github_username_regex | gatekpr-patterns | darth-rust | |
|---|---|---|---|
| Version | 1.0.0 | 0.2.3 | 4.4.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 1 | 5 | 13 |
| Crate Size | 5KB | 17KB | 13KB |
| Features | 0 | 0 | 15 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.85 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •gatekpr-patterns leads with a health score of 52/100, but none of the options score above 80.
- •darth-rust has the most downloads (86.0K), suggesting wider adoption.
- •⚠ github_username_regex, darth-rust have not been updated in over a year.
- •gatekpr-patterns is pre-1.0 — API may change.