Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use regex-lite for chrono-tz-build #170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading