proclist

Cross-platform library to retrieve OS processes information

2 releases

Uses old Rust 2015

0.9.2 Oct 21, 2018
0.9.1 Oct 15, 2018
0.9.0 Oct 15, 2018
0.0.0 Oct 15, 2018

#597 in Operating systems

41 downloads per month
Used in 2 crates (via fluvio-cluster)

MIT/Apache

16KB
358 lines

proclist

Latest version Documentation License

Cross-platform library to retrieve OS processes information.

Example

extern crate proclist;

fn main() {
    for process_info in proclist::iterate_processes_info().filter_map(|r| r.ok()) {
        println!("[name]: {}, [pid]: {}", process_info.name, process_info.pid);
    }
}

Details

  • On Windows, library uses CreateToolhelp32Snapshot, Process32First, Process32Next
  • On Linux, it uses procfs
  • On OS X, it uses libproc's proc_listpids, proc_pidinfo, proc_name

License

Licensed under either of:

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~240KB