There's not much else to the error even with full backtrace
rror: cannot construct in6_addr with struct literal syntax due to private fields
--> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/socket2-0.5.7/src/sys/unix.rs:1355:5
|
1355 | in6_addr {
| ^^^^^^^^
|
= note: ...and other private field __align that was not provided
Backtrace settings can't affect this error – it's a compile-time error, not a runtime one.
Ah-ha! So it's in the crate socket2. Which in turn imports in6_addr from libc. It's here in libc.
It looks like some platform's libc either contains such a dummy field, or bindgen mistakenly generates an alignment-ensuring field instead of the correct #[repr(align(4))].
You should probably ask the maintainers of the libc crate for more specific help.