A rust macro that allows regular expression creation through independent files. Allows fully typed named groups.
renamed to regex_folder_macro
5 files changed, +10 -8
+1-1Cargo.lock
| @@ -77,7 +77,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 77 | 77 | checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" |
| 78 | 78 | |
| 79 | 79 | [[package]] |
| 80 | -name = "regex_macro" | |
| 80 | +name = "regex_folder_macro" | |
| 81 | 81 | version = "0.1.1" |
| 82 | 82 | dependencies = [ |
| 83 | 83 | "lazy_static", |
+4-4Cargo.toml
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | [package] |
| 2 | -name = "regex_macro" | |
| 2 | +name = "regex_folder_macro" | |
| 3 | 3 | description = "Generate code from regular expressions inside a folder with files ending in .re." |
| 4 | -repository = "https://github.com/huncholane/regex_macro" | |
| 4 | +repository = "https://github.com/huncholane/regex_folder_macro" | |
| 5 | 5 | license = "MIT" |
| 6 | -documentation = "https://docs.rs/regex_macro" | |
| 7 | -homepage = "https://github.com/huncholane/regex_macro" | |
| 6 | +documentation = "https://docs.rs/regex_folder_macro" | |
| 7 | +homepage = "https://github.com/huncholane/regex_folder_macro" | |
| 8 | 8 | version = "0.1.1" |
| 9 | 9 | edition = "2021" |
| 10 | 10 |
+1-1README.md
| @@ -1,4 +1,4 @@ | ||
| 1 | -# regex_macro | |
| 1 | +# regex_folder_macro | |
| 2 | 2 | |
| 3 | 3 | Allows for named groups in regular expressions to be generated from special files ending in `.re`. |
| 4 | 4 |
+2-1examples/event.rs
| @@ -1,4 +1,5 @@ | ||
| 1 | -use regex_macro::load_regex_files; | |
| 1 | +use regex_folder_macro::load_regex_files; | |
| 2 | + | |
| 2 | 3 | load_regex_files!("tests/regex"); |
| 3 | 4 | |
| 4 | 5 | fn main() { |
+2-1tests/test.rs
| @@ -1,4 +1,5 @@ | ||
| 1 | -use regex_macro::load_regex_files; | |
| 1 | +use regex_folder_macro::load_regex_files; | |
| 2 | + | |
| 2 | 3 | load_regex_files!("./tests/regex"); |
| 3 | 4 | |
| 4 | 5 | #[test] |