Skip to content

Commit

Permalink
Update migration guide for 0.31
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 31, 2024
1 parent 692c4e7 commit 4906472
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions migration_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,25 @@ let mut s = System::new();
s.refresh_processes(ProcessesToUpdate::All);
```

#### Global CPU usage

`System::global_cpu_usage` now returns an `f32` representing the global CPU usage and no
other information.

#### Features

You can now enable/disable parts of `sysinfo` API through its cargo features to have
smaller build (size and time). If you're only interested by network information, then
you'll import `sysinfo` like this:

```toml
sysinfo = { version = "0.31", default-features = false, features = ["network"] }
```

#### Renaming

The `TermalSensorType` type was renamed into `ThermalSensorType`.

## 0.29 to 0.30

With this update, the minimum supported Rust version goes up to 1.69.
Expand Down

0 comments on commit 4906472

Please sign in to comment.