proclist

Crates.ioproclist
lib.rsproclist
version0.9.2
sourcesrc
created_at2018-10-15 09:07:35.722474
updated_at2018-10-21 17:47:31.317708
descriptionCross-platform library to retrieve OS processes information.
homepage
repositoryhttps://github.com/ivxvm/proclist-rs
max_upload_size
id90282
size28,697
(ivxvm)

documentation

https://docs.rs/proclist

README

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.

Commit count: 0

cargo fmt