4 releases (2 breaking)

Uses new Rust 2024

0.7.0 Oct 29, 2025
0.6.1 May 27, 2025
0.6.0 Feb 3, 2025
0.5.1 Oct 28, 2024

#708 in Text processing

Download history 26/week @ 2025-07-19 20/week @ 2025-07-26 23/week @ 2025-08-02 27/week @ 2025-08-09 44/week @ 2025-08-16 30/week @ 2025-08-23 19/week @ 2025-08-30 59/week @ 2025-09-06 12/week @ 2025-09-13 25/week @ 2025-09-20 26/week @ 2025-09-27 4/week @ 2025-10-04 12/week @ 2025-10-11 14/week @ 2025-10-18 89/week @ 2025-10-25 1/week @ 2025-11-01

117 downloads per month

MIT and LGPL-3.0-only

660KB
12K SLoC

Rust 6.5K SLoC // 0.1% comments Scheme 5.5K SLoC // 0.2% comments

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

~119MB
~2M SLoC