crabscore-energy

Crates.iocrabscore-energy
lib.rscrabscore-energy
version0.1.1
created_at2025-07-12 20:17:47.89782+00
updated_at2025-07-12 21:39:36.506124+00
descriptionEnergy monitoring for CrabScore - The Rust Efficiency Standard
homepagehttps://github.com/timarocks/crabscore
repositoryhttps://github.com/timarocks/crabscore
max_upload_size
id1749646
size73,801
Tima Rocks! (timarocks)

documentation

https://docs.rs/crabscore-cli

README

crabscore-energy

Energy monitoring for CrabScore - The Rust Efficiency Standard.

Crates.io Documentation License

Overview

Platform-specific energy monitoring with pluggable backends for measuring power consumption and carbon footprint of Rust applications.

Features

  • Cross-Platform Interface: Unified API for energy monitoring
  • macOS Support: Native energy monitoring implementation
  • Graceful Fallback: NullMonitor for unsupported platforms
  • Async Interface: Built on Tokio for non-blocking measurements
  • Future Linux/Windows Support: Ready for platform extensions

Usage

use crabscore_energy::interface::EnergyMonitor;

let monitor = crabscore_energy::interface::NullMonitor;
let metrics = monitor.collect().await?;

Installation

[dependencies]
crabscore-energy = "0.1.0"

License

Licensed under Apache-2.0. See LICENSE for details.

Commit count: 0

cargo fmt