Skip to content

Commit

Permalink
Merge pull request #1328 from GuillaumeGomez/update
Browse files Browse the repository at this point in the history
Update crate version and CHANGELOG to 0.31.0
  • Loading branch information
GuillaumeGomez authored Jul 31, 2024
2 parents 692c4e7 + b5c6d95 commit 9c18e42
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# 0.31.0

* Split crate in features to only enable what you need.
* Remove `System::refresh_process`, `System::refresh_process_specifics` and `System::refresh_pids`
methods.
* Add new argument of type `ProcessesToUpdate` to `System::refresh_processes` and `System::refresh_processes_specifics` methods.
* Add new `NetworkData::ip_networks` method.
* Add new `System::refresh_cpu_list` method.
* Global CPU now only contains CPU usage.
* Rename `TermalSensorType` to `ThermalSensorType`.
* Process names is now an `OsString`.
* macOS: Fix invalid CPU computation when single processes are refreshed one after the other.
* Windows: Fix virtual memory computation.
* Windows: Fix WoW64 parent process refresh.
* Linux: Retrieve RSS (Resident Set Size) memory for cgroups.

# 0.30.13

* macOS: Fix segfault when calling `Components::refresh_list` multiple times.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
version = "0.30.13"
version = "0.31.0"
authors = ["Guillaume Gomez <[email protected]>"]
description = "Library to get system information such as processes, CPUs, disks, components and networks"
repository = "https://github.com/GuillaumeGomez/sysinfo"
Expand Down
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 9c18e42

Please sign in to comment.