What is the @rustlang way to do *completely* custom stuff to the AST at compile time? Build script? Procedural macro? Compiler plugin?
-
-
By completely custom I'm talking about at the level of what a Babel.js plugin might do. Want to transform the AST and replace it with stuff
2 replies 0 retweets 0 likes -
Replying to @Sunjay03
It gives you a TokenStream not an AST but there will be libraries to give you one from a TokenStream
1 reply 0 retweets 1 like -
Replying to @rustlang
This is different from the custom derive stuff, right? So nightly only? Any docs I can look at?
1 reply 0 retweets 0 likes
Replying to @Sunjay03
Yes, custom derive is a subset. No docs yet as the initial impl is still landing
10:41 AM - 20 Jun 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.