# Set up the Rust toolchain.
language: rust
rust:
- stable
before_script:
- export PATH=$PATH:/home/travis/.cargo/bin
- rustup component add rustfmt-preview
os:
- linux
- osx
- windows
branches:
only:
- master
script:
- cargo build
- cargo fmt -- --check