Shared utilities for cargo plugins, including logger with subprocess handling, common functions for package detection and repository discovery.
- Logger: Cargo-style progress and status messages with subprocess support
- Subprocess Runner: Run subprocesses with PTY mode, scrolling regions, and ANSI color preservation
- Common Utilities: Package detection, repository discovery, and other shared functionality
Add to your Cargo.toml:
[dependencies]
cargo-plugin-utils = "0.0.22"The repository uses Rhusky to install its tracked .githooks/ when Cargo
builds the root package. The explicit RHUSKY_REPOSITORY_ROOT setting in
.cargo/config.toml confines installation to this checkout; builds performed
while this crate is a dependency do not alter a consumer's Git hooks.
Copyright © 2026 DataRoad Inc, Delaware, USA, trading as Legra.
Licensed under either the MIT license or the Apache License, Version 2.0, at your option.