commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
808338d1bcf81077747e15195140ad0b4b1712cc | Lokathor | 2019-09-25T06:47:35 | remove that + | diff --git a/Cargo.toml b/Cargo.toml
index f4c6b79..fe81b96 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,7 +8,7 @@ readme = "README.md"
keywords = ["simd", "wide", "lokathor"]
categories = ["data-structures", "hardware-support"]
edition = "2018"
-license = "BlueOak-1.0.0+"
+license = "BlueOak-1.0.0"
[package.me... | 1 | 1 | 1 |
ab25aa2e151122b354f9d34c90806c03a16ad5fb | Lokathor | 2019-09-25T06:46:29 | (cargo-release) version 0.1.0 | diff --git a/Cargo.toml b/Cargo.toml
index 05d5b91..f4c6b79 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.0.1-alpha.0"
+version = "0.1.0"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor... | 1 | 5 | 5 |
315976e51fd97663e48664290b736085749ed5e3 | Lokathor | 2019-09-25T06:46:21 | spelling | diff --git a/Cargo.toml b/Cargo.toml
index f271770..05d5b91 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ default = []
# If you enable this feature the crate will always act like it's on the Stable
# toolchain. Otherwise, the crate will attempt to detect when the current
-# compiler is a Nightly compil... | 1 | 1 | 1 |
b9278754fba4e5c852f91a2d77f3fbe174a12a3b | Lokathor | 2019-09-25T06:45:08 | Update m_f32x4.rs | diff --git a/src/m_f32x4.rs b/src/m_f32x4.rs
index fe1dd03..24b51c4 100644
--- a/src/m_f32x4.rs
+++ b/src/m_f32x4.rs
@@ -1,27 +1,5 @@
use super::*;
-/*
-
-TODO: these are the methods that we didn't add yet
-
-* abs_sub
-
-* div_euclid
-* rem_euclid
-* clamp
-
-* to_bits
-* from_bits
-
-* is_finite
-* is_infinite
-* ... | 1 | 0 | 22 |
3ba8c0eba5029fca9fd661fd5b3b33e32a9b31e4 | Lokathor | 2019-09-25T06:34:43 | complete those methods | diff --git a/Cargo.toml b/Cargo.toml
index 89d11aa..f271770 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,7 +19,7 @@ default = []
always_use_stable = []
[dependencies]
-cfg-if = "0.1"
+cfg-if = "^0.1.10"
bytemuck = "0.1"
lokacore = "0.3" # TODO: remove lokacore so that this can become _a part of_ lokacore
dif... | 4 | 466 | 104 |
bec9a768fd7a2c1e4535e5ba77fed289e2b44813 | Lokathor | 2019-09-23T14:10:49 | simplify imports | diff --git a/src/lib.rs b/src/lib.rs
index a3f7efc..9c9a4b4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -43,11 +43,7 @@
pub(crate) use bytemuck::{cast, cast_mut, cast_ref, Pod, Zeroable};
pub(crate) use cfg_if::cfg_if;
-pub(crate) use core::{
- convert::*,
- fmt::{Binary, Debug, Display, LowerExp, UpperExp},
- o... | 1 | 1 | 5 |
7b6682338c32bfeb9c17cd00faf986394a0409ed | Lokathor | 2019-09-23T14:10:00 | formatting | diff --git a/src/lib.rs b/src/lib.rs
index fda5618..a3f7efc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -41,13 +41,13 @@
//! folks if there was any kind of ETA, 6 months, 12 months, or more, and they
//! just said "no ETA". So I'm not gonna wait around for `packed_simd`.
+pub(crate) use bytemuck::{cast, cast_mut, c... | 1 | 1 | 1 |
d0b25c3598cb0b7219899449dec80d2b38557faa | Lokathor | 2019-09-22T23:12:33 | Update m_f32x4.rs | diff --git a/src/m_f32x4.rs b/src/m_f32x4.rs
index d82f77d..dc195c0 100644
--- a/src/m_f32x4.rs
+++ b/src/m_f32x4.rs
@@ -60,7 +60,7 @@ impl IndexMut<usize> for f32x4 {
}
/// Various `f32` related consts, duplicated into x4 array form.
-///
+///
/// Rust doesn't let you declare SIMD values in a `const` context, so... | 1 | 13 | 17 |
e997bc5c2d0437998c371d6d07761f033fe921b8 | Lokathor | 2019-09-22T23:10:35 | small adjustments | diff --git a/Cargo.toml b/Cargo.toml
index 8db8c4e..c4a96c4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,7 +20,7 @@ always_use_stable = []
[dependencies]
cfg-if = "0.1"
-lokacore = "0.2"
+lokacore = "0.2" #TODO: remove lokacore, replace with bytemuck
# TODO: serde support
diff --git a/src/m_f32x4.rs b/src/m... | 2 | 22 | 20 |
9c3043560b9e6f82ab9efce4b35ebc00ae221609 | Lokathor | 2019-09-22T21:31:26 | fix the Neg impl | diff --git a/src/m_f32x4.rs b/src/m_f32x4.rs
index 564ccac..9253ca0 100644
--- a/src/m_f32x4.rs
+++ b/src/m_f32x4.rs
@@ -550,10 +550,10 @@ impl Neg for f32x4 {
Self { sse: self.sse.neg() }
} else {
Self { arr: [
- !self.arr[0],
- !self.arr[1],
- !self.arr[2],
- !self.arr[3... | 1 | 8 | 8 |
34b90a69c2c4a5ec80b826344dc0baf4d48c38c6 | Lokathor | 2019-09-22T21:20:30 | start of f32x4 | diff --git a/Cargo.toml b/Cargo.toml
index 4b5c319..8db8c4e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,7 +19,10 @@ default = []
always_use_stable = []
[dependencies]
-# TODO: serde
+cfg-if = "0.1"
+lokacore = "0.2"
+
+# TODO: serde support
[badges]
appveyor = { repository = "Lokathor/wide" }
diff --git a/e... | 5 | 903 | 17 |
6f3e8f2d6eceedac000740deac30d94af6dd0a24 | Lokathor | 2019-09-22T07:17:42 | cargo fmt | diff --git a/build.rs b/build.rs
index 84c85bb..c2b7b90 100644
--- a/build.rs
+++ b/build.rs
@@ -8,7 +8,7 @@ fn main() {
.arg("--version")
.output()
.expect("failed to execute `rustc --version`!");
- assert!(output.status.success(),"toolchain detection unsuccessful!");
+ assert!(output.status... | 4 | 9 | 10 |
f5785b2419fcec4d0bff025772fbc1bd8c772bde | Mads Marquart | 2026-04-07T22:42:35 | Use dep: syntax to remove accidental Cargo features | diff --git a/Cargo.toml b/Cargo.toml
index f5a6a9b..8ee1ef4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,6 +17,7 @@ name = "sysinfo"
[features]
default = ["component", "disk", "network", "system", "user"]
component = [
+ "dep:windows",
"windows/Win32_Foundation",
"windows/Win32_Security",
"windo... | 1 | 14 | 5 |
fb6396163414ee9cb6811093da5a5188c3820392 | Guillaume Gomez | 2026-04-04T13:24:18 | Prevent panic while indexing using `ProcIndex` | diff --git a/src/unix/linux/process.rs b/src/unix/linux/process.rs
index 5510907..ab6e338 100644
--- a/src/unix/linux/process.rs
+++ b/src/unix/linux/process.rs
@@ -414,7 +414,11 @@ unsafe impl<T> Sync for Wrap<'_, T> {}
#[inline(always)]
fn start_time_raw(parts: &Parts<'_>) -> u64 {
- u64::from_str(parts.str_pa... | 1 | 30 | 11 |
64737c594d917f27d6cdc0d15d8b91206679e8aa | Bennet Bleßmann | 2026-03-28T19:22:55 | implement network interface state (#1644)
Co-authored-by: Guillaume Gomez <contact@guillaume-gomez.fr> | diff --git a/examples/simple.rs b/examples/simple.rs
index 5a8b29c..bf9aa23 100644
--- a/examples/simple.rs
+++ b/examples/simple.rs
@@ -197,9 +197,11 @@ fn interpret_input(
println!(
"\
{interface_name}:
+ operational state {}
ether {}
input data (new / total): {} / {} B
... | 10 | 254 | 12 |
85cd6ae3ab5ee0037853dec685ff3b0063410cd7 | Justin Martin | 2026-03-27T19:33:48 | use dev_mount_point for name with zfs on freebsd | diff --git a/src/unix/bsd/freebsd/disk.rs b/src/unix/bsd/freebsd/disk.rs
index af53214..2d6681d 100644
--- a/src/unix/bsd/freebsd/disk.rs
+++ b/src/unix/bsd/freebsd/disk.rs
@@ -394,7 +394,9 @@ pub unsafe fn get_all_list(
if mount_point == "/boot/efi" {
continue;
}
- let name = if m... | 1 | 3 | 1 |
c0917d9515fec4357d809b996c8a42e5c2caed2a | Guillaume Gomez | 2026-03-26T22:43:13 | Remove unneeded conditions before updating `mtu` field | diff --git a/src/unix/apple/network.rs b/src/unix/apple/network.rs
index 64607ae..6518500 100644
--- a/src/unix/apple/network.rs
+++ b/src/unix/apple/network.rs
@@ -188,9 +188,7 @@ impl NetworksInner {
let data = mib_data.assume_init();
update_network_da... | 5 | 5 | 15 |
564c481f16e32a696d747198c3e15934575d556b | Andy Lok | 2026-03-17T11:28:41 | feat: add `Process::cgroup_limits` (#1643) | diff --git a/src/common/system.rs b/src/common/system.rs
index d02be6c..d14b7f8 100644
--- a/src/common/system.rs
+++ b/src/common/system.rs
@@ -624,13 +624,10 @@ impl System {
self.inner.used_swap()
}
- /// Retrieves the limits for the current cgroup (if any), otherwise it returns `None`.
+ /// R... | 10 | 332 | 125 |
91b92f12025c19fa27567135be7589d32d826e6b | Guillaume Gomez | 2026-03-09T16:02:42 | Update crate version to `0.38.4` | diff --git a/Cargo.toml b/Cargo.toml
index 1a403a6..f5a6a9b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.38.3"
+version = "0.38.4"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
73d545c80c472e22b926789f312ce350f83ba23d | Mads Marquart | 2026-03-09T15:28:37 | Fix warnings introduced in new objc2-* versions | diff --git a/src/unix/apple/macos/component/x86.rs b/src/unix/apple/macos/component/x86.rs
index 4deb06f..5287649 100644
--- a/src/unix/apple/macos/component/x86.rs
+++ b/src/unix/apple/macos/component/x86.rs
@@ -1,14 +1,16 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use crate... | 5 | 32 | 24 |
5cc4bcb93eb3daf9d6f01a59ca2433fc7095a869 | Mads Marquart | 2026-03-09T15:28:18 | Don't pin objc2-* crates
It's not a problem in these crates, it was a problem with using
`kIOMainPortDefault`. | diff --git a/Cargo.toml b/Cargo.toml
index e9941fe..1a403a6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -128,12 +128,10 @@ windows = { version = ">=0.62, <0.63", optional = true }
libc = "^0.2.173"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
-# If the package version is updated, the min... | 1 | 2 | 4 |
a8ee05c1afa43aff92c0c0509be35d0523ab9b87 | Patrick Jakubowski | 2026-03-07T18:42:15 | Use fragment size instead of block size for disk stats
According to the statvfs man page, f_blocks is in units of f_frsize rather than f_bsize. | diff --git a/src/unix/linux/disk.rs b/src/unix/linux/disk.rs
index c748d6d..cdb28cf 100644
--- a/src/unix/linux/disk.rs
+++ b/src/unix/linux/disk.rs
@@ -235,14 +235,14 @@ unsafe fn load_statvfs_values(mount_point: &Path) -> Option<(u64, u64, bool)> {
{
let stat = unsafe { stat.assume_init() };
- ... | 1 | 3 | 3 |
3cf4b65255b533f8a154bc75adfaf66268bf82f8 | Guillaume Gomez | 2026-03-02T10:51:03 | Update crate version to `0.38.3` | diff --git a/Cargo.toml b/Cargo.toml
index c8942bb..e9941fe 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.38.2"
+version = "0.38.3"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
b32882ae23895f167366c22c217dbda375647a6d | Bohdan Sokolovskyi | 2026-03-01T00:04:33 | fix: improve accuracy of used memory calculation for macos | diff --git a/src/unix/apple/system.rs b/src/unix/apple/system.rs
index fbec1c8..9991928 100644
--- a/src/unix/apple/system.rs
+++ b/src/unix/apple/system.rs
@@ -197,7 +197,11 @@ impl SystemInner {
.saturating_add(u64::from(stat.inactive_count))
.saturating_add(u64::from... | 1 | 5 | 1 |
7aad97bf1ccaa3a1bf429ea34ae4160ce7035eab | Bohdan Sokolovskyi | 2026-02-27T20:41:40 | fix(macos): implement right used and available ram memory calculation | diff --git a/src/unix/apple/system.rs b/src/unix/apple/system.rs
index 868676a..fbec1c8 100644
--- a/src/unix/apple/system.rs
+++ b/src/unix/apple/system.rs
@@ -189,24 +189,15 @@ impl SystemInner {
&mut count,
) == libc::KERN_SUCCESS
{
- // From ... | 1 | 6 | 15 |
9e2a28e65e046cb05e582e56bd0d72bc1d8f87fc | Guillaume Gomez | 2026-02-28T01:45:19 | Fix new clippy lint | diff --git a/src/lib.rs b/src/lib.rs
index 7bb17f5..74e4786 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -316,8 +316,8 @@ mod test {
));
assert!(
s.processes()
- .iter()
- .filter_map(|(_, p)| p.user_id())
+ ... | 1 | 2 | 2 |
8a27fcd8162053e1e5f1b459123d1e3bf43c95d8 | Guillaume Gomez | 2026-02-25T20:38:35 | Remove trailing commas in inlined macros | diff --git a/examples/simple.rs b/examples/simple.rs
index 7e662ab..5a8b29c 100644
--- a/examples/simple.rs
+++ b/examples/simple.rs
@@ -116,7 +116,7 @@ fn interpret_input(
.map(|c| c.to_string())
.unwrap_or_else(|| "Unknown".to_owned()),
);
- println!("... | 1 | 4 | 4 |
b11b6e5b18f5878eeed1fc8d548d6515fa03a555 | Guillaume Gomez | 2026-02-25T20:38:01 | Precise CPU frequency unit | diff --git a/src/common/system.rs b/src/common/system.rs
index 841b391..d02be6c 100644
--- a/src/common/system.rs
+++ b/src/common/system.rs
@@ -2860,7 +2860,7 @@ impl Cpu {
self.inner.brand()
}
- /// Returns the CPU's frequency.
+ /// Returns the CPU's frequency (in MHz).
///
/// ```no_... | 1 | 1 | 1 |
6673f0453ef7475781a81e3dab8e5492741d1580 | Guillaume Gomez | 2026-02-15T14:57:39 | Update crate version to `0.38.2` | diff --git a/Cargo.toml b/Cargo.toml
index b5f370d..c8942bb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.38.1"
+version = "0.38.2"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
8aa5200e062dc62bbb92ab8e963151deb7099465 | Guillaume Gomez | 2026-02-15T14:37:03 | Implement `Error` trait for error types | diff --git a/src/common/network.rs b/src/common/network.rs
index b350c7f..714cb8a 100644
--- a/src/common/network.rs
+++ b/src/common/network.rs
@@ -480,6 +480,17 @@ impl FromStr for MacAddr {
}
}
+impl core::fmt::Display for MacAddrFromStrError {
+ fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fm... | 2 | 36 | 0 |
74ae5e97a2e2a42438eb59d47d5d38af120e37f6 | Guillaume Gomez | 2026-02-06T21:32:54 | Update crate version to `0.38.1` | diff --git a/Cargo.toml b/Cargo.toml
index 7fb0bb4..b5f370d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.38.0"
+version = "0.38.1"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
385e819ff44c359312ba2f4e448e92134b480b9e | Guillaume Gomez | 2026-02-03T15:18:48 | Enforce version restrictions on `objc2-core-foundation` and on `objc2-io-kit` dependencies | diff --git a/Cargo.toml b/Cargo.toml
index 1bff5b2..7fb0bb4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -128,10 +128,12 @@ windows = { version = ">=0.62, <0.63", optional = true }
libc = "^0.2.173"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
-objc2-core-foundation = { version = "0.3.1",... | 1 | 4 | 2 |
4b07f3eb841ce572acdeddd9e29e285919250ffa | Guillaume Gomez | 2026-02-03T15:17:08 | Revert "Update `objc2-core-foundation` and `objc2-io-kit`"
This reverts commit 6273795a6e328fe6c33f4c46efb0c76e37cb99ac. | diff --git a/Cargo.toml b/Cargo.toml
index ee70bfb..1bff5b2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -128,10 +128,10 @@ windows = { version = ">=0.62, <0.63", optional = true }
libc = "^0.2.173"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
-objc2-core-foundation = { version = "0.3.2",... | 6 | 14 | 14 |
92fd93b600b50c72353bba2e4169bece619bd4ab | Justin Terry | 2026-01-27T22:41:14 | Move PDH references to W fn's
This change moves the references PdhAddEnglishCounterA, PdhEnumObjectsA,
and CreateEventA to the W equivalents. | diff --git a/src/windows/cpu.rs b/src/windows/cpu.rs
index 02b56c6..ba7ff1f 100644
--- a/src/windows/cpu.rs
+++ b/src/windows/cpu.rs
@@ -12,9 +12,8 @@ use std::sync::{Mutex, OnceLock};
use windows::Win32::Foundation::{CloseHandle, ERROR_INSUFFICIENT_BUFFER, ERROR_SUCCESS, HANDLE};
use windows::Win32::System::Performa... | 1 | 14 | 15 |
7197638814bea24d95b2612376535b34780a9623 | Guillaume Gomez | 2026-01-24T16:01:22 | Update crate version to `0.38.0` | diff --git a/Cargo.toml b/Cargo.toml
index 4d1a0b8..ee70bfb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.37.2"
+version = "0.38.0"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
f69a2b943f6faa909c1a4ca110cb8b3b3afaae52 | Guillaume Gomez | 2026-01-24T16:01:00 | Fix typos and make `Motherboard::new` return `None` on NetBSD | diff --git a/src/common/system.rs b/src/common/system.rs
index c095ebc..7ae6c86 100644
--- a/src/common/system.rs
+++ b/src/common/system.rs
@@ -920,7 +920,7 @@ impl System {
/// This type allows to retrieve motherboard-related information.
///
-/// ⚠️ Not implemented in NetBSD.
+/// ⚠️ Not implemented on NetBSD.
... | 2 | 4 | 3 |
b564d9af39dec63f00ee4edd0d2d0eea1c91ad4c | Guillaume Gomez | 2026-01-22T11:38:06 | Add `Process::root` support for NetBSD | diff --git a/src/unix/bsd/netbsd/process.rs b/src/unix/bsd/netbsd/process.rs
index ae40d5c..772e008 100644
--- a/src/unix/bsd/netbsd/process.rs
+++ b/src/unix/bsd/netbsd/process.rs
@@ -1,5 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.
+use crate::unix::utils::realpath;
use ... | 5 | 23 | 16 |
ae044ef4c68170e92f6925c0bae35ef17c9f19b2 | Guillaume Gomez | 2026-01-22T11:15:08 | Implement `Process::open_files` on NetBSD | diff --git a/src/unix/bsd/netbsd/process.rs b/src/unix/bsd/netbsd/process.rs
index ae40d5c..dc45a8d 100644
--- a/src/unix/bsd/netbsd/process.rs
+++ b/src/unix/bsd/netbsd/process.rs
@@ -3,6 +3,7 @@
use crate::{DiskUsage, Gid, Pid, Process, ProcessRefreshKind, ProcessStatus, Uid};
use std::ffi::OsString;
+use std::fs... | 2 | 17 | 11 |
05c8a6868e7f986fa00fb6b3a1046364e93ea189 | Guillaume Gomez | 2025-12-04T22:27:31 | Ignore one check in CI for netbsd | diff --git a/tests/disk.rs b/tests/disk.rs
index a69e6bf..aeede0b 100644
--- a/tests/disk.rs
+++ b/tests/disk.rs
@@ -79,20 +79,24 @@ fn test_disk_refresh_kind() {
}
if refreshes.storage() {
- // These would ideally assert that *all* are refreshed, but we settle for a weaker
- ... | 1 | 28 | 20 |
6bb323232d4adc2029fef7d08eb52ba91a00233a | Guillaume Gomez | 2025-12-04T17:16:13 | Merge common parts of NetBSD and FreeBSD | diff --git a/src/unix/bsd/common.rs b/src/unix/bsd/common.rs
new file mode 100644
index 0000000..15238b1
--- /dev/null
+++ b/src/unix/bsd/common.rs
@@ -0,0 +1,35 @@
+// Take a look at the license at the top of the repository in the LICENSE file.
+
+#[cfg(feature = "system")]
+#[inline]
+pub unsafe fn init_mib(name: &[u... | 15 | 375 | 592 |
444cd777839622f4b042f55c3262f4991b828841 | Guillaume Gomez | 2025-11-30T16:14:05 | Be more laxist on `/proc/cpuinfo` parsing | diff --git a/src/unix/linux/cpu.rs b/src/unix/linux/cpu.rs
index ca7d213..96db68b 100644
--- a/src/unix/linux/cpu.rs
+++ b/src/unix/linux/cpu.rs
@@ -790,7 +790,9 @@ fn get_vendor_id_and_brand_inner(data: &str) -> HashMap<usize, (String, String)>
#[inline]
fn is_new_processor(line: &str) -> bool {
- l... | 1 | 45 | 1 |
ff9709eb9ff450dab8564b1d9c72bf864677e596 | Guillaume Gomez | 2025-11-25T19:20:20 | Fix `serde` serialization of `Disk::file_system` | diff --git a/src/serde.rs b/src/serde.rs
index 8bc6cfa..9e86bb1 100644
--- a/src/serde.rs
+++ b/src/serde.rs
@@ -22,7 +22,7 @@ impl Serialize for crate::Disk {
if let Some(s) = self.name().to_str() {
state.serialize_field("name", s)?;
}
- state.serialize_field("file_system", &self.... | 7 | 151 | 6 |
5d2310a2a69af8829ea28aa77f7c7ce422833316 | Guillaume Gomez | 2025-11-25T18:58:07 | Fix `serde` serialization of `MacAddr` | diff --git a/src/serde.rs b/src/serde.rs
index dfbe25c..8bc6cfa 100644
--- a/src/serde.rs
+++ b/src/serde.rs
@@ -419,7 +419,7 @@ impl Serialize for crate::MacAddr {
where
S: Serializer,
{
- serializer.serialize_newtype_struct("MacAddr", &self.0)
+ serializer.serialize_newtype_struct("Ma... | 1 | 13 | 1 |
2d107e2df4aba020922baa6e1b0f9eb3250454fc | Guillaume Gomez | 2025-11-25T11:36:35 | Remove potential panics from code | diff --git a/src/lib.rs b/src/lib.rs
index 99dbc62..7bb17f5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -167,11 +167,13 @@ pub fn set_open_files_limit(mut _new_limit: usize) -> bool {
// If files are already open, to be sure that the number won't be bigger when those
// files are closed, we su... | 8 | 49 | 31 |
36074d1fb7d69907b899159bdbe2470ca30da429 | Guillaume Gomez | 2025-11-25T11:20:26 | Remove potential panics from NetBSD and FreeBSD | diff --git a/src/unix/bsd/freebsd/disk.rs b/src/unix/bsd/freebsd/disk.rs
index a9f5b83..0057a08 100644
--- a/src/unix/bsd/freebsd/disk.rs
+++ b/src/unix/bsd/freebsd/disk.rs
@@ -354,7 +354,7 @@ pub unsafe fn get_all_list(
| b"linsysfs" => {
sysinfo_debug!(
"Memory files... | 4 | 87 | 53 |
8dd32d18e1778f0918823b781d925fcedc14a68f | Guillaume Gomez | 2025-11-25T10:55:40 | Add NetBSD mib query to get `Product::serial_number` info | diff --git a/src/unix/bsd/netbsd/product.rs b/src/unix/bsd/netbsd/product.rs
index 1d238ca..e3a27c9 100644
--- a/src/unix/bsd/netbsd/product.rs
+++ b/src/unix/bsd/netbsd/product.rs
@@ -17,7 +17,7 @@ impl ProductInner {
pub(crate) fn serial_number() -> Option<String> {
// FIXME
- None
+ get... | 1 | 1 | 1 |
032000a6b80888eab735816aebf84af027393850 | Guillaume Gomez | 2025-11-15T21:12:20 | Add `motherboard` and `product` commands in example | diff --git a/examples/simple.rs b/examples/simple.rs
index dba4363..7e662ab 100644
--- a/examples/simple.rs
+++ b/examples/simple.rs
@@ -6,7 +6,10 @@
use std::io::{self, BufRead, Write};
use std::str::FromStr;
-use sysinfo::{Components, Disks, Groups, Networks, Pid, SUPPORTED_SIGNALS, System, Users};
+use sysinfo::... | 1 | 13 | 1 |
b0ae22bfb2064d74e9561fb71890ad68763c7aff | Maximilian Münchow | 2025-11-07T18:38:12 | raised windows dependency to 0.62
* raised windows dependency to 0.62
* fixed missing from_thread changes
---------
Co-authored-by: Maximilian Münchow <maximilian.muenchow@4players.de> | diff --git a/Cargo.toml b/Cargo.toml
index 4838418..4d1a0b8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -122,7 +122,7 @@ serde = { version = "^1.0.190", optional = true, features = ["derive"] }
ntapi = { version = "0.4", optional = true }
# Support a range of versions in order to avoid duplication of this crate. Make... | 2 | 7 | 7 |
b69836eeca3562103018683c5c7d349865204e01 | Paul Nguyen | 2025-10-07T18:05:40 | fix unsoundness | diff --git a/src/windows/ffi.rs b/src/windows/ffi.rs
index 22685cb..3bcb4d8 100644
--- a/src/windows/ffi.rs
+++ b/src/windows/ffi.rs
@@ -1,6 +1,10 @@
// Take a look at the license at the top of the repository in the LICENSE file.
-pub trait SMBIOSType {
+/// # Safety
+///
+/// Only implement for SMBIOS struct types ... | 2 | 27 | 5 |
6273795a6e328fe6c33f4c46efb0c76e37cb99ac | Guillaume Gomez | 2025-10-07T19:18:35 | Update `objc2-core-foundation` and `objc2-io-kit` | diff --git a/Cargo.toml b/Cargo.toml
index 621904c..4838418 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -128,10 +128,10 @@ windows = { version = ">=0.59, <0.62", optional = true }
libc = "^0.2.173"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
-objc2-core-foundation = { version = "0.3.1",... | 6 | 14 | 14 |
3ac7887a0b9b3357918fcf56dc91e183687a636b | Guillaume Gomez | 2025-10-02T09:54:31 | Update version to `0.37.2` | diff --git a/Cargo.toml b/Cargo.toml
index e5707f7..621904c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.37.1"
+version = "0.37.2"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
1c1978513ac18338890930831cb26e17477927f2 | Guillaume Gomez | 2025-10-02T09:52:18 | Improve documentation of `System::refresh_cpu_specifics` | diff --git a/src/common/system.rs b/src/common/system.rs
index f949134..2573fcd 100644
--- a/src/common/system.rs
+++ b/src/common/system.rs
@@ -255,7 +255,8 @@ impl System {
self.refresh_cpu_specifics(CpuRefreshKind::everything())
}
- /// Refreshes CPUs specific information.
+ /// Refreshes CPUs ... | 1 | 2 | 1 |
cd837f7ed1e2fc4272d712c88e7112d95ab507a3 | Guillaume Gomez | 2025-10-01T14:54:35 | Linux: Correctly handle removed exe link paths | diff --git a/src/unix/linux/process.rs b/src/unix/linux/process.rs
index a28fe15..15935d4 100644
--- a/src/unix/linux/process.rs
+++ b/src/unix/linux/process.rs
@@ -481,6 +481,20 @@ fn update_proc_info(
// Do not use cmd[0] because it is not the same thing.
// See https://github.com/GuillaumeGomez/sys... | 1 | 14 | 0 |
b23eb6a9364476214d747d3c2a61219d08c9f654 | Guillaume Gomez | 2025-09-28T21:06:51 | Correctly get `uptime` information on Android | diff --git a/src/unix/linux/system.rs b/src/unix/linux/system.rs
index e6dff83..4fd661f 100644
--- a/src/unix/linux/system.rs
+++ b/src/unix/linux/system.rs
@@ -15,6 +15,7 @@ use std::collections::HashMap;
use std::ffi::CStr;
use std::fs::File;
use std::io::Read;
+use std::mem::MaybeUninit;
use std::path::Path;
us... | 1 | 21 | 8 |
58db6fb63c2fa0bb7d281be4e4cb90b71bb4acb8 | Guillaume Gomez | 2025-09-26T16:09:59 | Improve documentation of `System::refresh_cpu_all` | diff --git a/src/common/system.rs b/src/common/system.rs
index 5e2eca7..f949134 100644
--- a/src/common/system.rs
+++ b/src/common/system.rs
@@ -230,7 +230,8 @@ impl System {
self.inner.refresh_cpu_list(refresh_kind);
}
- /// Refreshes all information related to CPUs information.
+ /// Refreshes a... | 1 | 2 | 1 |
2c320f459f7850b685201722e35b9b4f7632b446 | Guillaume Gomez | 2025-09-26T15:47:25 | Update crate version to `0.37.1` | diff --git a/Cargo.toml b/Cargo.toml
index 0e3503c..e5707f7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.37.0"
+version = "0.37.1"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
3c90fe6511280fadba8e2ae572fe4cae38d618e5 | Kan-Ru Chen | 2025-08-31T15:44:00 | On Windows handle invalid UTF-8 from SMBIOS | diff --git a/src/windows/utils.rs b/src/windows/utils.rs
index f451b57..4c90eab 100644
--- a/src/windows/utils.rs
+++ b/src/windows/utils.rs
@@ -136,10 +136,10 @@ cfg_if! {
let info: T = unsafe { std::ptr::read_unaligned(table[i..].as_ptr() as *const _) };
// As said in the SMBIOS 3 standard... | 1 | 2 | 2 |
4541c3604768371ff7b161d6ba46a35689f44333 | Guillaume Gomez | 2025-08-21T13:01:06 | Fix doc typo | diff --git a/src/common/system.rs b/src/common/system.rs
index f41b640..5e2eca7 100644
--- a/src/common/system.rs
+++ b/src/common/system.rs
@@ -293,7 +293,7 @@ impl System {
///
/// ⚠️ On Linux, if you dont need the tasks of each process, you can use
/// `refresh_processes_specifics` with `ProcessRefres... | 1 | 1 | 1 |
40879099270e3b8a77ff59cf210e55f3c8268138 | Guillaume Gomez | 2025-08-21T12:59:46 | Fix invalid serde serialization for processes name | diff --git a/src/serde.rs b/src/serde.rs
index 836b237..22fc17b 100644
--- a/src/serde.rs
+++ b/src/serde.rs
@@ -81,7 +81,7 @@ impl Serialize for crate::Process {
// `19` corresponds to the (maximum) number of fields.
let mut state = serializer.serialize_struct("Process", 19)?;
- state.serial... | 1 | 32 | 1 |
3c6ff37db5ab7620a0b43d6f8e599654d758ab60 | Guillaume Gomez | 2025-08-21T12:59:31 | Fix conversion errors | diff --git a/src/unix/users.rs b/src/unix/users.rs
index 8630e9b..8b2b530 100644
--- a/src/unix/users.rs
+++ b/src/unix/users.rs
@@ -72,7 +72,7 @@ pub(crate) unsafe fn get_group_name(
)) != 0
{
// If there was not enough memory, we give it more.
- if last_errno ... | 2 | 3 | 3 |
e595a80fd3b6bfec904d6f5d32a97c4ec5bb00f7 | Guillaume Gomez | 2025-08-20T20:12:42 | Remove duplicated `tempfile` dev dependency | diff --git a/Cargo.toml b/Cargo.toml
index c6b064f..0e3503c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -136,9 +136,6 @@ objc2-io-kit = { version = "0.3.1", optional = true, default-features = false, f
"libc",
] }
-[target.'cfg(all(target_os = "linux", not(target_os = "android")))'.dev-dependencies]
-tempfile =... | 1 | 0 | 3 |
65797c1abbd9c04560e1d0be152559784ec2f8ff | Guillaume Gomez | 2025-08-10T19:24:06 | Update crate version to `0.37.0` | diff --git a/Cargo.toml b/Cargo.toml
index 04364ee..c6b064f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.36.1"
+version = "0.37.0"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
5d189e685b4fb4aff5caca97e505f54253609f67 | Guillaume Gomez | 2025-08-07T19:30:15 | Rename `PathHandler::join` into `PathHandler::replace_and_join` to make it easier to know it is not a Path | diff --git a/src/unix/linux/process.rs b/src/unix/linux/process.rs
index c483299..a28fe15 100644
--- a/src/unix/linux/process.rs
+++ b/src/unix/linux/process.rs
@@ -365,7 +365,7 @@ pub(crate) fn set_time(p: &mut ProcessInner, utime: u64, stime: u64) {
}
pub(crate) fn update_process_disk_activity(p: &mut ProcessInne... | 2 | 14 | 13 |
833b3ba63e0cbdac3e5953ef207632304a8297ae | Agarof | 2025-08-07T14:41:44 | Improve process refresh on Linux (#1566)
Improve process refresh on Linux | diff --git a/src/unix/linux/process.rs b/src/unix/linux/process.rs
index 8fc3229..c483299 100644
--- a/src/unix/linux/process.rs
+++ b/src/unix/linux/process.rs
@@ -4,7 +4,7 @@ use std::cell::UnsafeCell;
use std::collections::{HashMap, HashSet};
use std::ffi::{OsStr, OsString};
use std::fmt;
-use std::fs::{self, Dir... | 1 | 97 | 106 |
5fa1b5034acb11e26e96eb1f4b66682e22a811e1 | Guillaume Gomez | 2025-08-07T10:04:57 | Fix new clippy lints | diff --git a/src/common/system.rs b/src/common/system.rs
index f45036c..f41b640 100644
--- a/src/common/system.rs
+++ b/src/common/system.rs
@@ -359,10 +359,10 @@ impl System {
}
}
fn update(pid: &Pid, processes: &mut HashMap<Pid, Process>) {
- if let Some(proc) = processes.get... | 19 | 136 | 144 |
920520d27b843bb9743fa037af57dde340b2f13c | Guillaume Clement | 2025-08-05T13:40:07 | Add some documentation about how the identifiers are computed for each platform | diff --git a/src/common/component.rs b/src/common/component.rs
index e6b6c0e..7db3058 100644
--- a/src/common/component.rs
+++ b/src/common/component.rs
@@ -274,6 +274,23 @@ impl Component {
/// Note: The identifier should be reasonably unique but is provided by the kernel.
/// It could change if the hardware... | 1 | 17 | 0 |
efe41c94174a93edd7ba9ad24cd372bcaabd4248 | Guillaume Clement | 2025-07-29T19:42:05 | Use the serial as an ID for the arm macos component | diff --git a/src/unix/apple/macos/component/arm.rs b/src/unix/apple/macos/component/arm.rs
index f107ed3..502de56 100644
--- a/src/unix/apple/macos/component/arm.rs
+++ b/src/unix/apple/macos/component/arm.rs
@@ -11,6 +11,7 @@ use crate::sys::inner::ffi::{
HID_DEVICE_PROPERTY_PRODUCT, IOHIDEventFieldBase, IOHIDEve... | 3 | 16 | 3 |
070d8b63512da50c829de4fd392487f6616f1ea5 | Guillaume Clement | 2025-07-30T21:08:00 | On Windows implement id() by returning the label
This is done this way because at the moment, on Windows, there can only
be one component with the label "Computer". | diff --git a/src/windows/component.rs b/src/windows/component.rs
index 49366ed..76c576e 100644
--- a/src/windows/component.rs
+++ b/src/windows/component.rs
@@ -66,7 +66,7 @@ impl ComponentInner {
}
pub(crate) fn id(&self) -> Option<&str> {
- None
+ Some(&self.label)
}
pub(crate) f... | 1 | 1 | 1 |
a05bc96848c083c89ce29b5116ed7653d3c8c09c | Guillaume Clement | 2025-07-30T20:43:05 | Implement the id for x86 macOS by using the keys sent to the OS
This is done this way because the label is the same for TCXC and TCXc but
the source is different, even though only one of them can be used at a time. | diff --git a/src/unix/apple/macos/component/x86.rs b/src/unix/apple/macos/component/x86.rs
index f36e628..4deb06f 100644
--- a/src/unix/apple/macos/component/x86.rs
+++ b/src/unix/apple/macos/component/x86.rs
@@ -13,15 +13,28 @@ use objc2_io_kit::{
use std::mem;
-const COMPONENTS_TEMPERATURE_IDS: &[(&str, &[i8])] ... | 1 | 32 | 11 |
f2d387206a88774a6831e7d18e4fe680b8bc0a17 | Guillaume Clement | 2025-07-29T16:17:29 | Add a unit test for the FreeBSD component implementation | diff --git a/src/unix/freebsd/component.rs b/src/unix/freebsd/component.rs
index 4b6b611..efdb965 100644
--- a/src/unix/freebsd/component.rs
+++ b/src/unix/freebsd/component.rs
@@ -5,6 +5,7 @@ use crate::Component;
pub(crate) struct ComponentInner {
id: Vec<u8>,
+ component_id: String,
label: String,
... | 1 | 38 | 8 |
a0af6fe509a4a010fa3f5affa37dbe212f70ffe7 | Guillaume Clement | 2025-07-29T16:03:08 | Add a unit test for the Linux /sys/class/thermal parsing | diff --git a/src/unix/linux/component.rs b/src/unix/linux/component.rs
index 43f395e..9c5fa5b 100644
--- a/src/unix/linux/component.rs
+++ b/src/unix/linux/component.rs
@@ -610,4 +610,45 @@ mod tests {
assert_eq!(components[1].critical(), Some(0.2));
assert_eq!(components[1].id(), Some("hwmon0_2"));
... | 1 | 41 | 0 |
2704f34111efe3cd46ed2db21ded0bf1e8ad0253 | Guillaume Clement | 2025-07-29T15:30:27 | Handle the unlikely case where the ID cannot be parsed in Linux | diff --git a/src/unix/linux/component.rs b/src/unix/linux/component.rs
index 53407d3..43f395e 100644
--- a/src/unix/linux/component.rs
+++ b/src/unix/linux/component.rs
@@ -7,6 +7,7 @@
use crate::Component;
use std::collections::HashMap;
+use std::ffi::OsStr;
use std::fs::{File, read_dir};
use std::io::Read;
use... | 1 | 9 | 16 |
1d1c7703da4cc1ea3f136d5760b16fe3818f2834 | Guillaume Clement | 2025-07-29T13:59:48 | Adding identifiers for the components | diff --git a/src/common/component.rs b/src/common/component.rs
index a27b2ca..e6b6c0e 100644
--- a/src/common/component.rs
+++ b/src/common/component.rs
@@ -269,6 +269,25 @@ impl Component {
self.inner.label()
}
+ /// Returns the identifier of the component.
+ ///
+ /// Note: The identifier sho... | 8 | 72 | 0 |
03f856198e0659337b73e0528058a28eda66f0a6 | Guillaume Gomez | 2025-08-05T13:17:18 | Improve code to retrieve components on linux | diff --git a/src/unix/linux/component.rs b/src/unix/linux/component.rs
index fcf5890..1db4155 100644
--- a/src/unix/linux/component.rs
+++ b/src/unix/linux/component.rs
@@ -373,7 +373,7 @@ impl ComponentInner {
}
}
-fn read_temp_dir<F: FnMut(PathBuf)>(path: &str, starts_with: &str, mut f: F) {
+fn read_temp_dir... | 1 | 9 | 31 |
20d3d295f95e38456f9d3baacdecf73f2daf4c34 | Guillaume Gomez | 2025-07-18T14:41:33 | Update crate version to `0.36.1` | diff --git a/Cargo.toml b/Cargo.toml
index d3bb374..904ba71 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.36.0"
+version = "0.36.1"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
44e64c54fbbf332b90e3a42aafc690c7e0bf4fbb | Guillaume Gomez | 2025-07-17T22:32:34 | Improve processors CPU usage computation on linux | diff --git a/src/unix/linux/cpu.rs b/src/unix/linux/cpu.rs
index cd722f7..e329420 100644
--- a/src/unix/linux/cpu.rs
+++ b/src/unix/linux/cpu.rs
@@ -239,24 +239,34 @@ impl CpuValues {
self.guest_nice = guest_nice;
}
- /// Returns work time.
+ #[inline]
pub fn work_time(&self) -> u64 {
- ... | 1 | 43 | 14 |
d571f4fbd21e84879da202033fb80073e799faeb | Guillaume Gomez | 2025-07-10T16:13:25 | Update crate version to `0.36.0` | diff --git a/Cargo.toml b/Cargo.toml
index 86fbe4a..d3bb374 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.35.2"
+version = "0.36.0"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
92cb5ed86edff84337485600a9d7c6a969fc7366 | Guillaume Gomez | 2025-07-10T14:25:42 | Add test to check `Send` and `Sync` traits are implemented on all types | diff --git a/src/lib.rs b/src/lib.rs
index c97e5fd..8af5c7b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -350,4 +350,57 @@ mod test {
assert!(!IS_SUPPORTED_SYSTEM);
}
}
+
+ // If it doesn't compile, it means types don't implement expected traits.
+ #[cfg(any(
+ feature = "system",... | 1 | 53 | 0 |
54f2d92aa1ac4ca9f2117ac0ca61a5e023f19d84 | Guillaume Gomez | 2025-07-10T14:25:08 | Make macOS ARM `Components` implement `Send` and `Sync` | diff --git a/src/unix/apple/macos/component/arm.rs b/src/unix/apple/macos/component/arm.rs
index 7742a53..b6f04e6 100644
--- a/src/unix/apple/macos/component/arm.rs
+++ b/src/unix/apple/macos/component/arm.rs
@@ -19,6 +19,11 @@ pub(crate) struct ComponentsInner {
client: Option<CFRetained<IOHIDEventSystemClient>>,... | 1 | 7 | 0 |
8a05f69b887f4e33b2bfc675ea5d7f302760e77b | Guillaume Gomez | 2025-07-10T14:00:10 | Add `Motherboard` to the `compile_fail_import` check | diff --git a/src/lib.rs b/src/lib.rs
index 46ad1f6..c97e5fd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -203,6 +203,7 @@ use sysinfo::", stringify!($imports), r";
KillError,
LoadAvg,
MemoryRefreshKind,
+ Motherboard,
Pid,
Process,
ProcessesToUpdate, | 1 | 1 | 0 |
f8b4a78240f0ab5a24d1d5205c34ad121e362325 | Guillaume Gomez | 2025-07-10T12:11:38 | Fix MINIMUM_CPU_UPDATE_INTERVAL comparison when updating CPU usage | diff --git a/src/unix/apple/cpu.rs b/src/unix/apple/cpu.rs
index ff0e169..92edd4f 100644
--- a/src/unix/apple/cpu.rs
+++ b/src/unix/apple/cpu.rs
@@ -32,7 +32,7 @@ impl CpusWrapper {
pub(crate) fn refresh(&mut self, refresh_kind: CpuRefreshKind, port: mach_port_t) {
let need_cpu_usage_update = self
... | 7 | 36 | 13 |
28c926d0bdab65ae2a73f6677534051cad2c806f | Guillaume Gomez | 2025-07-09T23:20:38 | Extract `System` motherboard related feature into new `Motherboard` type | diff --git a/src/c_interface.rs b/src/c_interface.rs
index 1ffdf73..9848c39 100644
--- a/src/c_interface.rs
+++ b/src/c_interface.rs
@@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.
-use crate::{Disks, Networks, Pid, Process, ProcessesToUpdate, System};
+use crate::{Dis... | 22 | 550 | 378 |
c5f6e7b9ae8fd834e5d073a804d260e8978008e8 | Guillaume Gomez | 2025-06-16T21:20:59 | Remove items already defined in libc | diff --git a/src/unix/freebsd/ffi.rs b/src/unix/freebsd/ffi.rs
index 7ed8307..230d8d6 100644
--- a/src/unix/freebsd/ffi.rs
+++ b/src/unix/freebsd/ffi.rs
@@ -20,23 +20,11 @@ use libc::{c_int, c_void};
pub(crate) const DEVSTAT_READ: usize = 0x01;
pub(crate) const DEVSTAT_WRITE: usize = 0x02;
-// definition come from ... | 2 | 2 | 15 |
560e24e0405d1369e2045bdf1708b4d851114d33 | Guillaume Gomez | 2025-06-16T21:20:30 | Update libc to version to `0.2.173` | diff --git a/Cargo.toml b/Cargo.toml
index bbfcffe..86fbe4a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -125,7 +125,7 @@ ntapi = { version = "0.4", optional = true }
windows = { version = ">=0.59, <0.62", optional = true }
[target.'cfg(not(any(target_os = "unknown", target_arch = "wasm32")))'.dependencies]
-libc = ... | 1 | 1 | 1 |
6a5520459e3dc327637d0c55ef8d59bbd4e407ec | 8de2fdb0 | 2025-06-13T12:11:36 | fix: always format linux component labels (#1544)
Always format linux component labels | diff --git a/src/common/component.rs b/src/common/component.rs
index ba8de26..a27b2ca 100644
--- a/src/common/component.rs
+++ b/src/common/component.rs
@@ -252,8 +252,8 @@ impl Component {
///
/// | name | label | device_model | id_sensor | Computed label by `sysinfo` |
/// |---------|--------|---------... | 2 | 176 | 13 |
c40439e16ab4a53740c839a4b43a495d959d8f38 | sisungo | 2025-06-12T14:28:30 | Use `libc` To Get Passwd/Group on All Unixes (#1543)
Use `libc` To Get Passwd/Group on All Unixes | diff --git a/src/unix/apple/groups.rs b/src/unix/apple/groups.rs
deleted file mode 100644
index 756af38..0000000
--- a/src/unix/apple/groups.rs
+++ /dev/null
@@ -1,41 +0,0 @@
-// Take a look at the license at the top of the repository in the LICENSE file.
-
-use crate::{Gid, Group, GroupInner};
-
-use libc::{endgrent, ... | 5 | 85 | 166 |
f18a36643827729300dc786ce43c14648aa736c3 | Guillaume Gomez | 2025-06-11T18:12:16 | Fix new clippy lint | diff --git a/src/unix/freebsd/disk.rs b/src/unix/freebsd/disk.rs
index 40f1100..26fe148 100644
--- a/src/unix/freebsd/disk.rs
+++ b/src/unix/freebsd/disk.rs
@@ -491,7 +491,7 @@ impl GeomSnapshot {
}
}
- fn iter(&mut self) -> GeomSnapshotIter {
+ fn iter(&mut self) -> GeomSnapshotIter<'_> {
... | 1 | 1 | 1 |
8f2bf22c1d476562d2baeeda32e489f0a0b12a56 | Guillaume Gomez | 2025-06-11T16:09:24 | Add some explanations about how processes retrieval work on linux and remove invalid FIXME comment | diff --git a/src/unix/linux/process.rs b/src/unix/linux/process.rs
index 4d20cca..be1a2e3 100644
--- a/src/unix/linux/process.rs
+++ b/src/unix/linux/process.rs
@@ -362,7 +362,6 @@ pub(crate) fn set_time(p: &mut ProcessInner, utime: u64, stime: u64) {
p.old_stime = p.stime;
p.utime = utime;
p.stime = sti... | 1 | 10 | 3 |
2959584de936a6cc9a778e3c9258333693871a02 | Guillaume Gomez | 2025-06-03T19:54:31 | Update crate version to 0.35.2 | diff --git a/Cargo.toml b/Cargo.toml
index 06745da..bbfcffe 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.35.1"
+version = "0.35.2"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
881c3c01d8284364830c874629b1abab1d7a49c0 | Guillaume Gomez | 2025-05-27T21:03:00 | Add regression test for `Process::wait` | diff --git a/tests/process.rs b/tests/process.rs
index 7482116..a21413e 100644
--- a/tests/process.rs
+++ b/tests/process.rs
@@ -1148,3 +1148,31 @@ fn open_files() {
.open_files_limit()
.is_some_and(|open_files| open_files > 0));
}
+
+#[test]
+fn test_wait() {
+ if !sysinfo::IS_SUPPORTED_SYSTEM ||... | 1 | 28 | 0 |
c2f5d0912c0ff72573d05254dd720f53a4523bb3 | Guillaume Gomez | 2025-05-27T21:02:51 | Update documentation for `Process::wait` method | diff --git a/src/common/system.rs b/src/common/system.rs
index ce5240b..8ea80e6 100644
--- a/src/common/system.rs
+++ b/src/common/system.rs
@@ -1347,8 +1347,18 @@ impl Process {
Ok(self.inner.wait())
}
- /// Wait for process termination and returns its [`ExitStatus`] if it could be retrieved,
- /... | 1 | 12 | 2 |
4ad81e392993aac13123788b60ddd5b0376daef8 | Guillaume Gomez | 2025-05-27T20:41:39 | Add extra security on linux Process::wait to ensure the process we want to wait is actually the one matching the struct | diff --git a/src/unix/linux/process.rs b/src/unix/linux/process.rs
index 6b8d4d1..4d20cca 100644
--- a/src/unix/linux/process.rs
+++ b/src/unix/linux/process.rs
@@ -110,6 +110,7 @@ pub(crate) struct ProcessInner {
old_stime: u64,
start_time_without_boot_time: u64,
start_time: u64,
+ start_time_raw: u6... | 1 | 31 | 6 |
bcc42500d04b2c262247bc91d5d1d2c7e039972c | Guillaume Gomez | 2025-05-27T20:08:37 | Revert "Improve `Process::wait` code on Windows"
This reverts commit 9ddaa42e088f3b1754bf1a4f14806edb8910ea52. | diff --git a/src/windows/process.rs b/src/windows/process.rs
index c4ba85d..faa74c1 100644
--- a/src/windows/process.rs
+++ b/src/windows/process.rs
@@ -31,7 +31,6 @@ use windows::Wdk::System::Threading::{
use windows::Win32::Foundation::{
LocalFree, ERROR_INSUFFICIENT_BUFFER, FILETIME, HANDLE, HLOCAL, HMODULE, M... | 1 | 18 | 9 |
a48c25d4ae357d7797291574088ec0cef3d93d04 | eatradish | 2025-05-16T08:47:42 | refactor: use `cpuinfo_is_key` to check data is key | diff --git a/src/unix/linux/cpu.rs b/src/unix/linux/cpu.rs
index 2862c87..073c9e0 100644
--- a/src/unix/linux/cpu.rs
+++ b/src/unix/linux/cpu.rs
@@ -436,11 +436,11 @@ pub(crate) fn get_cpu_frequency(cpu_core_index: usize) -> u64 {
return 0;
}
let find_cpu_mhz = s.split('\n').find(|line| {
- li... | 1 | 15 | 15 |
2d30e7281a530e0da88e48ad390bee2a63007852 | eatradish | 2025-05-16T06:55:06 | fix(linux/cpu): fix `get_cpu_frequency` on loongarch64 machine
In loongarch64 machine, `/proc/cpuinfo` frequency line starts
with "CPU MHz", not "cpu MHz" | diff --git a/src/unix/linux/cpu.rs b/src/unix/linux/cpu.rs
index 8c7fb4d..2862c87 100644
--- a/src/unix/linux/cpu.rs
+++ b/src/unix/linux/cpu.rs
@@ -437,6 +437,7 @@ pub(crate) fn get_cpu_frequency(cpu_core_index: usize) -> u64 {
}
let find_cpu_mhz = s.split('\n').find(|line| {
line.starts_with("cpu M... | 1 | 1 | 0 |
4a7d116fe2223d9921a7e40403a582d7799668ee | Alex Touchet | 2025-05-14T02:03:15 | Reduce windows version range | diff --git a/Cargo.toml b/Cargo.toml
index e1216ed..06745da 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -122,7 +122,7 @@ serde = { version = "^1.0.190", optional = true, features = ["derive"] }
ntapi = { version = "0.4", optional = true }
# Support a range of versions in order to avoid duplication of this crate. Make... | 1 | 1 | 1 |
393f5cf973935fb9e4848743f2c9f7cb96fb5176 | Guillaume Gomez | 2025-05-11T21:26:55 | Update crate version to `0.35.1` | diff --git a/Cargo.toml b/Cargo.toml
index 19d50e5..e1216ed 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.35.0"
+version = "0.35.1"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processes, CPUs,... | 1 | 1 | 1 |
d47402b7d2475a26f40216e241a9f6c2f78974be | Guillaume Gomez | 2025-05-11T16:35:41 | Fix retrieval of CPU when information is missing on Linux | diff --git a/src/unix/linux/cpu.rs b/src/unix/linux/cpu.rs
index 4e426e2..8c7fb4d 100644
--- a/src/unix/linux/cpu.rs
+++ b/src/unix/linux/cpu.rs
@@ -736,7 +736,10 @@ pub(crate) fn get_vendor_id_and_brand() -> HashMap<usize, (String, String)> {
{
return HashMap::new();
}
+ get_vendor_id_and_brand_i... | 1 | 64 | 1 |
04cd4aa76d986cc586ebb957abe622301fd72376 | Guillaume Gomez | 2025-05-11T16:21:23 | Improve CPU data parsing on linux | diff --git a/src/unix/linux/cpu.rs b/src/unix/linux/cpu.rs
index eb8a4e3..4e426e2 100644
--- a/src/unix/linux/cpu.rs
+++ b/src/unix/linux/cpu.rs
@@ -758,6 +758,12 @@ pub(crate) fn get_vendor_id_and_brand() -> HashMap<usize, (String, String)> {
line.starts_with("processor\t")
}
+ #[inline]
+ fn is_... | 1 | 11 | 5 |
8f98bc1ce9ff24773659bd85f9389641a7327e3b | Guillaume Gomez | 2025-05-11T16:36:57 | Update max `windows` dependency version | diff --git a/Cargo.toml b/Cargo.toml
index 6f66d02..19d50e5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -122,7 +122,7 @@ serde = { version = "^1.0.190", optional = true, features = ["derive"] }
ntapi = { version = "0.4", optional = true }
# Support a range of versions in order to avoid duplication of this crate. Make... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.