project_name: rust-axum-example
version: 8
ignore_files:
- .git
- Cargo.lock
- target
cache_files:
- Cargo.lock
- target
variables:
project-helloworld:
value:
type: plain
value: example-hello-world
project-readme:
value:
type: plain
value: example-readme
project-todos:
value:
type: plain
value: example-todos
actions:
- info: cargo-run@0.1.0
requirements:
- type: in_path
executable: cargo
desc: "Install `cargo` via your package manager or with this command: `curl https://sh.rustup.rs -sSf | sh`."
action:
type: observe
cmd: cd examples && cargo run -p {project}
placeholders:
- "{project}"
ignore_fails: true
show_success_output: true
show_cmd: false
only_when_fresh: false
pipelines:
- title: hello
info: rust-axum-example-hello@0.1.0
tags:
- cargo
- axum
actions:
- title: Run `hello-world` example
used: cargo-run@0.1.0
with:
"{project}": project-helloworld
exclusive_exec_tag: hello
- title: readme
info: rust-axum-example-readme@0.1.0
tags:
- cargo
- axum
actions:
- title: Run `readme` example
used: cargo-run@0.1.0
with:
"{project}": project-readme
exclusive_exec_tag: readme
- title: todos
info: rust-axum-example-todos@0.1.0
tags:
- cargo
- axum
actions:
- title: Run `todos` example
used: cargo-run@0.1.0
with:
"{project}": project-todos
exclusive_exec_tag: todos