Current state of compiler plugins for Rust

โš“ rust    ๐Ÿ“… 2025-07-05    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 2      

surdeus

Hi, are user-defined compiler plugins currently supported on the nightly build of rustc? This issue Tracking issue for plugin stabilization (`plugin`, `plugin_registrar` features) ยท Issue #29597 ยท rust-lang/rust ยท GitHub gives me the impression that they are no longer supported.

Is there an alternative solution for writing code that interacts with the compiler? I would say that proc macros are close, but they cannot interact with the compiler without modifying existing source code. I am looking for a way to plug into the compiler and inject changes at compile time.

Thanks.

2 posts - 2 participants

Read full topic

๐Ÿท๏ธ rust_feed