@@ -211,6 +211,46 @@ jobs:
211211 verbose : true
212212 files : ./lcov-openssl.info,./lcov-rust_native_crypto.info
213213
214+ docs_rs :
215+ name : Preflight docs.rs build
216+ runs-on : ubuntu-latest
217+
218+ if : |
219+ github.event_name != 'pull_request' ||
220+ github.event.pull_request.author_association == 'COLLABORATOR' ||
221+ github.event.pull_request.author_association == 'MEMBER' ||
222+ github.event.pull_request.user.login == 'dependabot[bot]' ||
223+ contains(github.event.pull_request.labels.*.name, 'safe to test') ||
224+ contains(github.event.pull_request.labels.*.name, 'check-release')
225+
226+ steps :
227+ - name : Checkout repository
228+ uses : actions/checkout@v6
229+
230+ - name : Install Rust toolchain
231+ uses : dtolnay/rust-toolchain@nightly
232+
233+ - name : Cache Rust dependencies
234+ uses : Swatinem/rust-cache@v2
235+
236+ - name : Install cargo-docs-rs
237+ uses : dtolnay/install@cargo-docs-rs
238+
239+ - name : Preflight c2pa-rs docs.rs
240+ env :
241+ RUSTDOCFLAGS : -Dwarnings
242+ run : cargo docs-rs -p c2pa
243+
244+ - name : Preflight c2pa-c-ffi docs.rs
245+ env :
246+ RUSTDOCFLAGS : -Dwarnings
247+ run : cargo docs-rs -p c2pa-c-ffi
248+
249+ - name : Preflight c2patool cargo docs
250+ env :
251+ RUSTDOCFLAGS : -Dwarnings
252+ run : cargo doc -p c2patool --no-deps --all-features
253+
214254 doc-tests :
215255 name : Doc tests (requires nightly Rust)
216256 needs : get-features
@@ -484,11 +524,11 @@ jobs:
484524 - name : Install nightly toolchain
485525 uses : dtolnay/rust-toolchain@master
486526 with :
487- toolchain : nightly-2025-07-28
527+ toolchain : nightly-2025-12-06
488528 components : rustfmt
489529
490530 - name : Check format
491- run : cargo +nightly-2025-07-28 fmt --all -- --check
531+ run : cargo +nightly-2025-12-06 fmt --all -- --check
492532
493533 cargo-deny :
494534 name : License / vulnerability audit
0 commit comments