Skip to content

Add a check for 32bit Windows to target nightly Rust. #5

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

Merged
merged 1 commit into from
Sep 30, 2023

Conversation

andriyDev
Copy link
Owner

Previously, compiling with non-nightly Rust meant 32bit Windows would fail to generate bindings - bindgen will not use the "thiscall" ABI unless using nightly Rust. The bindings would therefore have (almost) nothing in them, so any calls would fail. Now at least there will be a warning, and if using nightly Rust, this will work!

Fixes #3.

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (d4507c8) 99.57% compared to head (19072d6) 99.57%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #5   +/-   ##
=======================================
  Coverage   99.57%   99.57%           
=======================================
  Files           1        1           
  Lines         698      698           
=======================================
  Hits          695      695           
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Previously, compiling with non-nightly Rust meant 32bit Windows would fail to generate bindings - bindgen will not use the "thiscall" ABI unless using nightly Rust. The bindings would therefore have (almost) nothing in them, so any calls would fail. Now at least there will be a warning, and if using nightly Rust, this will work!
@andriyDev andriyDev merged commit 737845e into main Sep 30, 2023
@andriyDev andriyDev deleted the fix-32bit-windows branch September 30, 2023 00:13
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.

Missing functions when compiling against 32bit targets
1 participant