diff --git a/CHANGELOG.md b/CHANGELOG.md index c61d45a14..48cc2e9d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. + * `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. diff --git a/Cargo.toml b/Cargo.toml index 2a9fc5935..b28ddfac0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sysinfo" -version = "0.32.1" +version = "0.33.0" authors = ["Guillaume Gomez "] description = "Library to get system information such as processes, CPUs, disks, components and networks" repository = "https://github.com/GuillaumeGomez/sysinfo" diff --git a/migration_guide.md b/migration_guide.md index f9b09daa8..d3af7643f 100644 --- a/migration_guide.md +++ b/migration_guide.md @@ -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` 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