Skip to content

Remove direct winapi dependency from mullvad-daemon exception handling#7382

Merged
faern merged 2 commits intomainfrom
remove-direct-winapi-dep
Dec 19, 2024
Merged

Remove direct winapi dependency from mullvad-daemon exception handling#7382
faern merged 2 commits intomainfrom
remove-direct-winapi-dep

Conversation

@faern
Copy link
Copy Markdown
Member

@faern faern commented Dec 19, 2024

We still pull in winapi as a transitive dependency via a bunch of crates. But this PR at least tries to remove the last usage of it as a direct dependency. This makes very little difference in practice, but is a step towards only using a single binding for the Windows API.


This change is Reviewable

@faern faern requested a review from dlon December 19, 2024 12:20
@faern faern force-pushed the remove-direct-winapi-dep branch 2 times, most recently from 3fd81e0 to cfc46e5 Compare December 19, 2024 14:40
@faern
Copy link
Copy Markdown
Member Author

faern commented Dec 19, 2024

I had to make this PR a bit less glorious. To get the EXCEPTION_EXECUTE_HANDLER constant, we need to upgrade to windows-sys 0.59. But this was not trivial, mostly due to rust-lang/socket2#528 🤦

I could just vendor the constant. But getting rid of winapi is not time critical. So I decided to keep it for now and see what happens with the socket2 issue.

Copy link
Copy Markdown
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@faern faern force-pushed the remove-direct-winapi-dep branch from cfc46e5 to b4ba15b Compare December 19, 2024 15:17
@faern faern merged commit 1e100f9 into main Dec 19, 2024
@faern faern deleted the remove-direct-winapi-dep branch December 19, 2024 15:18
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