Skip to content

One dim reads

One dim reads #36

Workflow file for this run

name: Rust
on:
push:
branches:
- main
pull_request:
jobs:
check-fmt:
name: Check cargo fmt
runs-on: ubuntu-latest
container:
image: amd64/rust
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Run check
run: |
cargo fmt --all -- --check
check-clippy-all-features:
name: Check cargo clippy
runs-on: ubuntu-latest
container:
image: amd64/rust
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run check
run: |
cargo clippy --all-targets --all-features -- -D warnings
# Check clippy without features, helps to catch missing feature configurations
check-clippy-no-features:
name: Check cargo clippy
runs-on: ubuntu-latest
container:
image: amd64/rust
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run check
run: |
cargo clippy --all-targets -- -D warnings