Skip to content

feat: use cfg_if

feat: use cfg_if #3

Workflow file for this run

name: Check
on: [push, pull_request]
env:
RUSTFLAGS: "-Dwarnings"
jobs:
clippy-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run clippy
run: |
sudo apt-get update && sudo apt-get install protobuf-compiler
rustup toolchain install nightly
rustup component add --toolchain nightly clippy
cargo +nightly clippy --all-targets --all-features
fmt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run fmt
run: |
sudo apt-get update && sudo apt-get install protobuf-compiler
rustup toolchain install nightly
rustup component add --toolchain nightly rustfmt
cargo +nightly fmt --all -- --check