{"slug": "rustfmt", "name": "rustfmt", "category": "other", "category_name": "Other software", "description": "", "recommenders": 1, "commenters": 3, "warners": 0, "score": 1.399, "rising": -0.33, "first": "2026-02-10", "latest": "2026-10-20", "why": "", "why_is_quote": false, "has_verdict": false, "sentiment": {"recommend": 1, "neutral": 2, "compare": 0, "warn": 0}, "spark": [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], "listed": false, "loved": [], "caveat": "", "short_quote": "", "icon": false, "domain": null, "github_repo": null, "official_url": "", "pricing": "", "aliases": ["rustfmt"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 751426576, "item_id": 46964161, "url": "https://news.ycombinator.com/item?id=46964161", "by": "speedgoose", "date": "2026-02-10", "stance": "recommend", "quote": "I use the defaults from rustfmt in rust", "excerpt": "I don't mind tabs or spaces, and I don't even know what I use in a given project. I use the defaults from rustfmt in rust, eslint or biome in TypeScript/JavaScript, or ruff in Python. I also have some .editorconfig files so my editor is automatically configured correctly. Importantly, I do tell the agents to always run the linters and use the auto-formatters if needed. They get it. Don't make them format code, it's s", "context": "", "use_case": "Rust formatting", "switched_from": "", "story": "Ask HN: Am I holding it wrong?"}]}], "caveats": [], "who": [{"by": "jeremychone", "context": "Builds an AI agent / CLI", "url": "https://news.ycombinator.com/item?id=47025290", "date": "2026-02-15"}], "tags": [], "use_cases": ["rust code formatting", "code formatting", "rust formatting"], "compared": [{"slug": "tree-sitter", "name": "tree-sitter", "co": 2, "switched_from": 0, "switched_to": 0}], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=50108717", "title": "SlopCodeBench 10/2026 \u2013 Opus 5.5, Astra wins overall, xhigh considered harmful", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=47023651", "title": "Show HN: A universal code formatter using Rust, Tree-sitter, and Rhai", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46958774", "title": "Ask HN: Am I holding it wrong?", "mentions": 1}], "sentiment_by_month": {"2025-11": {}, "2025-12": {}, "2026-01": {}, "2026-02": {"recommend": 1, "neutral": 1}, "2026-03": {}, "2026-04": {}, "2026-05": {}, "2026-06": {}, "2026-07": {}, "2026-08": {}, "2026-09": {}, "2026-10": {"neutral": 1}}, "quotes": [{"id": 802775106, "item_id": 50173444, "url": "https://news.ycombinator.com/item?id=50173444", "by": "LukaD", "date": "2026-10-20", "stance": "neutral", "quote": "rustfmt doesn't really insert empty lines", "excerpt": "I haven't used prettier much but this is what the prettier docs say about empty lines. > It turns out that empty lines are very hard to automatically generate. The approach that Prettier takes is to preserve empty lines the way they were in the original source code. There are two additional rules: > > - Prettier collapses multiple blank lines into a single blank line. > - Empty lines at the start and end of blocks (a", "context": "", "use_case": "Rust code formatting", "switched_from": "", "story": "SlopCodeBench 10/2026 \u2013 Opus 5.5, Astra wins overall, xhigh considered harmful"}, {"id": 752404641, "item_id": 47025290, "url": "https://news.ycombinator.com/item?id=47025290", "by": "jeremychone", "date": "2026-02-15", "stance": "neutral", "quote": "we use the language formatter (for example, rustfmt)", "excerpt": "Very interesting approach. The trick is that sometimes developers use a hybrid approach, AI + Human / IDE, and in this case, we use the language formatter (for example, rustfmt). For example: For my AI Agent / CLI, the dev can add a sub-agent (non-AI) that just runs cargo fmt, and I can definitely see the value in including this as part of the default flow. But my issue is that it won't really follow rustfmt. Am I mi", "context": "Builds an AI agent / CLI", "use_case": "code formatting", "switched_from": "", "story": "Show HN: A universal code formatter using Rust, Tree-sitter, and Rhai"}, {"id": 751426576, "item_id": 46964161, "url": "https://news.ycombinator.com/item?id=46964161", "by": "speedgoose", "date": "2026-02-10", "stance": "recommend", "quote": "I use the defaults from rustfmt in rust", "excerpt": "I don't mind tabs or spaces, and I don't even know what I use in a given project. I use the defaults from rustfmt in rust, eslint or biome in TypeScript/JavaScript, or ruff in Python. I also have some .editorconfig files so my editor is automatically configured correctly. Importantly, I do tell the agents to always run the linters and use the auto-formatters if needed. They get it. Don't make them format code, it's s", "context": "", "use_case": "Rust formatting", "switched_from": "", "story": "Ask HN: Am I holding it wrong?"}]}