#system-information #bindings #gathering #memory #libsigar

bin+lib sigar

Rust bindings for libsigar for gathering system information

2 releases

Uses old Rust 2015

0.0.2 Aug 29, 2015
0.0.1 Aug 29, 2015

#9 in #gathering

MIT license

2MB
51K SLoC

C 28K SLoC // 0.1% comments Java 17K SLoC // 0.3% comments Perl 3K SLoC // 0.0% comments C++ 1K SLoC // 0.1% comments C# 621 SLoC // 0.1% comments Ruby 513 SLoC // 0.4% comments Automake 203 SLoC Python 191 SLoC // 0.3% comments Erlang 163 SLoC // 0.4% comments Rust 162 SLoC // 0.2% comments Shell 125 SLoC // 0.1% comments Lua 96 SLoC // 0.2% comments Batch 40 SLoC PHP 14 SLoC M4 13 SLoC

Contains (JAR file, 370KB) cpptasks.jar, (JAR file, 350KB) sigar/bindings/java/lib/log4j.jar

rust-sigar

Rust bindings for libsigar for portably gathering system information.

usage

  1. Build and install libsigar.
  2. Use this library.
fn main() {
    match sigar::memory() {
        Ok(memory) => println!("Memory: {:?}", memory),
        Err(error) => println!("Error!: {:?}", error),
    };
}

Dependencies