[][src]Module mac_sys_info::generated_sysctl_keys

Raw mappings to the sysctl values/keys. (The output of $ sysctl -a) Last updated: 2020-11-26 on intel Macbook Pro on MacOS Catalina 10.15.7

Execute the binary sysctl_output_keys_to_rust_code.rs and copy the output of this command to renew this code.

This code uses [derive_more::Display]. If each enum variant differs from the default impl (and has its own #[display(fmt = "...")]-macro the build time takes up to one minute for the thousand of enum variants. This is currently not the case but maybe in the future. The code generation script has an option for that.

Enums

SysctlKey

This enum was generated using the binary sysctl_output_keys_to_rust_code.rs It contains (hopefully) all keys that the output of $ sysctl -a can show. This includes information about the CPU, the number of cores and caches. Might make trouble/inconsistencies with the AppleSi-Macbooks. I can't test it yet.