gz / rust-cpuid

cpuid library in rust.
https://docs.rs/raw-cpuid/
MIT License
147 stars 43 forks source link

CpuId::new() not support apple m2 #154

Closed wacdev closed 1 year ago

wacdev commented 1 year ago

as title

gz commented 1 year ago

Hi this will be fixed once https://github.com/gz/rust-cpuid/pull/140 lands.

Please note however that this is an x86 specific library as cpuid (the instruction) is only available on x86 architectures. Hence, this library has very limited usefulness on M2 which is based on arm. In a nutshell: all you can do on M2 is to inspect previously serialized results of CPUID or custom/random CPUID result data.

gz commented 1 year ago

140 landed in v11. You can run the library on m2 now. Note that you won't be able to have the NativeCpuReader implementation for cpuid though (see my earlier coment.