rust_rdrand
rust_rdrand copied to clipboard
Doesn't compile on Apple Silicon
Trying to compile this crate on Apple M1 Silicon errors with
error[E0425]: cannot find function `__cpuid` in module `arch`
--> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rdrand-0.8.2/src/lib.rs:163:33
|
163 | let cpuid0 = unsafe { arch::__cpuid(0) };
| ^^^^^^^ not found in `arch`
error[E0412]: cannot find type `CpuidResult` in module `arch`
--> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rdrand-0.8.2/src/lib.rs:171:30
|
171 | fn amd_family(cpuid1: &arch::CpuidResult) -> u32 {
| ^^^^^^^^^^^ not found in `arch`
error[E0412]: cannot find type `CpuidResult` in module `arch`
--> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rdrand-0.8.2/src/lib.rs:176:30
|
176 | fn has_rdrand(cpuid1: &arch::CpuidResult) -> bool {
| ^^^^^^^^^^^ not found in `arch`
error[E0425]: cannot find function `__cpuid` in module `arch`
--> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rdrand-0.8.2/src/lib.rs:184:20
|
184 | unsafe { arch::__cpuid(7).ebx & FLAG == FLAG }
| ^^^^^^^ not found in `arch`