rustbinary 0.1.10

A bounded nextjson binary codec with adaptive frames, zero-allocation paths, schema evolution, and authenticated pipelines
Documentation
name: CI

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

permissions:
  contents: read

jobs:
  fuzz-smoke:
    runs-on: ${{ matrix.os }}
    timeout-minutes: 20
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest]
    steps:
      - uses: actions/checkout@v5
      - uses: dtolnay/rust-toolchain@nightly
      - run: cargo install cargo-fuzz --version 0.13.2 --locked
      - name: Run five ASan fuzz targets
        shell: pwsh
        run: ./scripts/fuzz.ps1 -Seconds 30
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: fuzz-${{ matrix.os }}
          path: |

            target/fuzz-results/
            fuzz/artifacts/

  feature-matrix:
    name: ${{ matrix.profile }}
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        include:
          - profile: core-no-std
            command: cargo test --no-default-features
          - profile: compact
            command: cargo test --no-default-features --features compact
          - profile: protocol
            command: cargo test --no-default-features --features protocol
          - profile: cbor
            command: cargo test --no-default-features --features cbor
          - profile: sync
            command: cargo test --no-default-features --features sync
          - profile: bounded
            command: cargo test --no-default-features --features bounded
          - profile: projection
            command: cargo test --no-default-features --features projection
          - profile: pipeline
            command: cargo test --no-default-features --features pipeline
          - profile: archive
            command: cargo test --no-default-features --features archive
    steps:
      - uses: actions/checkout@v5
      - uses: dtolnay/rust-toolchain@stable
      - run: ${{ matrix.command }}

  msrv-core:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: dtolnay/rust-toolchain@1.78.0
      - run: cargo check --workspace --all-targets --all-features
      - run: cargo test --workspace --all-features

  quality:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy, rustfmt
      - run: cargo fmt --all -- --check
      - run: cargo clippy --workspace --all-targets --all-features -- -D warnings
      - run: cargo check --manifest-path fuzz/Cargo.toml --all-targets --locked
      - run: cargo test --workspace --all-features --release
      - name: Run executable examples
        run: |

          cargo run --quiet --example core_codec
          cargo run --quiet --example zero_copy
          cargo run --quiet --example mmap_archive --features archive
          cargo run --quiet --example adaptive_zero_alloc --features adaptive
          cargo run --quiet --example metadata --features bit-packing,derive,fingerprint,reflection,static-size
          cargo run --quiet --example schema_evolution --features schema-evolution
          cargo run --quiet --example secure_pipeline --features cbor,compression,encryption
          cargo run --quiet --example parallel_batch --features parallel
          cargo run --quiet --example entropy --features entropy,derive
          cargo run --quiet --example merkle_archive --features archive
          cargo run --quiet --example delta_sync --features reconcile
          cargo run --quiet --example trust_session --features trust
          cargo run --quiet --example complete --all-features
      - run: cargo doc --workspace --all-features --no-deps
        env:
          RUSTDOCFLAGS: -D warnings