Show the crate…
5 releases
0.1.4 | Jul 16, 2023 |
---|---|
0.1.3 | Jun 2, 2023 |
0.1.2 | May 25, 2023 |
0.1.1 | May 20, 2023 |
0.1.0 | Oct 6, 2022 |
#9 in #comm
Used in 2 crates
14KB
140 lines
callee
Description
The callee
library provides a simple way to retrieve information about the calling process in Rust.
Features:
- Retrieve the command line arguments of the calling process.
- Retrieve the binary name of the calling process.
- Access process information such as the comm attribute.
Usage:
callee = "0.1.0"
or use cargo add
:
cargo add callee
Example:
use callee::Callee;
let callee = Callee::init().unwrap();
println!("Comm: {}", callee.comm());
println!("Info: {}", callee.info());
Limitations
The library is currently tested on Linux only, and its compatibility with Darwin or Windows systems is not guaranteed. Contributions to make it cross-platform are welcome.
If you have different needs or find improvements, I am open to contributions. Please see the contributing section for more details.
Changes
Contributing
License
MIT
Dependencies
~0.4–1MB
~22K SLoC