chiark / gitweb /
Add lazy_regex dependency
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 13 May 2022 23:49:17 +0000 (00:49 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 14 May 2022 01:15:39 +0000 (02:15 +0100)
Sadly we can't use this in spec.rs because it's not compatible with
concat!

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Cargo.lock
Cargo.toml
src/prelude.rs

index fbe966fa003061a4522a75fd891fd6aa59fc4d8e..5b7bb5405a62ed7f2a762bcb8e59ed11ce9a43ed 100644 (file)
@@ -2082,6 +2082,29 @@ version = "0.5.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "23517540be87a91d06324e6bf6286ba8214171123ee8862ae9a5e7d938d71815"
 
+[[package]]
+name = "lazy-regex"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6b12f2eb6ed7d39405c5eb25a034b4c106a9ad87a6d9be3298de6c5f32fd57d"
+dependencies = [
+ "lazy-regex-proc_macros",
+ "once_cell",
+ "regex",
+]
+
+[[package]]
+name = "lazy-regex-proc_macros"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2496e5264069bc726ccf37eb76b9cd89406ae110d836c3f76729f99c8a23293"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "regex",
+ "syn",
+]
+
 [[package]]
 name = "lazy_static"
 version = "1.4.0"
@@ -2681,6 +2704,7 @@ dependencies = [
  "index_vec",
  "inventory",
  "lazy-init",
+ "lazy-regex",
  "lazy_static",
  "libc",
  "log",
index a9f88858eb340338f2b5c8adf60d7793c4e379ba..153f30d6b3f1effa7564f52413e7375fb89025e3 100644 (file)
@@ -56,6 +56,7 @@ glob="0.3"
 humantime-serde="1"
 inventory="0.2"
 lazy-init="0.5"
+lazy-regex="2"
 lazy_static="1"
 libc="0.2"
 log="0.4"
index e502c85d6fa3c4183d92de35f86cebc85a4a0c3d..765871c60bb0bb2da0ebe06eeed2732cab715a99 100644 (file)
@@ -74,6 +74,7 @@ pub use fs2::FileExt;
 pub use if_chain::if_chain;
 pub use index_vec::{define_index_type, index_vec, IndexSlice, IndexVec};
 pub use itertools::{chain, iproduct, izip, zip_eq, EitherOrBoth, Itertools};
+pub use lazy_regex::regex;
 pub use lazy_static::lazy_static;
 pub use log::{debug, error, info, trace, warn};
 pub use log::{log, log_enabled};