jkvargas / russimp

Assimp bindings for Rust
Other
84 stars 27 forks source link

Handle bindgen signedness on Windows #16

Closed waych closed 3 years ago

waych commented 3 years ago

When building on x64_64-pc-windows-msvc, the types for enums are by default signed, resulting in many errors of the flavor:

expected `u32`, found `i32`

for types all enum value assignments that map enum types to those exposed by russimp-sys.

jkvargas commented 3 years ago

hey mate, thanks so much for your contribution. Would you mind to raise the cargo.toml version please? 0.2.3 would be fine.

Also, I am looking for someone to add a windows building to our yml. In case you interested haha =)

waych commented 3 years ago

FYI I got cargo test --lib building and passing on Windows locally. I should be able to send you a workflow config, but to make it work requires the following:

jkvargas commented 3 years ago

Sounds great bud. I made a small request on your other PR.