rust-shell-script/rust_cmd_lib
Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way observed · 2026-08-28
Health v2 · maintenance only
62/100
- Activity 87
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2540
- days_rel: n/a
- days_push: 78
- n_releases_24m: 0
Adoption not part of the score
1155 stars · 41 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
cmd_lib is a Rust library providing macros and utilities for running external commands with shell-like piping, redirection, and error handling, without spawning a shell. It lets developers write shell-script-style tasks as safe, maintainable Rust code.
Use cases
- run external commands with pipes in rust
- replace bash scripts with rust
- pipe command output between processes in rust
- redirect stdin stdout in rust without std::process boilerplate
- write shell-like automation tasks in rust
- run command groups with set -euo pipefail semantics
When to choose
- you need piping or redirection between external commands in Rust
- you want to migrate unmaintainable shell scripts to Rust
- you want shell ergonomics with Rust type safety and error handling
When to avoid
- you only need to spawn a single process and collect output - std::process::Command suffices
- you need full POSIX shell features like variable expansion of complex expressions or job control
- your task is pure shell and will never grow beyond a few lines
Facets
library · maturity active
developer-tools cli concurrency error-handling developer-tools rust windows cross-platform shell-scripting process-piping macros bash-replacement command-execution command-line automation linux macos
10 sources
- readme: https://github.com/rust-shell-script/rust_cmd_lib · fetched 2026-08-28 · 9ead79d8919c
- homepage: https://docs.rs/cmd_lib/ · fetched 2026-08-29 · 7213b8270165
- site_page: https://docs.rs/ · fetched 2026-08-29 · 91f79b08d1b4
- site_page: https://docs.rs/crate/cmd_lib/latest · fetched 2026-08-29 · eeb485dd7bde
- site_page: https://docs.rs/crate/cmd_lib/latest/features · fetched 2026-08-29 · decb622752e4
- site_page: https://docs.rs/about · fetched 2026-08-29 · 29ab7986fbf5
- site_page: https://docs.rs/about/badges · fetched 2026-08-29 · 6588cac258af
- site_page: https://docs.rs/about/builds · fetched 2026-08-29 · 811231ca4680
- site_page: https://docs.rs/about/metadata · fetched 2026-08-29 · 0dcdccb2b2b2
- site_page: https://docs.rs/about/redirections · fetched 2026-08-29 · 1b1efd93105f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rust-shell-script/rust_cmd_lib | main | 62 |
For agents
markdown · JSON · MCP: product_card(name="rust-shell-script/rust_cmd_lib")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem