servicepoint 0.16.0

A rust library for the CCCB Service Point Display.
Documentation
name: Rust

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

env:
  CARGO_TERM_COLOR: always

  # Make sure CI fails on all warnings, including Clippy lints
  RUSTFLAGS: "-Dwarnings"

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Update repos
        run: sudo apt-get update -qq
      - name: Install rust toolchain
        run: sudo apt-get install -qy cargo rust-clippy
      - name: install lzma
        run: sudo apt-get update && sudo apt-get install -y liblzma-dev

      - name: Run Clippy
        run: cargo clippy --all-features

      - name: no features -- test (without doctest)
        run: cargo test --lib --no-default-features

      - name: default features -- test
        run: cargo test --all
      - name: default features -- examples
        run: cargo build --examples

      - name: all features -- test
        run: cargo test --all --all-features
      - name: all features -- examples
        run: cargo build --examples --all-features