39 releases

0.1.38 Jun 19, 2022
0.1.37 Jun 12, 2022
0.1.32 Apr 20, 2021
0.1.31 Feb 7, 2021
0.1.18 Dec 31, 2020

#335 in Build Utils

MIT license

26KB
538 lines

Rust Application Build Workflow

About

  • A simple task runner like make.

Getting started

cargo install rmake

How to run the first task

rmake

How to run the specified task

rmake {name of task}

Show usage

rmake --help

rmake.toml is as

[env]
MY_ENV_01 = "Hello,"

[variables]
MY_VAR_02 = "World!"

[[tasks]]
description = "anything"
name = "world"
depends_on = ["hello"]
command = [
	"ECHO {{MY_VAR_02}}",
]

[[tasks]]
description = "anything"
name = "hello"
depends_on = []
command = [
	"!MKDIR .tmp", # SAFE with "!"
	"!DEL /S /Q .tmp\\*", # SAFE with "!"
	"ECHO %MY_ENV_01%",
]

Future Plans

  • Build causes NO AFFECTS when no modified files found.

lib.rs:

rmake - A simple task runner like make.

No API documentations here. See https://crates.io/crates/rmake

Dependencies

~1.4–2.3MB
~43K SLoC