5 releases
0.1.5 | Mar 17, 2023 |
---|---|
0.1.4 | Dec 6, 2022 |
0.1.3 | Dec 1, 2022 |
0.1.1 | Dec 1, 2022 |
0.1.0 | Nov 29, 2022 |
#840 in Procedural macros
27 downloads per month
2MB
74 lines
example
use regexp2rust_macro::regex2rust;
regex2rust!( foo = "12345(?<abc>123)" "ui");
assert_eq!(foo::exec(" 12345123"),[Some([1,9]),Some([6,9])]);
assert_eq!(foo::Group::abc as usize,1usize);
assert_eq!(foo::exec(" 12345123")[foo::Group::abc as usize],Some([6,9]));
for workspace
#Cargo.toml
[workspace]
members = ["yourcrate"]
resolver = "2"
Dependencies
~17–27MB
~435K SLoC