It's Format source code, run lint test, your tests, and generate documentation.
bash
cargo install zuu
Library
bash
cargo init project --lib --vcs git
Binary
bash
cargo init project --bin --vcs git
bash
cd project
wget https://raw.githubusercontent.com/taishingi/zuu/master/zuu.yml
git init
echo -e "#!/bin/bash\n\nzuu" > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
code .
git add .
git commit -m ""
```yml
hooks:
continuous: true # Enable continuous testing
lint: true # Enable lint testing
test: true # Running all tests
format: true # Enable rust-fmt
doc: true # Enable doc creation
continuous:
directory: Encore # The tmp directory
os: generic/arch # The box to use
memory: 4096 # Memory to use
cpus: 4 # Cpus to use
commands: # Commands to run in the virtual machine
- pacman -Syyu --noconfirm base base-devel git rust
- git clone https://github.com/taishingi/zuu
- cd zuu || exit 1
- cargo build
- cargo test
```