-
Notifications
You must be signed in to change notification settings - Fork 1
Remove Nightly Dependency and Add Integration Tests #3
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
Merged
Esper89
merged 7 commits into
Esper89:master
from
juniper-here:remove-nightly-dependency
Mar 26, 2025
Merged
Remove Nightly Dependency and Add Integration Tests #3
Esper89
merged 7 commits into
Esper89:master
from
juniper-here:remove-nightly-dependency
Mar 26, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Esper89
requested changes
Mar 22, 2025
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.
I have a few naming & formatting nitpicks and one actually serious issue for you—the unsafe code used is undefined behavior on windows, and you really don't need to use unsafe code here at all anyways. Please fix these.
3745066
to
da2b037
Compare
fb75927
to
24c8715
Compare
24c8715
to
5b11768
Compare
Esper89
approved these changes
Mar 26, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As
utf8_chunks
has been stabilized, I have removed the need for any nightly-only features, and updated the code to use the stabilized API.I have also added unit tests, following the examples in
README.md
, to make sure the code indeed behaves as it should. Note for the last test, involving invalid UTF-8, I needed to use a smallunsafe
block, callingOsStr::from_encoded_bytes_unchecked
, since Rust does not accept strings such as"\xFF"
.