language: rust
rust:
- stable
cache: cargo
before_script: (cargo install rustfmt || true)
script:
- |
cargo fmt -- --write-mode=diff &&
cargo build