[package]
edition = "2021"
rust-version = "1.74"
name = "cpu-temp"
version = "0.1.0"
authors = ["Cline"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An Intel CPU temperature monitoring library for Windows and Linux using MSR access"
documentation = "https://docs.rs/cpu-temp"
readme = "README.md"
keywords = [
"cpu",
"temperature",
"msr",
"hardware-monitoring",
"intel",
]
categories = [
"hardware-support",
"os",
]
license = "MIT"
repository = "https://github.com/ylws702/cpu-temp"
[package.metadata.docs.rs]
all-features = true
[features]
cli = [
"crossterm",
"ratatui",
]
default = []
[lib]
name = "cpu_temp"
path = "src/lib.rs"
[[bin]]
name = "cpu-temp"
path = "src/main.rs"
required-features = ["cli"]
[dependencies.anyhow]
version = "1.0"
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.crossterm]
version = "0.29"
optional = true
[dependencies.ratatui]
version = "0.30"
optional = true
[dependencies.raw-cpuid]
version = "11.0"
[target.'cfg(target_os = "linux")'.dependencies.glob]
version = "0.3"
[target."cfg(windows)".dependencies.affinity]
version = "0.1"
[target."cfg(windows)".dependencies.bitfield]
version = "0.19"
[target."cfg(windows)".dependencies.bytemuck]
version = "1.25"
[target."cfg(windows)".dependencies.thiserror]
version = "2.0"
[target."cfg(windows)".dependencies.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",
]
[target."cfg(windows)".dependencies.windows-registry]
version = "0.6"