cobs_codec_rs 1.1.0

Consistent Overhead Byte Stuffing (COBS) and COBS/R codec: no_std, zero-dependency, for zero-free framing of serial and packet byte streams.
Documentation
name: Publish to crates.io

# Publishes via crates.io Trusted Publishing (OIDC) — no API token secret.
# Configure the matching publisher at:
#   crates.io > cobs_codec_rs > Settings > Trusted Publishing
#   owner=firechip  repo=cobs_codec_rs  workflow=release.yml  environment=release
on:
  push:
    tags:
      - "v*"
  workflow_dispatch:

permissions:
  contents: read

jobs:
  publish:
    name: Publish to crates.io (Trusted Publishing)
    runs-on: ubuntu-latest
    environment: release
    permissions:
      id-token: write # required for the OIDC token exchange
      contents: read
    steps:
      - uses: actions/checkout@v6
      - uses: dtolnay/rust-toolchain@stable
      - name: Verify before publishing
        run: |
          cargo fmt --check
          cargo clippy --all-targets --all-features -- -D warnings
          cargo test --all-features
      - name: Authenticate to crates.io (OIDC)
        uses: rust-lang/crates-io-auth-action@v1
        id: auth
      - name: Publish
        run: cargo publish
        env:
          CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}