| Crates.io | rust-regex-dsl_derive |
| lib.rs | rust-regex-dsl_derive |
| version | 0.1.9 |
| created_at | 2024-07-05 12:36:26.228247+00 |
| updated_at | 2025-05-26 08:44:41.375391+00 |
| description | Regular expression DSL derive macros. |
| homepage | |
| repository | https://github.com/yift/rust-regex-dsl |
| max_upload_size | |
| id | 1292703 |
| size | 118,143 |
This crate was build to help using hard coded regular expressions.
While regular expressions is a powerful tool to parse and validate strings, they are hard to maintain from within a codebase. This is from a few reason reason:
([a-z]+)|([A-Z]+) has two group but only one will be caught, so none for index 3 has different meaning from none in index 1).Add
[dependencies]
rust-regex-dsl = "0.1"
To the Cargo.toml manifest. And use either one of the available macros.
See here.