{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "cargo fmt --all && cargo clippy --all-targets --all-features -- -D warnings 2>&1 | head -50"
          }
        ]
      }
    ]
  }
}
