-
Notifications
You must be signed in to change notification settings - Fork 77
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 windows compilation errors #52
Conversation
- fixes "unresolved import `winapi::um::fileapi`" errors for windows builds
I can add an AppVeyor build status badge as well...
But I'll need to know the AppVeyor assigned project tag (under https://ci.appveyor.com/project/ogham/rust-ansi-term \ Settings \ Badges; it'll replace the |
Ping @ogham . Have you had a chance to look this over? |
Yes, please merge this ASAP. The current version on crates.io is unusable on Windows. |
I changed the needed winapi features too in my PR #55. What do the other changes do? I could compile the project with just adding |
Further explanation, by commit, (notably, also explained in the commit messages)...
... both of the above are required to get passing AppVeyor CI builds
I'm also going to be adding a commit which inserts an AppVeyor testing badge, so that failures are easier to see on the first page of the repo. |
- customize expected pretty-print output for windows platforms - work-around for debug print format changes between versions (see <rust-lang/rust#62794>)
- *serde* configuration attributes require MRV >= 1.18.0 - introduced in commit 67f173d; "Optional serde serialization feature for colours and styles" - `cargo test` now includes transitive dependencies which require MRV >= 1.28.0 - use of the `#[must_use]` configuration attribute causes compiler warnings - warnings appear for compilers >= 1.22.0 and < 1.28.0 - introduced in commit afe5c93; "Mark Style::paint and Colour::paint as #[must_use]"
- use `CreateFileW` (usable in WinXP+) instead of `CreateFile2` (only usable in Win8+)
Makes more sense to base my PR on yours tbh. I'll just rebase accordingly after @ogham merges. |
Is @ogham even active any more? |
I created an organization where I merged the PRs of this crate. They can both live side by side. Just specify the depndency as a git url. If this gets merged later on, you can switch back. https://github.com/rust-ansi-term/rust-ansi-term/ |
Nice! I'll rebase my PR later on :) |
Thanks for this; sorry it took me so long to get round to. I hope the Windows CI fares better this time. Released as v0.12.1. |
Fix windows compilation errors
This PR set fixes currrent windows compilation errors (see AppVeyor build/test) and increases backwards window version compatibility.