note: _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1 has a #[repr(align)] attribute
--> C:\source\enet-sys-mvk\target\debug\build\enet-sys-476a2ef1944315e3\out/bindings.rs:59945:1
_^
note: _IMAGE_TLS_DIRECTORY64 contains a field of type _IMAGE_TLS_DIRECTORY64__bindgen_ty_1
--> C:\source\enet-sys-mvk\target\debug\build\enet-sys-476a2ef1944315e3\out/bindings.rs:59934:9
note: ...which contains a field of type _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1
--> C:\source\enet-sys-mvk\target\debug\build\enet-sys-476a2ef1944315e3\out/bindings.rs:59940:9
|
59940 | pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY64bindgen_ty_1bindgen_ty_1,
| ^^^^^^^^^^^^^^^^
For more information about this error, try rustc --explain E0588.
error: could not compile enet-sys due to previous error`
Adding the following to build.rs solves this though:
.blocklisttype("?P?IMAGE_TLS_DIRECTORY.*")
After the bindgen update, this doesnt build well with the latest Rust 1.6 toolchain (stable) on Windows:
cmake --version cmake version 3.23.1
rustc --version rustc 1.60.0 (7737e0b5c 2022-04-04)
Windows SDK: 10.0.22000.0
latestC:\source\enet-sys-mvk> cargo build Compiling enet-sys v1.0.0 (C:\source\enet-sys-mvk) error[E0588]: packed type cannot transitively contain a
#[repr(align)]` type --> C:\source\enet-sys-mvk\target\debug\build\enet-sys-476a2ef1944315e3\out/bindings.rs:59928:1_IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1
has a#[repr(align)]
attribute --> C:\source\enet-sys-mvk\target\debug\build\enet-sys-476a2ef1944315e3\out/bindings.rs:59945:1_IMAGE_TLS_DIRECTORY64
contains a field of type_IMAGE_TLS_DIRECTORY64__bindgen_ty_1
--> C:\source\enet-sys-mvk\target\debug\build\enet-sys-476a2ef1944315e3\out/bindings.rs:59934:9note: ...which contains a field of type
_IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1
--> C:\source\enet-sys-mvk\target\debug\build\enet-sys-476a2ef1944315e3\out/bindings.rs:59940:9 | 59940 | pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY64bindgen_ty_1bindgen_ty_1, | ^^^^^^^^^^^^^^^^For more information about this error, try
rustc --explain E0588
. error: could not compileenet-sys
due to previous error`Adding the following to build.rs solves this though: .blocklisttype("?P?IMAGE_TLS_DIRECTORY.*")