Skip to content

✨ Add kind-specific entry builders #14793

✨ Add kind-specific entry builders

✨ Add kind-specific entry builders #14793

Workflow file for this run

name: format
on:
workflow_dispatch:
pull_request:
paths:
- "lib/**"
- "pna/**"
- "cli/**"
- "fuzz/**"
- "xtask/**"
- "Cargo.toml"
- "Cargo.lock"
- ".cargo/config.toml"
- "rust-toolchain.toml"
- ".github/workflows/format.yml"
push:
paths:
- "lib/**"
- "pna/**"
- "cli/**"
- "fuzz/**"
- "xtask/**"
- "Cargo.toml"
- "Cargo.lock"
- ".cargo/config.toml"
- "rust-toolchain.toml"
- ".github/workflows/format.yml"
permissions:
contents: read # checkout
jobs:
rust_check_format:
name: Check format
runs-on: ubuntu-slim
timeout-minutes: 60
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
with:
components: "rustfmt,rust-docs"
cache: false
- name: run check format
run: cargo fmt --check
env:
RUST_BACKTRACE: 1
rust_check_doc:
name: Check documentation
runs-on: ubuntu-slim
timeout-minutes: 60
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
with:
components: "rustfmt,rust-docs"
cache: false
- name: run check doc
run: cargo doc --no-deps -p libpna -p pna
env:
RUST_BACKTRACE: 1
RUSTFLAGS: -Dwarnings