Skip to content

Optimize DAG-CBOR encode/decode and CAR block parsing #38

Optimize DAG-CBOR encode/decode and CAR block parsing

Optimize DAG-CBOR encode/decode and CAR block parsing #38

Workflow file for this run

name: Lint and format check
on: [ pull_request ]
permissions:
contents: read
env:
RUSTFLAGS: "-Dwarnings" # treat warnings as errors
RUST_VERSION: "1.95.0"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository.
uses: actions/checkout@v6
- name: Install rust.
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}
components: clippy, rustfmt
- name: Run Clippy.
run: cargo clippy --all-targets --all-features
- name: Run fmt check.
run: cargo fmt --all -- --check