Skip to content

feat: macros

feat: macros #94

Workflow file for this run

name: Check Rust code
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
TOOLCHAIN_VERSION: nightly-2024-06-19
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.TOOLCHAIN_VERSION }}
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.TOOLCHAIN_VERSION }}
components: clippy
override: true
- run: cargo clippy --all-features -- -W clippy::pedantic -D warnings