#process

proclist

Cross-platform library to retrieve OS processes information

4 releases

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

#52 in Operating systems

Download history 41/week @ 2018-10-19 11/week @ 2018-10-26

17 downloads per month

MIT/Apache

15KB
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

~731KB

  • windows winapi 0.3+errhandlingapi+minwindef+ntdef+winbase+tlhelp32+handleapi+winnt
  • errno 0.2
  • libc 0.2