Skip to content

Commit

Permalink
refactor: Remove dependency on regex_macro
Browse files Browse the repository at this point in the history
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
  • Loading branch information
badboy committed Feb 16, 2016
1 parent 34319d8 commit b6c870e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
9 changes: 0 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,8 @@ regex = "0.1.41"
toml = "0.1.23"
time = "0.1.33"

[dependencies.regex_macros]
version = "*"
optional = true

[features]
default = []

# For debugging output
debug = []

# for building with nightly and unstable features
# until regex_macros compiles with nightly again, this should be commented out
# unstable = ["regex_macros"]
unstable = []
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// Until regex_macros compiles on nightly, we comment this out
//
// #![cfg_attr(feature = "unstable", feature(plugin))]
// #![cfg_attr(feature = "unstable", plugin(regex_macros))]

// DOCS

extern crate regex;
Expand Down
3 changes: 0 additions & 3 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ macro_rules! werr(
})
);

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

0 comments on commit b6c870e

Please sign in to comment.