Skip to content

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

Open

Description

@yurivict
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

Activity

  1. Byron commented on Jan 6, 2023

    @Byron
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions