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 migration guide, CHANGELOG and crate version to 0.33.0 #1413

Merged
merged 3 commits into from
Dec 4, 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
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# 0.33.0

* Linux: Add more ARM vendor IDs.
* Linux: Improve CPU computation when refreshing a single process CPU usage.
* Windows: Fix CPU frequency not being refreshed.
* Windows: Improved components retrieval.
* Windows: Fix inconsistent `boot_time` information.
* Windows: Fix `User::groups`.
* macOS: Fix network data information being limited to 32 bits.
* macOS: Add newer macOS version for `System::long_os_version`.
* unix: Add support for network sub-interfaces.
* Use `std::env::consts::ARCH` as fallback for `System::cpu_arch`.
* Add disk I/O support provided through `Disk::usage`.
* Add `NetworkData::mtu`.
* Add `DiskRefreshKind` to have finer-grained disks refreshes.
* `Component::temperature` and `Component::max` now returns `Option<f32>`.
* `Users::refresh_list`, `Groups::refresh_list`, `Components::refresh_list`, `Networks::refresh_list` and `Disks::refresh_list` methods were renamed `refresh`.
* `*RefreshKind::new` methods were renamed `nothing`.
* Improve documentation for `DiskUsage::read_bytes`.
* Improve documentation for `Process::kill`.

# 0.32.1

* Fix compilation error due to `libc` update.
Expand Down
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.32.1"
version = "0.33.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
16 changes: 16 additions & 0 deletions migration_guide.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Migration guide

## 0.32 to 0.33

### Major changes

`Users::refresh_list`, `Groups::refresh_list`, `Components::refresh_list`, `Networks::refresh_list` and `Disks::refresh_list` methods were renamed into `refresh`. All of them except for `Users::refresh` and `Groups::refresh` expect a boolean to tell whether or not `sysinfo` should keep removed items.

`Component::temperature` and `Component::max` now returns `Option<f32>` instead of returning `f32::NaN` in case the information isn't available.

`*RefreshKind::new` methods were renamed `nothing` to better the match the `*RefreshKind::everything` method.

### New APIs

`Disks` now has a new `refresh_specifics` method expecting a `DiskRefreshKind` argument to allow you finer-grained refreshes.

The `NetworkData` type now has a new `mtu` method to retrieve the Maximum Transfer Unit.

## 0.31 to 0.32

### Major changes
Expand Down
Loading