Skip to content

Commit

Permalink
Merge pull request #1413 from GuillaumeGomez/update
Browse files Browse the repository at this point in the history
Update migration guide, CHANGELOG and crate version to 0.33.0
  • Loading branch information
GuillaumeGomez authored Dec 4, 2024
2 parents 58542de + 6d5bf57 commit 4807520
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
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

0 comments on commit 4807520

Please sign in to comment.