From efc97d7fc2a5dd7bdd7cbf3225c69620dce184c6 Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Tue, 23 Apr 2024 11:58:11 +0100 Subject: [PATCH] chore: Add cargo doc check to pre-commit This is the check run in CI, so it should be also included in the hooks --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 65cc079c6..792e47d3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -75,3 +75,10 @@ repos: language: system files: \.rs$ pass_filenames: false + - id: cargo-doc + name: cargo doc + description: Generate documentation with `cargo doc`. + entry: cargo doc --no-deps --all-features --workspace + language: system + files: \.rs$ + pass_filenames: false