Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update crate version and CHANGELOG to 0.31.0 #1328

Merged
merged 3 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <guillaume1.gomez@gmail.com>"]
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