rulex-macro-0.4.0 has been yanked.
rulex-macro
This Rust procedural macro allows converting a rulex expression to a regex string literal at compile time:
use rulex;
const REGEX: &str = rulex!;
This string can then used with the regex crate:
let my_regex = new.unwrap;
Diagnostics
Errors from rulex are shown at compile time and are highlighted in your IDE. You can improve the
diagnostics by enabling the diagnostics feature, which requires Rust Nightly.
Regex flavor
If you want to use a regex flavor other than Rust, you can specify it after a hashtag:
const REGEX: &str = rulex!;
License
Dual-licensed under the MIT license or the Apache 2.0 license.