-
Notifications
You must be signed in to change notification settings - Fork 14
Fix OS compatibility issues with building Clap on Windows so the build succeeds #59
Comments
A workaround is to change the parser.rs file line 7 to: |
So that we don't have to configure this manually, try:
From https://github.com/kbknapp/clap-rs/pull/1190/files#diff-3519f1369b63436798d9d7841c7940e2R672. |
Alternatively we could use https://github.com/kbknapp/clap-rs#optional-dependencies--features:
|
The alternative method still doesn't build, but reintroducing the target checks in parser.rs of clap fixes the issue. We should raise an issue with clap about this. |
This seems to be something missed some time ago as the original annotation for this 'use' was only feature debug. However this broke builds using that feature on Windows. This change uses guards both for the feature and also wasm/windows specific targets/environments. closes clap-rs#1270 and is done in response to Drops-of-Diamond/diamond_drops#59
Thanks for pointing this one out! It seems a case that has been both missed during my changes and before that time also. I have fixed the issue and tested using a copy of your specific project also and can report success. Once the PR merges you should be good to update and go. |
Describe the bug
From https://gitter.im/Drops-of-Diamond/Development?at=5aed4e101eddba3d04d3ddb2.
To Reproduce
Steps to reproduce the behavior:
cargo make build
on a Windows OSExpected behavior
The project should build.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: