Skip to content

fix(docs): remove nightly doc_cfg feature so docs.rs builds on stable #12

fix(docs): remove nightly doc_cfg feature so docs.rs builds on stable

fix(docs): remove nightly doc_cfg feature so docs.rs builds on stable #12

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Lint, build, test (offline only)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install Rust toolchain (stable)
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and target
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: cargo fmt --check
run: cargo fmt --all -- --check
- name: cargo clippy (all targets, all features, deny warnings)
run: cargo clippy --all-targets --all-features -- -D warnings
# NOTE: `cargo test --all-features` runs the offline wiremock suite
# plus the proptest round-trips. Live sandbox smoke tests live in
# `tests/live/` and are marked `#[ignore]` so they are NEVER
# exercised here. To run them locally, see CONTRIBUTING.md.
- name: cargo test (all features, offline only)
run: cargo test --all-features
# `--all-features` mirrors docs.rs (which builds with all features per
# `[package.metadata.docs.rs]`). Without it, intra-doc links into the
# `auth-capture` and `subscriptions` modules are unresolved because
# those modules are `#[cfg(feature = "...")]`-gated.
- name: cargo doc (all features, no deps, deny warnings)
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
- name: cargo publish --dry-run
run: cargo publish --dry-run --all-features