Commit 8ec5537
authored
feat: bindgen fix and update (#38)
This PR does the following changes:
- update of `bindgen` to `0.72`
- addition of `opaque_type` in bindgen flags to work around alignment
issues with virtual methods in MSFS SDK. This allows `cargo test` to run
successfully.
NOTE: with the update of bindgen from `0.69` to `0.72`, the size and
alignment checks have been moved from unit tests to checks at
compilation time. Without adding `opaque_type`, bindgen 0.69 fails
tests, while bindgen 0.72 fails compilation.
This change was tested with compilation of the a32nx and a380.1 parent fbfeb55 commit 8ec5537
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
0 commit comments