language: rust
before_script:
  - rustup component add rustfmt
  - rustup component add clippy
rust:
  - stable
  - beta
  - nightly
matrix:
  allow_failures:
    - rust: nightly
cache: cargo
script:
  - cargo build
  - cargo test
  - cargo fmt -- --check
  - cargo clippy
