Skip to content

Commit

Permalink
feat: set rust toolchain version to 1.72
Browse files Browse the repository at this point in the history
Rust version 1.73.0 introduced new warnings, and made some dispatcher tests start failing. Pining the Rust version will allow the CI checks to pass and postpone the need to update the Rust codebase.
  • Loading branch information
torives committed Oct 25, 2023
1 parent a04ef9a commit e963199
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/rust-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Assess Rust code quality
on:
push:
paths:
- '.github/workflows/rust-code-quality.yml'
- 'offchain/**'
- ".github/workflows/rust-code-quality.yml"
- "offchain/**"

jobs:
assess-rust-code-quality:
Expand Down Expand Up @@ -33,18 +33,21 @@ jobs:
- name: Install protoc
run: sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev

- name: Update rust
run: rustup update

- name: Install cargo-machete
run: cargo install cargo-machete
continue-on-error: true

- name: Analyze dependencies
run: cargo machete .

- name: Install rustfmt
run: rustup component add rustfmt

- name: Check code format
run: cargo fmt --all -- --check

- name: Install clippy
run: rustup component add clippy

- name: Run linter
run: cargo clippy -- -A clippy::module_inception
2 changes: 2 additions & 0 deletions offchain/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.72"

0 comments on commit e963199

Please sign in to comment.