-
Notifications
You must be signed in to change notification settings - Fork 128
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
Disable regex "perf" feature #181
Conversation
Users can still enable it if needed. Normally "env_logger" is used as a dev dependency, but because `-Z features=dev_dep` is not stabilized yet[1], "perf" feature leaks into build dependencies and makes it impossible to disable "perf" feature, except by disabling "env_logger". [1] rust-lang/cargo#7916
For rationale behind this, see rust-lang/regex#721 |
Hi, and thanks for the PR! I can understand the wish to use
The most common use I've seen is as a regular dependency in an application, so we definitely shouldn't just change the default feature set here. To make this possible in a backwards-compatible manner, please adjust your PR to
|
We have a https://github.com/deltachat/deltachat-core-rust application, which depends on Is backwards compatibility worth all these complications? How likely is it that someone used |
Then make a PR to have
This is true even with your PR as-is.
Yes. |
By the way, I've realized that updating this PR to be backwards-compatible is probably even easier than going through that list and then replacing all uses of // renamed in Cargo.toml to not conflict with the regex feature
extern crate regex1 as regex; |
It appears the |
Since it doesn't look like this PR is going anywhere, I'm going to close it. Feel free to open an issue about the same thing; I'm still open to fixing this in a backwards-compatible way (though am not going to work on the fix myself). |
Users can still enable it if needed.
Normally "env_logger" is used as a dev dependency, but because
-Z features=dev_dep
is not stabilized yet[1], "perf" feature leaks intobuild dependencies and makes it impossible to disable "perf" feature,
except by disabling "env_logger".
[1] rust-lang/cargo#7916