#process #process-information #proc #calling #comm #attributes #line

callee

A library to show information about the calling process

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

MIT license

14KB
140 lines

callee

Built with Nix Crates Documentation

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

Changelog

Contributing

How to contribute.

License

MIT

Dependencies

~0.4–1MB
~22K SLoC