A rust macro that allows regular expression creation through independent files. Allows fully typed named groups.
update readme
3 files changed, +3 -3
+1-1Cargo.lock
| @@ -78,7 +78,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" | ||
| 78 | 78 | |
| 79 | 79 | [[package]] |
| 80 | 80 | name = "regex_folder_macro" |
| 81 | -version = "0.1.3" | |
| 81 | +version = "0.1.4" | |
| 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 = "0.1.3" | |
| 8 | +version = "0.1.4" | |
| 9 | 9 | edition = "2021" |
| 10 | 10 | |
| 11 | 11 | [dependencies] |
+1-1README.md
| @@ -13,7 +13,7 @@ Allows for named groups in regular expressions to be generated from special file | ||
| 13 | 13 | - `m` (multiline): `^` and `$` match the start and end of lines, not just the entire input. |
| 14 | 14 | - `x` (extended): allows whitespace and comments starting with `#` inside the regex. |
| 15 | 15 | |
| 16 | -### Each regex file is a structure with 4 main implementations | |
| 16 | +### Each regex file is a structure with the following implementations | |
| 17 | 17 | |
| 18 | 18 | 1. `from_str(text: &str)` Finds a single match within the given string. |
| 19 | 19 | 2. `from_file(filename: &str)` Finds a single match after opening the given filename. |