#workflow #running #cargo #file #run #command #toml

yanked cargo-workflows

A library for running workflows

0.2.1 Aug 24, 2024
0.2.0 Jun 1, 2023
0.1.0 Jun 1, 2023

#212 in #workflow

MIT license

8KB
161 lines

Cargo workflows

A library for running workflows.

[!WARNING] This is deprecated, use cargo-make instead.

Usage

First, install the crate using cargo install cargo-workflows.

Second, initialize a new workflows.toml file using cargo workflows init.

Third, open the file and you should see:

# "default" is the default workflow
[default]

# Commands to run
[default.commands]
clippy = [ "cargo", "clippy" ]
build = [ "cargo", "build", "--release" ]
run = [ "cargo", "run", "--release" ]

# Environment variables
[default.env]
"Env 1" = "true"
"Env-2" = "42"
"Env_3" = "50"

Dependencies

~1–12MB
~84K SLoC