wora 0.0.11

A framework for building applications (daemons, etc) that run in different environments (Linux, Kubernetes, etc).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use wora::o11y::{Host, HostInfo};

fn main() {
    let h = Host::new().unwrap();
    println!("{:?}", h.stats().cpu());

    let hi = HostInfo::new(h.sys()).unwrap();
    println!("{:?}", hi.os_type());
    #[cfg(target_os = "linux")]
    println!("{:?}", hi.current_process_tcp());
    #[cfg(target_os = "linux")]
    println!("{:?}", hi.current_process_udp());
}