-
Notifications
You must be signed in to change notification settings - Fork 27
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
Move memchr behind an optional feature #77
Conversation
You have to add memchr feature to the value of --skip. futures-lite/.github/workflows/ci.yml Line 45 in 32cc466
|
Closes #76 Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
2cef7a8
to
37d2684
Compare
Cargo.toml
Outdated
alloc = [] | ||
memchr = ["std", "memchr_crate"] |
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.
Considering the future support of core::io, I wonder if the memchr feature should not enable the std feature. However, I'm not sure if that will happen during the period when 2.x is the latest version.
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.
As of now futures-lite
uses futures-io
v0.3. I expect that v0.3 probably won't export core::io
traits without a breaking change, right? So I think we are secure in doing this for now.
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.
futures-io has (enabled by default) std
feature for future compatibility about this.
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.
Good point, I've decouple std
and memchr
.
LGTM |
Signed-off-by: John Nunley <[email protected]>
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.
Thanks!
Since #77, this crate works on 1.60.
Since #77, this crate works on 1.60.
Closes #76