linuxutils 0.2.0

Multicall binary that runs every linuxutils tool, chosen by argv[0] or a subcommand
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 = "2024"
rust-version = "1.87"
name = "linuxutils"
version = "0.2.0"
authors = ["Patrick Elsen <pelsen@xfbs.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Multicall binary that runs every linuxutils tool, chosen by argv[0] or a subcommand"
homepage = "https://rustutils.com/projects/linuxutils"
readme = "README.md"
keywords = [
    "linux",
    "cli",
    "util-linux",
    "multicall",
]
categories = [
    "command-line-utilities",
    "os::linux-apis",
]
license = "MIT"
repository = "https://gitlab.com/rustutils/linuxutils"
resolver = "2"

[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"
targets = []
all-features = true

[package.metadata.deb]
name = "linuxutils"
maintainer = "Patrick Elsen <pelsen@xfbs.net>"
section = "utils"
priority = "optional"
depends = ""
extended-description = """
A clean-room reimplementation of util-linux in Rust, as a single static
multicall binary. It installs next to util-linux without replacing it.
To use the linuxutils version of a tool, run `linuxutils <tool>`, or add
/usr/lib/linuxutils/bin to PATH and /usr/share/linuxutils/man to
MANPATH.
"""
assets = [
    [
    "target/release/linuxutils",
    "usr/bin/linuxutils",
    "0755",
],
    [
    "target/release/../symlinks/*",
    "usr/lib/linuxutils/bin/",
    "0755",
],
    [
    "target/release/../gen/man/man1/*",
    "usr/share/linuxutils/man/man1/",
    "0644",
],
    [
    "target/release/../gen/man/man8/*",
    "usr/share/linuxutils/man/man8/",
    "0644",
],
    [
    "../README.md",
    "usr/share/doc/linuxutils/README",
    "0644",
],
    [
    "../LICENSE.md",
    "usr/share/doc/linuxutils/LICENSE",
    "0644",
],
    [
    "../CHANGELOG.md",
    "usr/share/doc/linuxutils/CHANGELOG",
    "0644",
],
]

[package.metadata.generate-rpm]
name = "linuxutils"
summary = "Rust reimplementation of util-linux, installed next to it"
auto-req = "no"
post_install_script = """
rm -rf /usr/lib/linuxutils/bin
mkdir -p /usr/lib/linuxutils/bin
for tool in $(/usr/bin/linuxutils --list); do
    ln -s ../../../bin/linuxutils "/usr/lib/linuxutils/bin/$tool"
done
"""
post_uninstall_script = """
if [ "$1" = 0 ]; then
    rm -rf /usr/lib/linuxutils
fi
"""

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

[[package.metadata.generate-rpm.assets]]
source = "target/release/../gen/man/man1/*"
dest = "/usr/share/linuxutils/man/man1/"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "target/release/../gen/man/man8/*"
dest = "/usr/share/linuxutils/man/man8/"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "../README.md"
dest = "/usr/share/doc/linuxutils/README"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "../LICENSE.md"
dest = "/usr/share/doc/linuxutils/LICENSE"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "../CHANGELOG.md"
dest = "/usr/share/doc/linuxutils/CHANGELOG"
mode = "644"
doc = true

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

[[bin]]
name = "linuxutils"
path = "src/main.rs"

[dependencies.clap]
version = "4"
features = [
    "derive",
    "wrap_help",
]

[dependencies.linuxutils-common]
version = "0.2.0"

[dependencies.linuxutils-disk]
version = "0.2.0"

[dependencies.linuxutils-login]
version = "0.2.0"

[dependencies.linuxutils-misc]
version = "0.2.0"

[dependencies.linuxutils-sched]
version = "0.2.0"

[dependencies.linuxutils-system]
version = "0.2.0"

[dependencies.linuxutils-term]
version = "0.2.0"

[dependencies.linuxutils-text]
version = "0.2.0"