rust-parallel

Run commands in parallel and aggregate their outputs. Async application using rust and tokio.

See examples for example commands and manual for more details.

Similar interface to GNU Parallel or xargs plus useful features: * Run commands from stdin, input files, or ::: arguments * Automatic parallelism to all cpus using, can configure manually. * Transform inputs with regular expression named or numbered capture groups * Prevent output interleaving * Very fast in benchmarks * Shell mode to run bash functions or other shell commands * TUI progress bar using indicatif * Path cache * Command timeouts * Structured debug logging

Listed in Awesome Rust - utilities

Crates.io CI workflow

Contents:

Installation:

Recommended:

  1. Download a pre-built release from Github Releases for Linux or MacOS.
  2. Extract the executable and put somewhere in your $PATH.

For manual installation/update: 1. Install Rust 2. Install the latest version of this app from crates.io: $ cargo install rust-parallel 3. The same cargo install rust-parallel command will also update to the latest version after initial installation.

Documents:

  1. Examples - complete runnable commands to give an idea of overall features.
  2. Manual - more detailed manual on how to use individual features.
  3. Benchmarks
  4. Output Interleaving - output interleaving in rust-parallel compared with other commands.

Tech Stack: