cpu-temp
An Intel CPU temperature monitoring library for Windows and Linux.
Features
- Read real-time CPU core temperatures
- Read CPU package temperature
- Support for Intel CPUs
- Multi-core temperature monitoring with physical core mapping
- Cross-platform support (Windows & Linux)
Platform Details
Windows
Uses MSR (Model Specific Register) access via the PawnIO driver for low-level temperature reading.
Linux
Uses the Linux hwmon subsystem (/sys/class/hwmon) for temperature readings. No special drivers required.
Requirements
Windows
- PawnIO driver must be installed for MSR access
- Run as administrator
Linux
- Root access or appropriate permissions to read
/sys/class/hwmonfiles
Installation
Add this to your Cargo.toml:
[]
= "0.1"
Usage
use IntelCpuTemperature;
// Create temperature monitor
let mut temp_monitor = new?;
// Read temperatures
let data = temp_monitor.get_temperatures?;
println!;
for core in &data.core_temps
CLI Tool
To build the CLI temperature monitoring tool:
License
MIT License - see LICENSE file for details.