callee

Crates.iocallee
lib.rscallee
version0.1.4
sourcesrc
created_at2022-10-06 07:54:25.148018
updated_at2023-07-16 14:00:06.032377
descriptionA library to show information about the calling process.
homepagehttps://gitlab.com/a-kenji/callee
repositoryhttps://gitlab.com/a-kenji/callee
max_upload_size
id681073
size40,402
(a-kenji)

documentation

https://gitlab.com/a-kenji/callee

README

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

Commit count: 28

cargo fmt