Closed skipkayhil closed 3 months ago
Friendly bump 🙂 Anything needed from me?
I just pushed a commit fixing some style nits. However, I've just realized we're using the windows
crate here, while normpath
depends on the windows-sys
crate, which is actually a totally separate crate (windows
does not depend on windows-sys
). So we would still be depending on two separate Windows API crates. Two possible solutions:
normpath
to dunce
, which has no dependencieswindows
, and instead use windows-sys
like normpath
The first option is simpler, but I believe there's some edge cases where normpath
is more compatible with certain paths, so maybe we'd need to go with the second option.
I've switched over to windows-sys
in https://github.com/Seeker14491/opener/pull/29, so now we only have one Windows API crate in our dependency tree.
Since normpath was added, opener has depended on both winapi (directly) and windows-sys (transitively).
This commit replaces usage of winapi with the windows crate so that it only depends on a single windows API crate. Additionally, the windows crate includes some functions that were manually linked in opener, so those manual links were able to be cleaned up.
I'm not very experienced with unsafe Rust 😅. Any feedback is appreciated!