Skip to content

Commit

Permalink
Use regex-lite for chrono-tz-build
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Apr 15, 2024
1 parent 7e87927 commit 7066c49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions chrono-tz-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ documentation = "https://docs.rs/chrono-tz-build"
[features]
filter-by-regex = ["regex"]
case-insensitive = ["uncased", "phf/uncased"]
regex = ["dep:regex"]
regex = ["dep:regex-lite"]

[dependencies]
parse-zoneinfo = { version = "0.3" }
regex = { default-features = false, version = "1", optional = true }
regex-lite = { version = "0.1", optional = true }
phf = { version = "0.11", default-features = false }
phf_codegen = { version = "0.11", default-features = false }
uncased = { version = "0.9", optional = true, default-features = false }
6 changes: 1 addition & 5 deletions chrono-tz-build/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
extern crate parse_zoneinfo;
#[cfg(feature = "filter-by-regex")]
extern crate regex;

use std::collections::BTreeSet;
use std::env;
use std::fs::File;
Expand Down Expand Up @@ -382,7 +378,7 @@ mod filter {
use std::collections::HashSet;
use std::env;

use regex::Regex;
use regex_lite::Regex;

use crate::{Table, FILTER_ENV_VAR_NAME};

Expand Down

0 comments on commit 7066c49

Please sign in to comment.