Re: [PATCH 00/18] `syn` support
From: Jesung Yang
Date: Fri Nov 21 2025 - 04:08:12 EST
On Fri, Nov 21, 2025 at 2:36 PM Miguel Ojeda <ojeda@xxxxxxxxxx> wrote:
> For using (all of) them from `macros`, you would need [1].
Now everything compiles. Thanks!
By the way, I needed to make a small change to
`generate_rust_analyzer.py` for rust-analyzer to correctly reference
symbols from the vendored crates:
diff --git a/scripts/generate_rust_analyzer.py
b/scripts/generate_rust_analyzer.py
index 5b6f7b8d6918..147d0cc94068 100755
--- a/scripts/generate_rust_analyzer.py
+++ b/scripts/generate_rust_analyzer.py
@@ -110,7 +110,7 @@ def generate_crates(srctree, objtree, sysroot_src,
external_src, cfgs, core_edit
append_crate(
"macros",
srctree / "rust" / "macros" / "lib.rs",
- ["std", "proc_macro"],
+ ["std", "proc_macro", "proc_macro2", "quote", "syn"],
is_proc_macro=True,
)
This might already be covered somewhere else, but I'm bringing it up
just in case.
Best Regards,
Jesung