#ast #rustc-auto-publish #pretty-print #macro-expansion #syntax-tree #e7e918 #9a27044f42ace9eb #52781b53f598e25d #rustc-ast

nightly rustc-ap-rustc_ast

Automatically published version of the package rustc_ast in the rust-lang/rust repository from commit 9a27044f42ace9eb652781b53f598e25d4e7e918 The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish

78 major breaking releases

727.0.0 Jul 6, 2021
726.0.0 Jun 29, 2021
725.0.0 Jun 22, 2021
724.0.0 Jun 15, 2021
646.0.0 Mar 4, 2020

#1406 in Procedural macros

Download history 56/week @ 2025-12-25 82/week @ 2026-01-01 39/week @ 2026-01-08 60/week @ 2026-01-15 80/week @ 2026-01-22 85/week @ 2026-01-29 41/week @ 2026-02-05 101/week @ 2026-02-12 90/week @ 2026-02-19 1785/week @ 2026-02-26 8131/week @ 2026-03-05 247/week @ 2026-03-12 229/week @ 2026-03-19 400/week @ 2026-03-26 2993/week @ 2026-04-02 1688/week @ 2026-04-09

5,349 downloads per month
Used in 23 crates (9 directly)

MIT/Apache

1.5MB
30K SLoC

The Rust parser and macro expander.

Note

This API is completely unstable and subject to change.


The rustc_ast crate contains those things concerned purely with syntax – that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc dev guide:

Dependencies

~13–29MB
~365K SLoC