54 stable releases

Uses new Rust 2024

3.4.0 Dec 2, 2025
3.3.1 Oct 29, 2025
3.2.0 Sep 9, 2025
3.0.0 Jul 22, 2025
1.0.4 Nov 7, 2020

#8 in #leo

Download history 45/week @ 2025-10-21 182/week @ 2025-10-28 17/week @ 2025-11-04 14/week @ 2025-11-11 22/week @ 2025-11-18 17/week @ 2025-11-25 6/week @ 2025-12-02 13/week @ 2025-12-09 13/week @ 2025-12-16 17/week @ 2025-12-23 18/week @ 2025-12-30 7/week @ 2026-01-06 14/week @ 2026-01-13 39/week @ 2026-01-20 38/week @ 2026-01-27 15/week @ 2026-02-03

106 downloads per month
Used in 16 crates (15 directly)

GPL-3.0 license

685KB
12K SLoC

The abstract syntax tree (ast) for a Leo program.

This module contains the [Ast] type, a wrapper around the Program type. The [Ast] type is intended to be parsed and modified by different passes of the Leo compiler. The Leo compiler can generate a set of R1CS constraints from any [Ast].


leo-ast

Crates.io License

Dependencies

~31–46MB
~476K SLoC