valpackett / systemstat

Rust library for getting system information | also on https://codeberg.org/valpackett/systemstat
https://crates.io/crates/systemstat
The Unlicense
610 stars 71 forks source link

Support Mac arm64 #92

Closed phanmn closed 2 years ago

phanmn commented 2 years ago

Hi,

Do you plan to support Mac arm64 ?

Thanks

valpackett commented 2 years ago

I don't see anything x86_64 specific in macos.rs, is there any error when building on Apple silicon?

(In general few features are supported on macOS, you're welcome to contribute improvements)

Xunjin commented 2 years ago

It seems that the feature related to CPU load/temperature is not supported, do you have any idea or could guide me on how to open PR about? Thank you in advance.

valpackett commented 2 years ago

Lots of things are unsupported on macOS. I don't really use macOS so I'm not the one to ask about the APIs. From a quick search this is an example of talking to the SMC via IOKit.