numeris 0.5.12

Pure-Rust numerical algorithms library — high performance with SIMD support while also supporting no-std for embedded and WASM targets.
Documentation
name: CI

on:
  push:
    branches: [main]
  pull_request:

env:
  CARGO_TERM_COLOR: always

jobs:
  fmt:
    name: rustfmt
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt
      - run: cargo fmt --check

  clippy:
    name: clippy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy
      - uses: Swatinem/rust-cache@v2
      # Broadest config plus the no_std baseline (some lints, e.g. dead_code,
      # are feature-specific).
      - run: cargo clippy --all-features --tests -- -D warnings
      - run: cargo clippy --no-default-features -- -D warnings

  # Build + test across feature combinations on both SIMD architectures
  # (ubuntu = x86_64 SSE2/AVX, macos = aarch64 NEON). The combos are the ones
  # that can break independently; `all` on both runners exercises the SIMD paths.
  test:
    name: test / ${{ matrix.os }} / ${{ matrix.features.name }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest]
        features:
          - { name: default, flags: "" }
          - { name: all, flags: "--features all" }
          - { name: optim, flags: "--no-default-features --features std,optim" }
          - { name: imageproc-rayon, flags: "--no-default-features --features std,imageproc,rayon" }
          - { name: optim-rayon, flags: "--no-default-features --features std,optim,rayon" }
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
      - run: cargo test ${{ matrix.features.flags }}

  # Verify the crate truly builds for a bare-metal no_std target (catches
  # accidental `std` usage that a std host would not). Build-only: the default
  # test harness needs `std`.
  no-std:
    name: no_std (thumbv7em-none-eabi)
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          targets: thumbv7em-none-eabi
      - uses: Swatinem/rust-cache@v2
      - run: cargo build --no-default-features --target thumbv7em-none-eabi

  # Guard the declared MSRV (1.80 — the floor required by `[T]::as_flattened`
  # in core matrix code, and by rayon). Build everything on the floor toolchain.
  msrv:
    name: MSRV 1.80
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@1.80
      - uses: Swatinem/rust-cache@v2
      - run: cargo build --all-features