2 releases
Uses old Rust 2015
0.9.2 | Oct 21, 2018 |
---|---|
0.9.1 | Oct 15, 2018 |
0.9.0 |
|
0.0.0 |
|
#597 in Operating systems
41 downloads per month
Used in 2 crates
(via fluvio-cluster)
16KB
358 lines
proclist
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:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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