feat(soavec): add SoAVec::iter and SoAVec::iter_mut
#80
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: ${{ github.ref_name != 'main' }} | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| typos: | |
| name: Spellcheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Spell check | |
| uses: crate-ci/typos@master | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Rust stable toolchain | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - name: Install Rust nightly toolchain | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| toolchain: nightly-2025-05-14 | |
| components: rustfmt, clippy, llvm-tools-preview, rustc-dev, miri | |
| - name: Cache on ${{ github.ref_name }} | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: warm | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Clippy | |
| run: | | |
| cargo +stable clippy --all-targets -- -D warnings | |
| cargo +nightly-2025-05-14 clippy --all-targets --all-features -- -D warnings | |
| - name: Miri | |
| run: | | |
| cargo +nightly-2025-05-14 miri setup | |
| cargo +nightly-2025-05-14 miri test --all-features | |
| build: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - name: Cache on ${{ github.ref_name }} | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: warm | |
| - name: Check | |
| run: cargo check --all-targets | |
| - name: Build | |
| run: cargo build --tests --bins --examples | |
| - name: Test | |
| run: cargo test | |
| env: | |
| RUST_BACKTRACE: 1 | |
| fuzz: | |
| name: Fuzz Testing | |
| runs-on: ubuntu-latest | |
| env: | |
| CARGO_FUZZ_VERSION: 0.12.0 | |
| FUZZ_TIME: 300 | |
| strategy: | |
| matrix: | |
| fuzz_target: | |
| - soavec_api | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Rust nightly toolchain | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| toolchain: nightly | |
| - name: Cache cargo-fuzz | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ runner.tool_cache }}/cargo-fuzz | |
| key: cargo-fuzz-bin-${{ env.CARGO_FUZZ_VERSION }} | |
| - name: Add cargo-fuzz to PATH | |
| run: echo "${{ runner.tool_cache }}/cargo-fuzz/bin" >> $GITHUB_PATH | |
| - name: Install cargo-fuzz | |
| run: cargo install --root "${{ runner.tool_cache }}/cargo-fuzz" --version ${{ env.CARGO_FUZZ_VERSION }} cargo-fuzz --locked | |
| - name: Cache on ${{ github.ref_name }} | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: warm | |
| - name: Build fuzz target | |
| run: cargo +nightly fuzz build ${{ matrix.fuzz_target }} | |
| - name: Run fuzz target | |
| run: cargo +nightly fuzz run ${{ matrix.fuzz_target }} -- -max_total_time=${{ env.FUZZ_TIME }} | |
| - name: Upload fuzzing artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: fuzzing-artifacts-${{ matrix.fuzz_target }}-${{ github.sha }} | |
| path: fuzz/artifacts |