Re: [PATCH 00/18] `syn` support
From: Jonathan Corbet
Date: Mon Nov 10 2025 - 11:08:02 EST
Miguel Ojeda <ojeda@xxxxxxxxxx> writes:
> This patch series introduces support for `syn` (and its dependencies).
> Having such support allows to greatly simplify writing complex macros
> such as `pin-init`.
Just in case I'm not the only ignorant person who didn't immediately
know what "syn" is and why we might want 57,000 lines of it in the
kernel... :)
Syn is a parsing library for parsing a stream of Rust tokens into a
syntax tree of Rust source code.
Currently this library is geared toward use in Rust procedural
macros, but contains some APIs that may be useful more generally
https://docs.rs/syn/latest/syn/
Thanks,
jon