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