Skip to content

cargo fmt

cargo fmt #431

Workflow file for this run

on: [push, pull_request]
name: CI
jobs:
tests:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-hack
uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- run: cargo hack check --feature-powerset --exclude-features rustc-dep-of-std
- run: cargo hack clippy --feature-powerset --exclude-features rustc-dep-of-std
- run: cargo hack test --feature-powerset --exclude-features rustc-dep-of-std
nightly-stuff:
name: nightly clippy, format and miri tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy, miri
- run: cargo +nightly fmt --all -- --check
- run: cargo +nightly clippy --no-default-features -- -D warnings
- run: cargo +nightly clippy -- -D warnings
- run: cargo +nightly miri test ringbuffer
- run: cargo +nightly miri test short_Writer