crates-io-cli icon indicating copy to clipboard operation
crates-io-cli copied to clipboard

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types

Open yurivict opened this issue 2 years ago • 1 comments

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
   --> /usr/ports/devel/crates-io-cli/work/crates-io-cli-4.0.0/cargo-crates/socket2-0.3.15/src/sockaddr.rs:176:9
    |
176 |         mem::transmute::<SocketAddrV4, sockaddr_in>(v4);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: source type: `SocketAddrV4` (48 bits)
    = note: target type: `sockaddr_in` (128 bits)

rust-1.66.0 FreeBSD 13.1

yurivict avatar Jan 06 '23 18:01 yurivict

I took a look and believe this crate needs some serious maintenance. Most dependencies are very out of date and upgrading them will probably help with this. For now, I will have to postpone that, though.

Byron avatar Jan 06 '23 18:01 Byron