Skip to content

chore: pin rust version and fix lints #2418

chore: pin rust version and fix lints

chore: pin rust version and fix lints #2418

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
toolchain: 1.84.0
rustflags: -D warnings --cfg tokio_unstable
- name: Check format
run: cargo fmt --all -- --check
- name: Check
run: cargo check --all-targets --all-features
- name: Clippy
run: cargo clippy --workspace --no-deps --all-features --all-targets -- -D warnings
- name: Validate documentation
run: cargo doc --workspace --no-deps --all-features
- name: Run tests
run: cargo test