-
Notifications
You must be signed in to change notification settings - Fork 451
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
Remove "perf" and "unicode" from default-features #721
Comments
The problem you point out is certainly real and I knew it would be a problem when I added the features about a year ago. While you've provided a solution to the problem, you have not provided any argument for why the downsides of your solution are better than the downsides of the status quo. In particular, if I did what you're suggesting, then:
Yup, exactly. If a library crate you're using depends on |
README.md
explains that one can disable default features to reduce binary size, but it is practically impossible with large dependency tree. As long as one of the crates includesregex
crate without specifyingdefault-features = false
,perf
feature is enabled. To disable it, you have to go to each dependency maintainer and convince them to disable default features.For such a widely used library it makes sense to disable these features by default and let application maintainers enable it if they want. Some libraries may also enable "unicode", but only if they really depend on it.
The text was updated successfully, but these errors were encountered: