1.0.0 |
|
---|
#19 in #详细
19KB
368 代码行
Rust Make
Rust Make 是一个用 Rust 编写的简单构建系统 目前尚不支持Windows。
示例 Rust Make 文件 rsm.build
YAML
#? YAML
verbose: 'normal'
constants:
- text: Hello, world!
- text-br: Olá, Mundo!
tasks:
- all:
- "exec: echo $(text)"
- "exec: echo $(text-br)"
- test:
- "exec: echo $(text)"
TOML
#? TOML
[constants]
text = "Hello, world!"
text-br = "Olá, Mundo!"
[tasks]
[tasks.main]
run = [
"exec: echo $(text-br)",
"exec: echo $(text)",
"task: test"
]
[tasks.test]
run = [
'exec: echo $(text)'
]
运行
要求
运行 cargo run
或 cargo r --release
安装 cargo install --path .
依赖
~1–11MB
~75K SLoC