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

#825 in Web programming

Download history 26/week @ 2025-12-25 46/week @ 2026-01-01 54/week @ 2026-01-08 248/week @ 2026-01-15 330/week @ 2026-01-22 240/week @ 2026-01-29 150/week @ 2026-02-05 181/week @ 2026-02-12 358/week @ 2026-02-19 566/week @ 2026-02-26 470/week @ 2026-03-05 746/week @ 2026-03-12 630/week @ 2026-03-19 703/week @ 2026-03-26 719/week @ 2026-04-02 780/week @ 2026-04-09

2,964 downloads per month
Used in 15 crates (3 directly)

Apache-2.0 WITH LLVM-exception

33KB
731 lines

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

~8–11MB
~197K SLoC