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

fix: use dunce crate to remove UNC prefix #110

Merged
merged 11 commits into from
Oct 12, 2023
Merged

Conversation

iho
Copy link
Contributor

@iho iho commented Oct 9, 2023

Closes #4

On Windows, Path::canonicalize() returns a path with the UNC prefix not supported by cmd.exe and breaks the compilation of all crates that have include! macros in it. The problem is well known, and no proper solution at the current moment rust-lang/rust#42869
For now, I just cut this UNC prefix, but if users complain about that, we can come out with a more sophisticated solution like https://lib.rs/crates/dunce

@iho iho marked this pull request as ready for review October 11, 2023 13:48
@iho iho changed the title fix: make it work on Windows fix: use dunce crate to remove UNC prefix Oct 11, 2023
cargo-near/src/util/mod.rs Outdated Show resolved Hide resolved
cargo-near/src/util/mod.rs Outdated Show resolved Hide resolved
cargo-near/src/util/mod.rs Outdated Show resolved Hide resolved
cargo-near/src/util/mod.rs Outdated Show resolved Hide resolved
@frol frol merged commit e26f74e into near:main Oct 12, 2023
14 checks passed
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.

Support for Windows
2 participants