9 releases

Uses new Rust 2024

0.7.3 Jan 5, 2026
0.7.2 Nov 27, 2025
0.7.0 Oct 29, 2025
0.6.2 Sep 29, 2025
0.4.0 May 17, 2024

#532 in Value formatting

Download history 564/week @ 2026-01-19 606/week @ 2026-01-26 350/week @ 2026-02-02 370/week @ 2026-02-09 645/week @ 2026-02-16 913/week @ 2026-02-23 1049/week @ 2026-03-02 1475/week @ 2026-03-09 1617/week @ 2026-03-16 1635/week @ 2026-03-23 2110/week @ 2026-03-30 2408/week @ 2026-04-06 2925/week @ 2026-04-13 3415/week @ 2026-04-20 3813/week @ 2026-04-27 2576/week @ 2026-05-04

13,097 downloads per month
Used in 14 crates (6 directly)

Apache-2.0 WITH LLVM-exception

92KB
2.5K SLoC

Topiary

Latest Release CI Status Discord

Topiary aims to be a uniform formatter for simple languages, as part of the Tree-sitter ecosystem. It is named after the art of clipping or trimming trees into fantastic shapes.

Topiary is designed for formatter authors and formatter users. Authors can create a formatter for a language without having to write their own formatting engine or even their own parser. Users benefit from uniform code style and, potentially, the convenience of using a single formatter tool, across multiple languages over their codebases, each with comparable styles applied.

» 📖 Read the Topiary Book

» 💻 Topiary website

» 🌳 Topiary playground

Dependencies

~0–3MB
~60K SLoC