netbeat 0.1.0

A fast, minimal, & lightweight tool for testing network upload and download speeds between a client and server, written entirely in Rust.
Documentation
name: Rust CI

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

env:
  CARGO_TERM_COLOR: always
  TARPAULIN_VERSION: 0.32.8

jobs:
  test_and_coverage:
    name: Test & Coverage (stable)
    runs-on: ubuntu-latest

    steps:
      - name: 🔔 Checkout
        uses: actions/checkout@v4

      - name: 🦀 Install Rust
        uses: actions-rust-lang/setup-rust-toolchain@v1
        with:
          toolchain: stable
          components: rustfmt, clippy
          cache: true # optional – speeds up subsequent jobs

      - name: 💾 Cache tarpaulin
        id: cache-tarpaulin
        uses: actions/cache@v4
        with:
          path: ~/.cargo/bin/cargo-tarpaulin
          key: ${{ runner.os }}-tarpaulin-${{ env.TARPAULIN_VERSION }}

      - name: ⏬ Install cargo‑tarpaulin
        if: steps.cache-tarpaulin.outputs.cache-hit != 'true'
        run: cargo install cargo-tarpaulin --version ${{ env.TARPAULIN_VERSION }}

      - name: 💄 Run rustfmt
        run: cargo fmt -- --check

      - name: ✂️ Run clippy
        run: cargo clippy --all-targets --all-features -- -D warnings

      - name: 📦 Build project
        run: cargo build --verbose --all-targets --all-features

      - name: 🧪 Run tests + coverage
        run: cargo tarpaulin --out lcov

      - name: ⏫ Upload coverage to Codecov
        uses: codecov/codecov-action@v5
        with:
          file: lcov.info
          token: ${{ secrets.CODECOV_TOKEN }}
          flags: rust
          verbose: true
          slug: jakepenzak/netbeat