Decision Workspace
github_username_regex vs perl-regex vs darth-rust
Side-by-side comparison of Rust crates
A lightweight Rust crate to check if a GitHub username / handle is valid
Regex parsing and validation helpers for Perl syntax
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 | perl-regex | darth-rust | |
|---|---|---|---|
| Health Score | 43 | 58 | 51 |
| Total Downloads | 3.9K | 6.6K | 87.0K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 14 | 16 |
| Releases | 3 | 14 | 70 |
| Last Updated | 1123d ago | 103d ago | 829d ago |
| Age | 3y | 7m | 2y 11m |
Health Breakdown
Technical Details
| github_username_regex | perl-regex | darth-rust | |
|---|---|---|---|
| Version | 1.0.0 | 0.17.0 | 4.4.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 1 | 1 | 13 |
| Crate Size | 5KB | 31KB | 13KB |
| Features | 0 | 0 | 15 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | 1.95 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •perl-regex leads with a health score of 58/100, but none of the options score above 80.
- •darth-rust has the most downloads (87.0K), suggesting wider adoption.
- •⚠ github_username_regex, darth-rust have not been updated in over a year.
- •perl-regex is pre-1.0 — API may change.