#compiler #rustc #ast #language #parser #expander #syntax

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

#317 in #language

Download history 453/week @ 2023-02-01 293/week @ 2023-02-08 485/week @ 2023-02-15 837/week @ 2023-02-22 173/week @ 2023-03-01 217/week @ 2023-03-08 350/week @ 2023-03-15 158/week @ 2023-03-22 201/week @ 2023-03-29 157/week @ 2023-04-05 108/week @ 2023-04-12 170/week @ 2023-04-19 159/week @ 2023-04-26 177/week @ 2023-05-03 173/week @ 2023-05-10 96/week @ 2023-05-17

629 downloads per month
Used in 23 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

~4–11MB
~201K SLoC