#syntax #macro-expansion #ast #syntax-tree #github #pretty-print #abstract

nightly rustc-ap-syntax

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

611 major breaking releases

645.0.0 Feb 25, 2020
644.0.0 Feb 18, 2020
643.0.0 Feb 11, 2020
642.0.0 Feb 8, 2020
1.0.0 Jan 11, 2018

#1018 in Programming languages

Download history 12/week @ 2023-12-06 9/week @ 2023-12-13 7/week @ 2023-12-20 6/week @ 2023-12-27 11/week @ 2024-01-03 12/week @ 2024-01-10 25/week @ 2024-01-17 17/week @ 2024-01-24 24/week @ 2024-01-31 1/week @ 2024-02-07 21/week @ 2024-02-21 1178/week @ 2024-02-28 124/week @ 2024-03-13 5/week @ 2024-03-20

1,310 downloads per month
Used in 5 crates (4 directly)

MIT/Apache

1.5MB
30K SLoC

The syntax 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 guide:


lib.rs:

The Rust parser and macro expander.

Note

This API is completely unstable and subject to change.

Dependencies

~5.5MB
~106K SLoC