| 1 | image: 'rust:latest' |
| 2 | |
| 3 | default: |
| 4 | before_script: |
| 5 | - rustc --version |
| 6 | - cargo --version |
| 7 | |
| 8 | stages: |
| 9 | - checks |
| 10 | |
| 11 | msrv: |
| 12 | stage: checks |
| 13 | script: |
| 14 | - rustup toolchain install 1.62 |
| 15 | - cargo +1.62 check --quiet --all-features |
| 16 | |
| 17 | fmt: |
| 18 | stage: checks |
| 19 | script: |
| 20 | - cargo fmt --check --quiet |
| 21 | |
| 22 | lint: |
| 23 | stage: checks |
| 24 | script: |
| 25 | - cargo clippy --quiet --profile test -- -D warnings |
| 26 | - cargo clippy --quiet --profile test --features serde -- -D warnings |
| 27 | |
| 28 | test: |
| 29 | stage: checks |
| 30 | script: |
| 31 | - cargo test --quiet |
| 32 | - cargo test --quiet --no-default-features --features all_no_std_features |
| 33 | - cargo test --quiet --no-default-features --features all_no_std_features,serde |
| 34 | - cargo test --quiet --all-features |