5 unstable releases

new 0.2.0 Jan 26, 2025
0.1.2 Jan 26, 2025
0.1.1 Jan 26, 2025
0.1.0 Jan 26, 2025
0.0.1-rc.1 Jan 25, 2025

#127 in Concurrency

Download history 313/week @ 2025-01-22

313 downloads per month

MIT license

20KB
494 lines

unirun

Rust Crates.io Version

Universal project runner. Handles concurrent and dependent tasks

Installation

cargo install unirun

Usage

Create a uni.toml file in your working directory

default = "dev"

[jobs.db]
name = "Start PostgreSQL podman container"

[[jobs.db.steps]]
run = "podman run --rm --name postgres-dev --env POSTGRES_PASSWORD=$POSTGRES_PASSWORD postgres:17-bookworm"
persistent = true

[jobs.dev]
name = "Run API"
needs = ["db"]

[[jobs.dev.steps]]
run = "dotnet run --launch-profile=https"
persistent = true

Then, run a specific job

uni run dev

or the default

uni run

Configuration

The persistent step option will run the command in the background until either another persistent step exits, or the program is stopped with SIGTERM or SIGINT

Dependencies

~7MB
~130K SLoC