7 unstable releases

Uses new Rust 2024

new 0.7.2 Nov 27, 2025
0.7.1 Nov 19, 2025
0.7.0 Oct 29, 2025
0.6.1 May 27, 2025
0.4.0 May 17, 2024

#1837 in Development tools

Download history 353/week @ 2025-08-09 394/week @ 2025-08-16 388/week @ 2025-08-23 576/week @ 2025-08-30 457/week @ 2025-09-06 625/week @ 2025-09-13 448/week @ 2025-09-20 704/week @ 2025-09-27 427/week @ 2025-10-04 580/week @ 2025-10-11 615/week @ 2025-10-18 527/week @ 2025-10-25 461/week @ 2025-11-01 432/week @ 2025-11-08 436/week @ 2025-11-15 480/week @ 2025-11-22

1,876 downloads per month
Used in 7 crates (4 directly)

MIT license

210KB
4.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

~11–19MB
~341K SLoC