static_aabb2d_index 2.1.0

Fast static spatial index data structure for 2D axis aligned bounding boxes
Documentation
name: CI

on: [push, pull_request]

env:
  RUSTDOCFLAGS: -D warnings
  RUSTFLAGS: -D warnings

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    steps:
      - uses: actions/checkout@v7

      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable

      - name: Build
        run: |
          cargo build --workspace --verbose

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

      - name: Build with unsafe optimizations
        run: |
          cargo build --workspace --verbose --features unsafe_optimizations

      - name: Run tests with unsafe optimizations
        run: |
          cargo test --workspace --verbose --features unsafe_optimizations

  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7

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

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

      - name: Clippy lint
        run: |
          cargo clippy --all-targets -- -D warnings

      - name: Check doc
        run: |
          cargo doc --workspace --no-deps