Skip to content

Remove the windows-sys dependency#60

Merged
Jake-Shadle merged 2 commits intorust-minidump:mainfrom
gabrielesvelto:no-windows-sys-dependencies
Oct 26, 2022
Merged

Remove the windows-sys dependency#60
Jake-Shadle merged 2 commits intorust-minidump:mainfrom
gabrielesvelto:no-windows-sys-dependencies

Conversation

@gabrielesvelto
Copy link
Copy Markdown
Contributor

@gabrielesvelto gabrielesvelto commented Oct 26, 2022

Resolves: #58

@gabrielesvelto
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread build.rs Outdated
@Jake-Shadle
Copy link
Copy Markdown
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
Copy Markdown
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