blob: 1a5f1abea24ae7cbecb323cf77841dd3551bfca4 [file] [log] [blame]
jobs:
# Check formatting
- job: ${{ parameters.name }}
displayName: Check rustfmt
pool:
vmImage: ubuntu-18.04
steps:
- template: azure-install-rust.yml
parameters:
rust_version: stable
- script: |
rustup component add rustfmt
displayName: Install rustfmt
- script: |
# FIXME: for some reason this doesn't actually check all files.
# So instead we run `rustfmt` directly on each file.
#cargo fmt --all -- --check
find src tests examples -type f -iname "*.rs" | xargs rustfmt --check
displayName: Check formatting