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

feat: enforce all Paths to be valid Unicode #326

Merged
merged 3 commits into from
Mar 5, 2021

Conversation

EverlastingBugstopper
Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper commented Mar 4, 2021

This PR introduces the camino dependency across the codebase, ensuring that all Paths are valid UTF-8, making them much easier to work with, and be confident that invalid UTF-8 will not muck up our plans.


It does change the API surface of quite a few of our subcrates, which maybe we don't want to do! I'm open to hearing that this is not something we should be doing, but it feels valuable to me to be confident when doing IO.


I've opened this issue to see if we can't get a nice try_from that returns a real error instead of the from_path_buf combined with map_err we're currently using.

This commit introduces the `camino` dependency across the codebase,
ensuring that all Paths are valid UTF-8, making them much easier
to work with, and be confident that invalid UTF-8 will not muck
up our plans.
@EverlastingBugstopper EverlastingBugstopper force-pushed the avery/brand-new-car branch 3 times, most recently from 95f3b53 to d137569 Compare March 4, 2021 19:19
@EverlastingBugstopper EverlastingBugstopper self-assigned this Mar 4, 2021
@EverlastingBugstopper EverlastingBugstopper added the feature 🎉 new commands, flags, functionality, and improved error messages label Mar 4, 2021
@EverlastingBugstopper EverlastingBugstopper added this to the March 9 milestone Mar 4, 2021
Copy link
Member

@lrlna lrlna left a comment

Choose a reason for hiding this comment

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

this looks good to me! thanks for looking into this crate \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎉 new commands, flags, functionality, and improved error messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants