[go: up one dir, main page]

sysinfo 0.29.11

Library to get system information such as processes, CPUs, disks, components and networks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

With the `serde` feature enabled, you can then serialize `sysinfo` types. Let's see an example
with `serde_json` (you need to add `serde_json` dependency in your `Cargo.toml` file to run
this example):

```
use sysinfo::{System, SystemExt};

let mut sys = System::new_all();
// First we update all information of our `System` struct.
sys.refresh_all();

println!("{}", serde_json::to_string(&sys).unwrap());
```