btrfs-diskformat 0.5.1

An implementation of the BTRFS disk format.
Documentation
name: Rust build

on:
  push:
    branches: ["master"]
    paths:
      - "src/**"
      - "Cargo.*"
      - "rustfmt.toml"
      - ".github/**"
  pull_request:
    branches: ["master"]
    paths:
      - "src/**"
      - "Cargo.*"
      - "rustfmt.toml"
      - ".github/**"

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    env:
      RUSTFLAGS: "-D warnings" # Fail compilation on any warnings

    steps:
      - uses: actions/checkout@v4

      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          components: clippy
          override: true

      - name: Build
        run: cargo build --verbose

      - name: Check formatting
        run: cargo fmt --check

      - name: Run lints
        run: cargo clippy -- -D clippy::all