rust-sctp icon indicating copy to clipboard operation
rust-sctp copied to clipboard

Cannot build since rust 1.64 : cannot transmute between types of different size...

Open ptitdoc opened this issue 2 years ago • 0 comments

Since rust 1.64, it is not possible to build this library anymore:

cannot transmute between types of different sizes, or dependently-sized types
   --> src/sctpsock.rs:149:81

There have been a change in rust where std:::net::{Ipv4Addr, Ipv6Addr, SocketAddrV4, SocketAddrV6} do not rely anymore on sockaddr_in c struct, and this breaks compability with rust-sctp:

https://github.com/rust-lang/rust/pull/78802

Most rust network related libraries had to be changed accordingly.

ptitdoc avatar Jul 25 '23 08:07 ptitdoc