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

Avoid windows crate types in public API #4

Merged
merged 5 commits into from
Jan 26, 2024

Conversation

ohadravid
Copy link
Owner

@ohadravid ohadravid commented Jan 25, 2024

Followup to #3 + Fix a bug in query_process_id_list which I'll backport.

We can't have impl From<windows::...> for Handle (for a custom Handle type) because then every windows version change will be a breaking change 😢, so I decided to use plain isize for simplicity.

Currently a draft, since I still need to expose JOBOBJECT_EXTENDED_LIMIT_INFORMATION in a sanitize way.

Decided not to expose it since the user always needs to mark the right flags which is error prone, better to have people submit a PR.

cc @Kharosx0 @sunshowers

@ohadravid ohadravid force-pushed the bugfix/semver-and-windows-crate branch from 66315b4 to d2450e0 Compare January 25, 2024 08:28
@ohadravid ohadravid marked this pull request as ready for review January 26, 2024 07:38
@ohadravid ohadravid merged commit d92b210 into main Jan 26, 2024
2 checks passed
@ohadravid ohadravid deleted the bugfix/semver-and-windows-crate branch January 26, 2024 07:38
@sunshowers
Copy link

Sorry about not getting to this yesterday! This looks great.

Only things I'd add are:

  • It may be worth defining type HANDLE = isize (changing this now wouldn't be breaking).
  • windows-sys tends to be a bit faster to build than windows, and you could use that.

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.

2 participants