[package]
name = "cpu-temp"
version = "0.1.0"
edition = "2021"
rust-version = "1.74"
description = "An Intel CPU temperature monitoring library for Windows and Linux using MSR access"
readme = "README.md"
license = "MIT"
authors = ["Cline"]
keywords = ["cpu", "temperature", "msr", "hardware-monitoring", "intel"]
categories = ["hardware-support", "os"]
repository = "https://github.com/ylws702/cpu-temp"
documentation = "https://docs.rs/cpu-temp"
[dependencies]
anyhow = "1.0"
crossbeam-channel = "0.5"
raw-cpuid = "11.0"
crossterm = { version = "0.29", optional = true }
ratatui = { version = "0.30", optional = true }
[target.'cfg(windows)'.dependencies]
affinity = "0.1"
bitfield = "0.19"
bytemuck = "1.25"
thiserror = "2.0"
windows = { version = ">=0.59, <=0.62", features = [
"Win32_Foundation",
"Win32_Storage_FileSystem",
"Win32_Security",
"Win32_System_IO",
"Win32_System_Registry",
"Win32_System_WindowsProgramming",
"Win32_System_SystemInformation",
"Win32_System_Threading",
] }
windows-registry = "0.6"
[target.'cfg(target_os = "linux")'.dependencies]
glob = "0.3"
[features]
default = []
cli = ["crossterm", "ratatui"]
[[bin]]
name = "cpu-temp"
required-features = ["cli"]
[package.metadata.docs.rs]
all-features = true