Skip to content

refactor: Remove dependency on regex_macro #13

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

Merged
merged 2 commits into from
Mar 22, 2016
Merged
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
8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,9 @@ 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