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

Use windows crate instead of winapi #29

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

joshka
Copy link
Contributor

@joshka joshka commented Jun 22, 2024

This replaces #26
Using the windows crate instead of the windows-sys crate simplifies the
code and avoids having to maintain code that handles errors, and various
other simplifications provided by the higher level crate.

From the windows crate documentation:

The windows-sys crate is a zero-overhead fallback for the most
demanding situations and primarily where the absolute best compile
time is essential. It only includes function declarations (externs),
structs, and constants. No convenience helpers, traits, or wrappers
are provided.

joshka added 3 commits June 22, 2024 03:34
package `windows-result v0.1.2` cannot be built because it requires rustc 1.60 or newer
This replaces crossterm-rs#26
Using the windows crate instead of the windows-sys crate simplifies the
code and avoids having to maintain code that handles errors, and various
other simplifications provided by the higher level crate.

From the windows crate documentation:

> The windows-sys crate is a zero-overhead fallback for the most
> demanding situations and primarily where the absolute best compile
> time is essential. It only includes function declarations (externs),
> structs, and constants. No convenience helpers, traits, or wrappers
> are provided.
@joshka joshka requested a review from TimonPost as a code owner June 22, 2024 14:10
@joshka
Copy link
Contributor Author

joshka commented Jun 22, 2024

Build results:

This is not tested for real, as I don't have a window machine and had difficulty getting rust working on a Windows VM on my M2 mac.

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.

1 participant