#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

#1029 in Programming languages

Download history 7/week @ 2024-01-01 14/week @ 2024-01-08 22/week @ 2024-01-15 13/week @ 2024-01-22 34/week @ 2024-01-29 2/week @ 2024-02-05 1199/week @ 2024-02-26 123/week @ 2024-03-11 6/week @ 2024-03-18 282/week @ 2024-04-01 1/week @ 2024-04-15

283 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