14 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.3 Jun 13, 2025
0.4.1 Jun 6, 2024

#1893 in Text processing

Download history 111/week @ 2025-12-29 183/week @ 2026-01-05 180/week @ 2026-01-12 476/week @ 2026-01-19 487/week @ 2026-01-26 235/week @ 2026-02-02 341/week @ 2026-02-09 441/week @ 2026-02-16 706/week @ 2026-02-23 846/week @ 2026-03-02 1226/week @ 2026-03-09 1398/week @ 2026-03-16 1458/week @ 2026-03-23 1867/week @ 2026-03-30 2222/week @ 2026-04-06 2642/week @ 2026-04-13

8,239 downloads per month
Used in 5 crates (2 directly)

MIT license

175KB
5.5K SLoC

Scheme 5.5K SLoC // 0.2% comments Rust 52 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

No runtime deps

Features