diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-11-01 17:20:41 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-11-01 17:20:54 +0000 |
| commit | da2980e5c9e7da3839eb71e450f206b1121d326e (patch) | |
| tree | 0bd5ceec0c708aa4ff80cf46a505131ec151c852 | |
| parent | 2c96e1c6de13821558b5aa40212a0eb7b1b6856f (diff) | |
| download | mon-da2980e5c9e7da3839eb71e450f206b1121d326e.tar.gz | |
feature gate regex parser
| -rw-r--r-- | Cargo.toml | 5 | ||||
| -rw-r--r-- | src/lib.rs | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -7,4 +7,7 @@ homepage = "https://jturnerusa.dev/cgit/mon" repository = "https://jturnerusa.dev/cgit/mon" [dependencies] -regex = "1.12.2"
\ No newline at end of file +regex = { version = "1.12.2", optional = true } + +[features] +regex = ["dep:regex"]
\ No newline at end of file @@ -1053,6 +1053,7 @@ where r#if(|_| true) } +#[cfg(feature = "regex")] pub mod str { use super::*; @@ -1099,6 +1100,7 @@ mod test { } #[test] + #[cfg(feature = "regex")] fn test_regex_parser() { let it = InputIter::new("abc 123"); |
