Skip to content

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
merged 7 commits into from
Mar 26, 2025

Conversation

juniper-here
Copy link
Contributor

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 small unsafe block, calling OsStr::from_encoded_bytes_unchecked, since Rust does not accept strings such as "\xFF".

Copy link
Owner

@Esper89 Esper89 left a 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.

@juniper-here juniper-here requested a review from Esper89 March 22, 2025 19:18
@juniper-here juniper-here force-pushed the remove-nightly-dependency branch from 3745066 to da2b037 Compare March 26, 2025 01:31
@Esper89 Esper89 force-pushed the remove-nightly-dependency branch from fb75927 to 24c8715 Compare March 26, 2025 02:55
@Esper89 Esper89 force-pushed the remove-nightly-dependency branch from 24c8715 to 5b11768 Compare March 26, 2025 02:57
@Esper89 Esper89 merged commit fee741a into Esper89:master Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants