#ast #rustc #token-stream #syntax-tree #compiler #definition #macro-expansion

nightly jomy-ap-rustc_ast

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

2 releases (1 stable)

new 1.83.0 Nov 29, 2024
0.1.0 Nov 29, 2024

#326 in Programming languages

Download history 237/week @ 2024-11-25

237 downloads per month
Used in 6 crates

MIT/Apache

1.5MB
33K SLoC

The rustc_ast crate contains those things concerned purely with syntax – that is, the AST ("abstract syntax tree"), along with some definitions for tokens and token streams, data structures/traits for mutating ASTs, and shared definitions for other AST-related parts of the compiler (like the lexer and macro-expansion).

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


lib.rs:

The Rust Abstract Syntax Tree (AST).

Note

This API is completely unstable and subject to change.

Dependencies

~8–36MB
~585K SLoC