ptools 0.2.4

Utilities for inspecting Linux processes
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "ptools"
version = "0.2.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Utilities for inspecting Linux processes"
homepage = "https://github.com/basil/ptools"
readme = "README.md"
keywords = [
    "linux",
    "process",
    "procfs",
    "debugging",
    "cli",
]
categories = [
    "command-line-utilities",
    "development-tools::debugging",
]
license = "Apache-2.0"
repository = "https://github.com/basil/ptools"

[package.metadata.deb]
maintainer = "Basil Crow"
section = "debug"
copyright = "2026 Basil Crow"
extended-description = "A collection of utilities for inspecting the state of processes, modeled after the tools by the same name which exist on Solaris/illumos."
separate-debug-symbols = true
assets = [
    [
    "target/release/pargs",
    "usr/bin/",
    "755",
],
    [
    "target/release/penv",
    "usr/bin/",
    "755",
],
    [
    "target/release/pfiles",
    "usr/bin/",
    "755",
],
    [
    "target/release/ptree",
    "usr/bin/",
    "755",
],
]

[package.metadata.generate-rpm]
vendor = "Basil Crow"
packager = "Basil Crow"

[[package.metadata.generate-rpm.assets]]
source = "target/release/pargs"
dest = "/usr/bin/pargs"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "target/release/penv"
dest = "/usr/bin/penv"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "target/release/pfiles"
dest = "/usr/bin/pfiles"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "target/release/ptree"
dest = "/usr/bin/ptree"
mode = "755"

[lib]
name = "ptools"
path = "src/lib.rs"

[[bin]]
name = "gen-man-pages"
path = "src/bin/gen-man-pages.rs"

[[bin]]
name = "pargs"
path = "src/bin/pargs.rs"

[[bin]]
name = "penv"
path = "src/bin/penv.rs"

[[bin]]
name = "pfiles"
path = "src/bin/pfiles.rs"

[[bin]]
name = "ptree"
path = "src/bin/ptree.rs"

[[bin]]
name = "ptree_parent_child"
path = "src/bin/ptree_parent_child.rs"

[[example]]
name = "args_env"
path = "examples/args_env.rs"

[[example]]
name = "epoll"
path = "examples/epoll.rs"

[[example]]
name = "netlink"
path = "examples/netlink.rs"

[[example]]
name = "pfiles_matrix"
path = "examples/pfiles_matrix.rs"

[[example]]
name = "pfiles_sockopts_parent"
path = "examples/pfiles_sockopts_parent.rs"

[[test]]
name = "pargs_penv_test"
path = "tests/pargs_penv_test.rs"

[[test]]
name = "pfiles_test"
path = "tests/pfiles_test.rs"

[[test]]
name = "ptree_test"
path = "tests/ptree_test.rs"

[dependencies.clap]
version = "4.5"
features = ["cargo"]

[dependencies.clap_mangen]
version = "0.2.31"

[dependencies.nix]
version = "0.31"
features = [
    "event",
    "fs",
    "process",
    "socket",
]

[profile.release]
lto = true
debug = 2
panic = "abort"