A rust macro that allows regular expression creation through independent files. Allows fully typed named groups.
docs warn to avoid rust keywords
3 files changed, +13 -3
+1-1Cargo.lock
| @@ -78,7 +78,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" | ||
| 78 | 78 | |
| 79 | 79 | [[package]] |
| 80 | 80 | name = "regex_folder_macro" |
| 81 | -version = "1.0.0" | |
| 81 | +version = "1.0.1" | |
| 82 | 82 | dependencies = [ |
| 83 | 83 | "lazy_static", |
| 84 | 84 | "proc-macro2", |
+1-1Cargo.toml
| @@ -5,7 +5,7 @@ repository = "https://github.com/huncholane/regex_folder_macro" | ||
| 5 | 5 | license = "MIT" |
| 6 | 6 | documentation = "https://docs.rs/regex_folder_macro" |
| 7 | 7 | homepage = "https://github.com/huncholane/regex_folder_macro" |
| 8 | -version = "1.0.0" | |
| 8 | +version = "1.0.1" | |
| 9 | 9 | edition = "2021" |
| 10 | 10 | |
| 11 | 11 | [dependencies] |
+11-1README.md
| @@ -6,6 +6,10 @@ Allows for named groups in regular expressions to be generated from special file | ||
| 6 | 6 | |
| 7 | 7 | ## Usage |
| 8 | 8 | |
| 9 | +### Warnings | |
| 10 | + | |
| 11 | +- Do not use rust syntax keywords such as type for field names in .re files | |
| 12 | + | |
| 9 | 13 | ### Initialization |
| 10 | 14 | |
| 11 | 15 | - Call the `load_regex_files!` macro on the directory that contains regex files. |
| @@ -37,9 +41,15 @@ The abstract structure for matches within the regex_folder_macro library contain | ||
| 37 | 41 | - Files load automatically into precompiled struct with macros which allows rust-analyzer to use provide type hints. |
| 38 | 42 | - Regular expressions can be split over multiple lines and use comments to improve readability for regular expressions. |
| 39 | 43 | |
| 44 | +### Changes | |
| 45 | + | |
| 46 | +#### 1.0.1 | |
| 47 | + | |
| 48 | +- Update the docs | |
| 49 | + | |
| 40 | 50 | ### Breaking changes |
| 41 | 51 | |
| 42 | -#### 0.0.6 -> 1.0.0 | |
| 52 | +#### 1.0.0 | |
| 43 | 53 | |
| 44 | 54 | - Functions from files require a buffer |
| 45 | 55 |