You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2026/03/06 07:32:18 UTC
(avro-rs) 01/01: ci: Add a CI step for `cargo doc`
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch cargo-doc-in-ci
in repository https://gitbox.apache.org/repos/asf/avro-rs.git
commit 4e95dfae2a323fd3f85f37eb34af0f86e764fff7
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Fri Mar 6 09:31:09 2026 +0200
ci: Add a CI step for `cargo doc`
---
.github/workflows/test-lang-rust-ci.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.github/workflows/test-lang-rust-ci.yml b/.github/workflows/test-lang-rust-ci.yml
index 380366b..6bbda34 100644
--- a/.github/workflows/test-lang-rust-ci.yml
+++ b/.github/workflows/test-lang-rust-ci.yml
@@ -102,6 +102,14 @@ jobs:
if: matrix.rust == 'stable' && matrix.runner.target == 'x86_64-unknown-linux-gnu'
run: cargo rdme --check
+ - name: Run cargo doc
+ # The result is environment independent so one test pattern is enough.
+ if: matrix.rust == 'stable' && matrix.runner.target == 'x86_64-unknown-linux-gnu'
+ env:
+ RUSTFLAGS: --cfg docsrs
+ RUSTDOCFLAGS: --cfg docsrs -Dwarnings
+ run: cargo doc --lib --no-deps --document-private-items --features derive
+
- name: Rust Format
if: matrix.runner.target != 'wasm32-unknown-unknown'
run: cargo fmt --all --check