Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue Jan 6, 2023 · 1 comment

Comments

@yurivict
Copy link

yurivict commented Jan 6, 2023

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

@Byron
Copy link
Owner

Byron commented Jan 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants