loom-diff 0.1.0

Line-level diff for loom. Pure-function unified-diff over byte slices and text strings, used by both the loom CLI and the loom-gateway. Layered above weave-sdk; lower levels untouched.
Documentation
name: CI

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

env:
  CARGO_TERM_COLOR: always

jobs:
  ci:
    name: build · test · lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy

      - uses: Swatinem/rust-cache@v2

      - name: Install system deps
        run: |
          sudo apt-get update -qq
          sudo apt-get install -y -qq pkg-config libsodium-dev libssl-dev libfuse-dev libudev-dev protobuf-compiler clang

      - name: Configure git identity (some integration tests update refs)
        run: |
          git config --global user.name "weave-ci"
          git config --global user.email "ci@l1fe.ai"

      - name: Configure cargo to use HTTPS+token for private deps
        env:
          WEAVE_DEPS_TOKEN: ${{ secrets.WEAVE_DEPS_TOKEN }}
        run: |
          mkdir -p ~/.cargo
          cat >> ~/.cargo/config.toml <<EOF
          [net]
          git-fetch-with-cli = true
          EOF
          git config --global url."https://${WEAVE_DEPS_TOKEN}@github.com/".insteadOf "https://github.com/"

      - name: cargo fmt
        run: cargo fmt --all -- --check

      - name: cargo build
        run: cargo build --all-features --all-targets

      - name: cargo test
        run: cargo test --all-features

      - name: cargo clippy (advisory)
        continue-on-error: true
        run: cargo clippy --all-features --all-targets -- -W clippy::all