ublx 0.2.2

TUI to index once, enrich with metadata, and browse a flat snapshot in a 3-pane layout with multiple modes.
Documentation
name: Build

# Native ublx only (fmt / clippy / test / MSRV). Web WASM is `.github/workflows/ublx-web.yml`.
# Do **not** list Cargo.lock: web-only deps (crates/ublx-web) bump the workspace lockfile and
# would otherwise fire this NetCDF matrix. Native dep intent is root `Cargo.toml`.
# Markdown under matching trees is excluded with `!**/*.md` (GitHub forbids pairing `paths`
# with `paths-ignore` on the same event — use `!` negation instead).
on:
  push:
    branches: [main, master, dev]
    paths:
      - "src/**"
      - "tests/**"
      - "Cargo.toml"
      # Keep CI self-testing when the workflow or Windows dep scripts change.
      - ".github/workflows/ci.yml"
      - ".github/scripts/ci-deps-windows-*"
      - "!**/*.md"
  pull_request:
    branches: [main, master, dev]
    paths:
      - "src/**"
      - "tests/**"
      - "Cargo.toml"
      - ".github/workflows/ci.yml"
      - ".github/scripts/ci-deps-windows-*"
      - "!**/*.md"

jobs:
  test:
    name: Test Suite
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
    steps:
      - uses: actions/checkout@v5

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

      - name: Install system deps (Ubuntu)
        if: matrix.os == 'ubuntu-latest'
        run: |
          sudo apt-get update
          sudo apt-get install -y libnetcdf-dev pkg-config

      - name: Install system deps (macOS)
        if: matrix.os == 'macos-latest'
        run: |
          brew install netcdf

      - name: Install system deps (Windows)
        if: matrix.os == 'windows-latest'
        uses: conda-incubator/setup-miniconda@v3
        with:
          auto-update-conda: true
          activate-environment: ci
          python-version: "3.11"
          channels: conda-forge
          channel-priority: strict

      - name: Conda NetCDF + env (Windows)
        if: matrix.os == 'windows-latest'
        shell: bash -el {0}
        run: source .github/scripts/ci-deps-windows-conda.sh

      - name: Install OpenSSL (Windows)
        if: runner.os == 'Windows'
        run: choco install openssl -y
        shell: pwsh

      - name: Set OPENSSL_* (Windows)
        if: runner.os == 'Windows'
        shell: pwsh
        run: ./.github/scripts/ci-deps-windows-openssl.ps1

      - name: Rust cache
        uses: Swatinem/rust-cache@v2

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

      - name: Run clippy
        run: cargo clippy -- -D warnings

      - name: Run tests
        run: cargo test --verbose

  msrv:
    name: MSRV Check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5

      - name: Install Rust (MSRV)
        uses: dtolnay/rust-toolchain@stable
        with:
          toolchain: 1.95

      - name: Install NetCDF (Ubuntu)
        run: |
          sudo apt-get update
          sudo apt-get install -y libnetcdf-dev pkg-config

      - name: Cache Cargo dependencies
        uses: actions/cache@v5
        with:
          path: |
            ~/.cargo/bin/
            ~/.cargo/registry/index/
            ~/.cargo/registry/cache/
            ~/.cargo/git/db/
            target/
          key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }}

      - name: Check MSRV
        run: cargo check --all-targets