simple-process-stats 2.0.0

Get memory usage and CPU time on Linux and Windows
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "simple-process-stats"
version = "2.0.0"
authors = ["Ruben Anders <ruben.anders@robotty.de>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Get memory usage and CPU time on Linux and Windows"
readme = "README.md"
keywords = [
    "process",
    "cpu",
    "memory",
]
categories = [
    "api-bindings",
    "os",
]
license = "MIT"
repository = "https://github.com/robotty/simple-process-stats"

[lib]
name = "simple_process_stats"
path = "src/lib.rs"

[dependencies.thiserror]
version = "2"

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[target.'cfg(target_os = "linux")'.dependencies.procfs]
version = "0.18"

[target.'cfg(target_os = "macos")'.dependencies.libc]
version = "0.2"

[target.'cfg(target_os = "macos")'.dependencies.libproc]
version = "0.14"

[target.'cfg(target_os = "windows")'.dependencies.winapi]
version = "0.3"
features = [
    "psapi",
    "processthreadsapi",
]