#ast #blockchain #chia

rue-ast

An implementation of the Abstract Syntax Tree for the Rue compiler

3 releases (breaking)

Uses new Rust 2024

0.5.0 Nov 2, 2025
0.4.0 Oct 5, 2025
0.3.0 Sep 26, 2025

#712 in Magic Beans

Download history 123/week @ 2025-09-23 147/week @ 2025-09-30 26/week @ 2025-10-07 22/week @ 2025-10-14 17/week @ 2025-10-21 18/week @ 2025-10-28

110 downloads per month
Used in 3 crates (via rue-compiler)

Apache-2.0

99KB
3K SLoC

Rue Lang

crate minimum rustc 1.90.0

Rue is a typed programming language which gets compiled to CLVM bytecode. It's designed to be an alternative to Chialisp for writing smart coin puzzles on the Chia blockchain.

You can learn more about it on the Rue docs website, and play around with the examples on the Rue Playground.

Highlights

  • Type Safe: The compiler will prevent entire classes of errors at compile time by enforcing types are used correctly.

  • Optimized: Many tricks are used to reduce the size of the generated bytecode as much as possible.

  • Familiar: Rue provides a simplified Rust-like syntax that will feel more at home for many developers than Chialisp.

Installation

See the Installation page on the docs site for more information.

Discord

You can join the Sage Discord to get help with Rue, suggest ideas, or just chat about the project.

Dependencies

~1.8–2.6MB
~50K SLoC