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

on Windows #3

Open
ghost3666 opened this issue Oct 25, 2023 · 0 comments
Open

on Windows #3

ghost3666 opened this issue Oct 25, 2023 · 0 comments

Comments

@ghost3666
Copy link

i copied C:\Users\Downloads\partial-eth-key-cracker-master\src\cargo.toml and lock files and run the command
after installing rust for windows
cargo run --bin other
after completed i got this error

Compiling vcpkg v0.2.8
Compiling tokio-udp v0.1.5
Compiling tokio-tcp v0.1.3
Compiling openssl-sys v0.9.53
Compiling tokio-timer v0.2.12
Compiling crossbeam-queue v0.1.2
Compiling socket2 v0.3.11
Compiling num-bigint v0.2.3
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> C:\Users\.cargo\registry\src\index.crates.io-6f17d22bba15001f\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 (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

C:\Users\Downloads\Compressed\partial-eth-key-cracker-master\src>rustc --explain E0512
Transmute with two differently sized types was attempted.

Erroneous code example:

fn takes_u8(_: u8) {}

fn main() {
    unsafe { takes_u8(::std::mem::transmute(0u16)); }
    // error: cannot transmute between types of different sizes,
    //        or dependently-sized types
}

Please use types with same size or use the expected type directly. Example:

fn takes_u8(_: u8) {}

fn main() {
    unsafe { takes_u8(::std::mem::transmute(0i8)); } // ok!
    // or:
    unsafe { takes_u8(0u8); } // ok!
}

How to run this on Windows

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
@ghost3666 and others