process_list 0.2.1

Crate for listing the processes open in the OS, usually for retrieving their ID by their name.
Documentation
1
2
3
4
5
6
7
8
9
10
use process_list::for_each_module;
use std::process;
#[test]
fn print_stuff() {
    env_logger::init();
    for_each_module(process::id(), |(address, size), name| {
        println!("{:016X} - {} \t {}", address, size, name.display())
    })
    .unwrap();
}