#macro-expansion #ast #syntax-tree #compiler #pretty-print #rustc #language

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

#957 in Programming languages

Download history 46/week @ 2024-01-07 53/week @ 2024-01-14 38/week @ 2024-01-21 18/week @ 2024-01-28 32/week @ 2024-02-04 52/week @ 2024-02-11 52/week @ 2024-02-18 156/week @ 2024-02-25 88/week @ 2024-03-03 125/week @ 2024-03-10 101/week @ 2024-03-17 85/week @ 2024-03-24 229/week @ 2024-03-31 61/week @ 2024-04-07 80/week @ 2024-04-14 90/week @ 2024-04-21

474 downloads per month
Used in 22 crates (9 directly)

MIT/Apache

1.5MB
30K SLoC

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:


lib.rs:

The Rust parser and macro expander.

Note

This API is completely unstable and subject to change.

Dependencies

~7–17MB
~235K SLoC