9 unstable releases (3 breaking)
Uses new Rust 2024
| 0.5.4 | Feb 3, 2026 |
|---|---|
| 0.5.3 | Jan 19, 2026 |
| 0.4.0 | Jan 12, 2026 |
| 0.2.1 | Jul 31, 2024 |
| 0.1.0 | Jul 28, 2024 |
#477 in Procedural macros
150KB
3K
SLoC
Fortification against sin. A new kind of parser for procedural macros.
This crate aims to be a (not-quite) drop-in replacement for
David Tolnay's proc-macro2 and quote crates,
and an opinionated alternative to syn.
Opposing syn,
this crate is designed around the philosophy that malformed input
should be handled gracefully by procedural macros.
See our quote macro and the TokenQueue type
for stream-building operations.
See the Parser type for structural documentation on parsing.
The design of this crate is still in flux. Expect frequent breaking changes and temporary (🤞) API inconsistencies.
MSRV
Note that while we don't have an official policy with regards to our MSRV, expect it to be tied high for some time.
vermouth
A new kind of parser for procedural macros.
License
Everything in this repository is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option, unless explicitly stated otherwise.
Dependencies
~100KB