irongit

A rust macro that allows regular expression creation through independent files. Allows fully typed named groups.

7 lines232 BRust
1use regex_macro::load_regex_files;
2
3fn main() {
4 load_regex_files!("tests/regex");
5 let events = Event::vec_from_file("tests/samples/events.txt").unwrap();
6 println!("{}", serde_json::to_string_pretty(&events).unwrap());
7}