rust3ds / ctru-rs

Rust wrapper for libctru
https://rust3ds.github.io/ctru-rs/
Other
120 stars 18 forks source link

See if we can use bindgen layout tests #167

Closed ian-h-chamberlain closed 6 months ago

ian-h-chamberlain commented 7 months ago

To catch the struct size/alignment issues, I wonder if we could have caught that using bindgen's layout tests. I think they were omitted before because we didn't have any good way to run them, but with test-runner now we might be able to actually do it in CI. I'll file an issue

_Originally posted by @ian-h-chamberlain in https://github.com/rust3ds/ctru-rs/pull/162#discussion_r1501939671_