stable-vec 0.4.2

A Vec-like collection which guarantees stable indices and features O(1) element deletion (semantically similar to `Vec<Option<T>>`). Useful for allocations in graphs or similar data structures.
Documentation
name: CI

on:
  pull_request:
  push:
    branches: [ master ]

env:
  CARGO_TERM_COLOR: always
  RUSTFLAGS: --deny warnings

jobs:
  style:
    name: 'Check basic style'
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v6
    - name: Check basic style
      run: ./.github/check-basic-style.sh

  check:
    name: 'Build & test'
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v6
    - name: Build
      run: cargo build
    - name: Build benchmarks
      run: cargo build --benches --features=nightly-bench
      if: matrix.rust == 'nightly'
    - name: Run tests
      run: cargo test
    - name: Generate docs
      run: cargo doc

  check-miri:
    name: 'Run tests with miri'
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v6
    - name: Install Rust toolchain
      uses: actions-rs/toolchain@v1
      with:
        toolchain: nightly
        override: true
        profile: minimal
        components: miri
    - name: "Miri setup"
      run: cargo miri setup
    - name: "Run tests with miri"
      run: cargo miri test