From 5ac6a74e712485de6819543e57be42086240d708 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 19 Sep 2025 11:49:28 +0200 Subject: [PATCH] CI: run cargo doc Link: https://github.com/rust-vmm/vhost-device/pull/877#issuecomment-3307110037 Signed-off-by: Alyssa Ross --- .buildkite/main-tests.json | 6 +++++- .buildkite/staging-tests.json | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.buildkite/main-tests.json b/.buildkite/main-tests.json index c9e5167..8488c91 100644 --- a/.buildkite/main-tests.json +++ b/.buildkite/main-tests.json @@ -21,6 +21,10 @@ "test_name": "style", "command": "cargo fmt --all -- --check --config format_code_in_doc_comments=true" }, + { + "test_name": "doc", + "command": "RUSTDOCFLAGS=\"-D warnings\" cargo doc --workspace --all-features --no-deps" + }, { "test_name": "unittests-gnu", "command": "CROSVM_USE_SYSTEM_VIRGLRENDERER=1 CROSVM_USE_SYSTEM_MINIGBM=1 cargo test --all-features --workspace", @@ -110,4 +114,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/.buildkite/staging-tests.json b/.buildkite/staging-tests.json index b84ac99..00e41a6 100644 --- a/.buildkite/staging-tests.json +++ b/.buildkite/staging-tests.json @@ -22,6 +22,10 @@ "test_name": "staging: style", "command": "cd staging && cargo fmt --all -- --check --config format_code_in_doc_comments=true" }, + { + "test_name": "staging: doc", + "command": "cd staging && RUSTDOCFLAGS=\"-D warnings\" cargo doc --workspace --all-features --no-deps" + }, { "test_name": "staging: unittests-gnu", "command": "cd staging && cargo test --all-features --workspace",