{
	"hooks": {
		"PostToolUse": [
			{
				"matcher": "Write|Edit",
				"hooks": [
					{
						"type": "command",
						"command": "jq -r '.tool_input.file_path // .tool_response.filePath' | { read -r f; echo \"$f\" | grep -q '\\.rs$' && mise run format; } 2>/dev/null || true",
						"statusMessage": "Formatting Rust code..."
					}
				]
			}
		]
	}
}
