3 unstable releases

✓ Uses Rust 2018 edition

0.2.0 May 13, 2019
0.1.1 Dec 26, 2018
0.1.0 Dec 6, 2018

#9 in #intel

Download history 27/week @ 2019-12-01 56/week @ 2019-12-08 15/week @ 2019-12-15 31/week @ 2019-12-22 17/week @ 2019-12-29 24/week @ 2020-01-05 66/week @ 2020-01-12 29/week @ 2020-01-19 24/week @ 2020-01-26 20/week @ 2020-02-02 29/week @ 2020-02-09 41/week @ 2020-02-16 44/week @ 2020-02-23 26/week @ 2020-03-01 28/week @ 2020-03-08 59/week @ 2020-03-15

142 downloads per month

MIT license

7KB
113 lines

intel-pstate

Rust crate for fetching and modifying intel_pstate kernel parameters.

use std::io;
use intel_pstate::PState;

fn main() -> io::Result<()> {
    if let Ok(pstate) = PState::new() {
        pstate.set_min_perf_pct(50)?;
        pstate.set_max_perf_pct(100)?;
        pstate.set_no_turbo(false)?;
    }

    Ok(())
}

lib.rs:

Crate for fetching and modifying the intel_pstate kernel parameters.

Example

use std::io;
use intel_pstate::PState;

fn main() -> io::Result<()> {
    if let Ok(pstate) = PState::new() {
        pstate.set_min_perf_pct(50)?;
        pstate.set_max_perf_pct(100)?;
        pstate.set_no_turbo(false)?;
    }

    Ok(())
}

Dependencies

~0.6–1MB
~20K SLoC