[package]
name = "simple-process-stats"
description = "Get memory usage and CPU time on Linux and Windows"
license = "MIT"
version = "2.0.0"
keywords = ["process", "cpu", "memory"]
categories = ["api-bindings", "os"]
repository = "https://github.com/robotty/simple-process-stats"
readme = "README.md"
authors = ["Ruben Anders <ruben.anders@robotty.de>"]
edition = "2024"
[dependencies]
thiserror = "2"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["psapi", "processthreadsapi"] }
[target.'cfg(target_os = "linux")'.dependencies]
procfs = "0.18"
libc = "0.2"
[target.'cfg(target_os = "macos")'.dependencies]
libproc = "0.14"
libc = "0.2"