Current state of compiler plugins for Rust
โ Rust ๐ 2025-07-05 ๐ค surdeus ๐๏ธ 19Hi, 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
๐ท๏ธ rust_feed