noalloc-vec-rs 0.1.2

A no-allocation vector implementation for environment without memory allocation.
Documentation
name: Continuous Integration - Static Analysis

on:
  push:
    paths:
      - ".github/workflows/static-analysis.yml"
      - "**/Cargo.toml"
      - "**/Cargo.lock"
      - "**/*.rs"
  pull_request:
    paths:
      - ".github/workflows/static-analysis.yml"
      - "**/Cargo.toml"
      - "**/Cargo.lock"
      - "**/*.rs"
  workflow_dispatch:

concurrency:
  group: static-analysis-${{ github.ref_name }}
  cancel-in-progress: true

jobs:
  static-analysis:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        toolchain: [stable, nightly]
    continue-on-error: ${{ matrix.toolchain == 'nightly' }}
    steps:
      - name: Checkout
        uses: actions/checkout@v6.0.2

      - name: Install Rust (${{ matrix.toolchain }})
        uses: dtolnay/rust-toolchain@v1
        with:
          toolchain: ${{ matrix.toolchain }}
          components: "clippy,rustfmt"

      - name: Cache cargo registry + build
        uses: actions/cache@v5.0.2
        with:
          path: |
            ~/.cargo/.crates.toml
            ~/.cargo/.crates2.json
            ~/.cargo/bin
            ~/.cargo/git/db
            ~/.cargo/registry/cache
            ~/.cargo/registry/index
            target
          key: static-analysis-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}

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

      - name: Check linting
        run: cargo clippy --all-targets --all-features -- -D warnings