Skip to content
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

Merged
merged 3 commits into from
Nov 15, 2023
Merged

Move memchr behind an optional feature #77

merged 3 commits into from
Nov 15, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Sep 24, 2023

Closes #76

@taiki-e
Copy link
Collaborator

taiki-e commented Sep 24, 2023

You have to add memchr feature to the value of --skip.

- run: cargo hack build --feature-powerset --no-dev-deps --target thumbv7m-none-eabi --skip std,default

Cargo.toml Outdated
alloc = []
memchr = ["std", "memchr_crate"]
Copy link
Collaborator

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.

Copy link
Member Author

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.

Copy link
Collaborator

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.

Copy link
Member Author

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.

@taiki-e
Copy link
Collaborator

taiki-e commented Oct 29, 2023

LGTM

Copy link
Collaborator

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@notgull notgull merged commit e94a46b into master Nov 15, 2023
7 checks passed
@notgull notgull deleted the notgull/memchr branch November 15, 2023 04:28
@notgull notgull mentioned this pull request Nov 18, 2023
taiki-e added a commit that referenced this pull request Jan 6, 2024
Since #77, this crate works
on 1.60.
taiki-e added a commit that referenced this pull request Jan 6, 2024
Since #77, this crate works
on 1.60.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

msrv 1.48 broken
2 participants