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

add support for camino Utf8Path and Utf8PathBuf #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sunshowers
Copy link

Add support behind a non-default "camino" feature.

Closes #90.

(One question I have is whether the feature should be called camino or camino1. I personally prefer baking in the semver major version into the feature name but opinions vary.)

@sunshowers
Copy link
Author

Should I also change the github config to run on PRs?

@oconnor663
Copy link
Owner

Should I also change the github config to run on PRs?

Oh that's a good idea, yes please.

src/lib.rs Show resolved Hide resolved
Allows testing for changes as they happen.
Add support behind a non-default `"camino"` feature.

Closes oconnor663#90.
@sunshowers
Copy link
Author

Updated! Sorry about the delay, this looks good to go now (hopefully tests pass)

@oconnor663
Copy link
Owner

(Apologies, I've had a busy time at work and built up a backlog of reviews on personal projects. But I haven't forgotten about this!)

@gibfahn
Copy link

gibfahn commented Mar 1, 2023

This is maybe obvious, but until we have this feature, the workaround is to use .as_str() on the path, e.g.:

let echo = Utf8Path::new("/bin/echo");

cmd!(echo.as_str(), "hi").run().unwrap();

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.

impl IntoExecutablePath for camino paths?
3 participants