tarzan 0.1.2

Random-access, seekable .tar.zst archives with an embedded table-of-contents index
Documentation
name: CI

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  check:
    name: fmt, clippy & test
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v6

      - name: Verify THIRD-PARTY-LICENSES retains the libzstd entry
        run: |
          if ! grep -q '^- package_name: libzstd$' THIRD-PARTY-LICENSES \
             || ! grep -q 'Copyright (c) Meta Platforms' THIRD-PARTY-LICENSES; then
            echo "::error::THIRD-PARTY-LICENSES is missing the hand-maintained libzstd entry — re-add it after regenerating (see CONTRIBUTING.md)."
            exit 1
          fi

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy

      - name: Check formatting
        run: cargo fmt --all --check

      - name: Clippy (warnings denied)
        run: cargo clippy --all-targets -- -D warnings

      - name: Test
        run: cargo test