-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Can memchr
be an optional dependency?
#182
Comments
It's not just What is causing the hesitancy to depend on |
Our use case is primarily to get the trait impls like |
Yeah I see. That is a conundrum indeed. If the optional dependency on |
I presume this would require adding a new default feature for memchr and the find APIs? This would be a breaking change to |
Ug right. Sigh. That's frustrating. I didn't consider that when I released The only other alternative would be to provide "naive" implementations of things that use On the one hand, you might look at it as a compatible change that introduces a potentially severe performance footgun. For example, users of On the other hand, Unfortunately, I'm not sure I see a way around this. I could put out |
I'd like to use
bstr
, but I don't need the search functions likefind_byte
andfind_byteset
that require thememchr
dependency. It seems that those functions could be feature-gated, especially sinceByteSlice
is a sealed trait.Would you accept a pull request making
memchr
an optional, default dependency?The text was updated successfully, but these errors were encountered: