Skip to content

Add dependency on fastrand and fix borrow checker error #70

Add dependency on fastrand and fix borrow checker error

Add dependency on fastrand and fix borrow checker error #70

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cache Rust builds
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Build (all targets)
run: cargo build --all-targets
- name: Run tests
run: cargo test
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Check formatting
run: cargo fmt --check