-
Notifications
You must be signed in to change notification settings - Fork 449
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
Rewrite parser as part of new regex-syntax crate. #87
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,16 @@ path = "regex_macros/benches/bench_dynamic.rs" | |
test = false | ||
bench = true | ||
|
||
[dependencies.regex-syntax] | ||
path = "regex_syntax" | ||
version = "*" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I personally prefer to write out this section like so nowadays: [dependencies]
regex-syntax = { path = "regex_syntax", version = "*" } Also, perhaps this could have a more strict version requirement than There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Happy to oblige. I originally had that, but it looks very weird next to 👍 to everything else! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah unfortunately we can't switch underscore-to-dash after the fact just yet :( I would like to enable this kind of feature on crates.io though as I suspect it comes up more often than not! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, hypens it is! |
||
|
||
[dev-dependencies] | ||
rand = "0.3" | ||
|
||
[features] | ||
pattern = [] | ||
|
||
[profile.bench] | ||
opt-level = 3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that 3 is the default, so perhaps this could just be specified to set |
||
lto = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[package] | ||
name = "regex-syntax" | ||
version = "0.1.0" | ||
authors = ["The Rust Project Developers"] | ||
license = "MIT/Apache-2.0" | ||
repository = "https://github.com/rust-lang/regex" | ||
documentation = "http://doc.rust-lang.org/regex" | ||
homepage = "https://github.com/rust-lang/regex" | ||
description = "A regular expression parser (RE2 only)." | ||
|
||
[dev-dependencies] | ||
quickcheck = "*" | ||
rand = "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably also fine to just ignore everything called
target
andCargo.lock
here