repos:
  - repo: local
    hooks:
      - id: cargo-fmt
        name: cargo fmt
        entry: cargo fmt --manifest-path rust/Cargo.toml --check
        language: system
        types: [rust]
        pass_filenames: false
      - id: cargo-clippy
        name: cargo clippy
        entry: cargo clippy --manifest-path rust/Cargo.toml --all-features -- -D warnings
        language: system
        types: [rust]
        pass_filenames: false
      - id: cargo-deny
        name: cargo deny
        entry: cargo deny --manifest-path rust/Cargo.toml check
        language: system
        types: [rust]
        pass_filenames: false
