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

Migrate to windows-rs #10

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Migrate to windows-rs #10

merged 1 commit into from
Feb 27, 2024

Conversation

pronebird
Copy link
Contributor

@pronebird pronebird commented Feb 27, 2024

  • Migrate to windows-rs. There is also -sys crate which would be identical to what winapi used to provide, windows-rs on the other side wraps winapi errors into Error convertible to std::io::Error which I found really nice. Lotta sys calls also return Result. Since many types in windows-rs are guarded with feature flags, you may find a type-to-feature explorer quite useful: https://microsoft.github.io/windows-rs/features/#/master
  • Drop widestring as windows-rs facilities provide tools for working with strings on Windows, typically via HSTRING which implements a variety of From traits which then is easily convertible into PCWSTR and alike.

Fixes #7

@pronebird pronebird force-pushed the windows-rs branch 2 times, most recently from a2dc494 to 2988378 Compare February 27, 2024 12:43
Copy link
Owner

@oblique oblique left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@oblique oblique merged commit c521d22 into oblique:master Feb 27, 2024
@pronebird
Copy link
Contributor Author

@oblique YW. Could you please bump a release? Thanks.

@pronebird pronebird deleted the windows-rs branch February 28, 2024 08:05
@oblique
Copy link
Owner

oblique commented Feb 28, 2024

Released as 0.4.0 0.4.1!

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.

Consider using windows-rs instead of winapi
2 participants