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

Remove the windows-sys dependency #60

Merged

Conversation

gabrielesvelto
Copy link
Contributor

@gabrielesvelto gabrielesvelto commented Oct 26, 2022

Resolves: #58

@gabrielesvelto
Copy link
Contributor Author

The bindings are lifted from windows-sys, save for the structures used in minidump callbacks which are replaced with dummies (we don't use them and they use a zillion different types). This isn't great because I have to make the bindings public in order to use them from the tests; I'm not sure if there' s a way to expose them just to the test but not the the crate's users.

@gabrielesvelto gabrielesvelto force-pushed the no-windows-sys-dependencies branch from 0cb8f15 to 6f94ecd Compare October 26, 2022 10:24
Copy link
Collaborator

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

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

Just one minor change needed to ensure cross compilation works. Not sure why the build is freaking out about build.rs though

build.rs Outdated Show resolved Hide resolved
@Jake-Shadle
Copy link
Collaborator

Oh nvm, it's because it's an outer attribute so applies to the main function so my change would also fix the build issue.

@Jake-Shadle Jake-Shadle self-requested a review October 26, 2022 11:18
Copy link
Collaborator

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

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

🔥

@Jake-Shadle Jake-Shadle merged commit 18d57a8 into rust-minidump:main Oct 26, 2022
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.

Remove windows-sys dependency
2 participants