# cpufreq_lib [![Rust](https://github.com/VitorRamos/cpufreq_rust/actions/workflows/rust.yml/badge.svg)](https://github.com/VitorRamos/cpufreq_rust/actions/workflows/rust.yml) Wrapper around cpu filesystem (/sys/devices/system/cpu/) to control various aspects. ## Features - Get and set current frenquency and governor. - Enable and disable cores. - Disable hyperthread ## Crate - ## Installation $ cargo add cpufreq_lib ## Example ```rust use cpufreq::CPU; let cpu = CPU::new().unwrap(); let freqs = cpu.online().expect("Unable to read online cpus"); cpu.disable(1).unwrap(); ```