Skip to content

Commit ed45ce0

Browse files
committed
refactor: Remove dependency on regex_macro
It was not used in stable at all, because it only works in nightly. Now that regex! is almost always slower¹ there's no reason to keep it in. ¹: rust-lang/regex#164
1 parent 34319d8 commit ed45ce0

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

Cargo.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,8 @@ regex = "0.1.41"
1414
toml = "0.1.23"
1515
time = "0.1.33"
1616

17-
[dependencies.regex_macros]
18-
version = "*"
19-
optional = true
20-
2117
[features]
2218
default = []
2319

2420
# For debugging output
2521
debug = []
26-
27-
# for building with nightly and unstable features
28-
# until regex_macros compiles with nightly again, this should be commented out
29-
# unstable = ["regex_macros"]
30-
unstable = []

src/macros.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ macro_rules! werr(
1313
})
1414
);
1515

16-
// regex cheat thanks to https://github.com/BurntSushi
17-
// Until regex_macros compiles with nightly again, this directive should be commented out
18-
// #[cfg(not(unstable))]
1916
macro_rules! regex(
2017
($s:expr) => (::regex::Regex::new($s).unwrap());
2118
);

0 commit comments

Comments
 (0)