Running compiler plugins on stable

What I'm trying to do requires a plugin compiler, because I need to report errors at compile time, however I would like it to work on Rust stable, and not just at night.

Is there a way to run compiler plugins on stable Rust?

+6
source share
1 answer

Not yet; compiler plugins rely on the unstable API, which is very much in demand. Although it is impossible to predict when the API will stabilize, I think we will see a large number of versions of Rust before these APIs can be declared stable.

A good workaround for things that only need AST is to use syntex and create your own program regardless of rustc.

+7
source

All Articles