reverse_resonance_id 0.1.0

Self-checking symmetric tokens based on reversing squared user identifiers.
Documentation
name: CI

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

env:
  CARGO_TERM_COLOR: always

jobs:
  lint-test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        toolchain: ["1.70.0", "stable"]
    steps:
      - uses: actions/checkout@v4

      - name: Install Rust ${{ matrix.toolchain }}
        uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{ matrix.toolchain }}
          components: clippy, rustfmt

      - name: Cache cargo registry
        uses: Swatinem/rust-cache@v2

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

      - name: cargo clippy (all features)
        run: cargo clippy --all-targets --all-features -- -D warnings

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

      - name: cargo test (baseline only)
        run: cargo test --no-default-features --features baseline