chipsenkbeil / typed-path

Provides typed variants of Path and PathBuf for Unix and Windows
38 stars 6 forks source link

Add typed-path versions for `current_exe` and `temp_dir`, including UTF8 variants #24

Closed simongoricar closed 3 months ago

simongoricar commented 3 months ago

Hello! I'm currently migrating to typed-path in my project and noticed that there were two path-related functions from std::env that I could not find in the utilities module.

This pull request adds the following functions under typed_path::utils:

chipsenkbeil commented 3 months ago

Awesome! Looks like there's some linter failures related to doc comments. On my phone, so can't quite tell what the reason is right now.

simongoricar commented 3 months ago

Seems unrelated - looks like it doesn't like the fn main in README.md doctests (the failure is error: needless fn main in doctest six times).

chipsenkbeil commented 3 months ago

Ah, I guess you're right! Most likely, this is some addition to the linter that happened since the last commit to the project. Let's merge this and I'll take a look at correcting the rest.

chipsenkbeil commented 3 months ago

@simongoricar published as 0.9.0. Thanks for the contribution!

simongoricar commented 3 months ago

A pleasure, thanks for the quick release!