hyperledger-archives / indy-sdk

indy-sdk
https://wiki.hyperledger.org/display/indy
Apache License 2.0
666 stars 737 forks source link

Rust error E0512 #2556

Closed teodem closed 7 months ago

teodem commented 1 year ago

Hi guys,

i was following the installation process described in the documentation for Postgres. I've installed Rust and Cargo correctly. If i run: cargo build --release inside indy-sdk/experimental/plugins/postgres_storage, i get:

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
   --> /Users/.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.3.11/src/sockaddr.rs:156:9
    |
156 |         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

Any idea how can i solve this? Thank you!

darapich92 commented 1 year ago

@teodem I also face the same problem. Did you solve it?

miroslav-inc commented 1 year ago

Any update on this? :/