| Crates.io | proc_pidinfo |
| lib.rs | proc_pidinfo |
| version | 0.1.4 |
| created_at | 2025-01-14 21:30:29.750013+00 |
| updated_at | 2025-06-03 18:09:36.461058+00 |
| description | A library for accessing process information using proc_pidinfo on macOS |
| homepage | |
| repository | https://github.com/mmastrac/proc_pidinfo |
| max_upload_size | |
| id | 1516706 |
| size | 26,182 |
A Rust library for accessing the proc_pidinfo, proc_pidfdinfo, and proc_pidfileportinfo system calls safely on macOS.
Add this to your Cargo.toml:
[dependencies]
proc_pidinfo = "0.1"
Then, you can use the proc_* functions to get information about a process (including task info, file descriptors, etc).
use proc_pidinfo::*;
for fd in proc_pidinfo_list_self::<ProcFDInfo>().unwrap() {
println!("{:?}", fd);
}