socket-pktinfo 0.4.1

Small library to allow cross-platform handling of IP_PKTINFO and IPV6_PKTINFO with socket2 crate
Documentation
name: Build

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

env:
  CARGO_TERM_COLOR: always
  RUST_BACKTRACE: 1

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-22.04, windows-latest, macos-latest]
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@1.71.0
        with:
          components: rustfmt, clippy
      - name: Run rustfmt and fail if any warnings
        run: cargo fmt -- --check
      - name: Build
        run: cargo build
      - name: Run clippy and fail if any warnings
        run: cargo clippy -- -D warnings