From: Ian Jackson Date: Fri, 13 May 2022 23:49:17 +0000 (+0100) Subject: Add lazy_regex dependency X-Git-Tag: otter-1.1.0~203 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=eea107ffc6cc8c58423032d91d4517493c9befe7;p=otter.git Add lazy_regex dependency Sadly we can't use this in spec.rs because it's not compatible with concat! Signed-off-by: Ian Jackson --- diff --git a/Cargo.lock b/Cargo.lock index fbe966fa..5b7bb540 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index a9f88858..153f30d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/prelude.rs b/src/prelude.rs index e502c85d..765871c6 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -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};