112 releases

0.0.149 Jan 16, 2023
0.0.145 Dec 26, 2022
0.0.141 Nov 28, 2022
0.0.122 Jul 25, 2022
0.0.26 Nov 30, 2020

#262 in Procedural macros

Download history 509/week @ 2022-12-02 560/week @ 2022-12-09 448/week @ 2022-12-16 320/week @ 2022-12-23 394/week @ 2022-12-30 462/week @ 2023-01-06 390/week @ 2023-01-13 452/week @ 2023-01-20 436/week @ 2023-01-27 945/week @ 2023-02-03 606/week @ 2023-02-10 774/week @ 2023-02-17 420/week @ 2023-02-24 301/week @ 2023-03-03 307/week @ 2023-03-10 283/week @ 2023-03-17

1,351 downloads per month
Used in 5 crates (3 directly)

MIT/Apache

340KB
7.5K SLoC

RA Proc Macro Server

This library is able to call compiled Rust custom derive dynamic libraries on arbitrary code. The general idea here is based on https://github.com/fedochet/rust-proc-macro-expander.

But we adapt it to better fit RA needs:

  • We use tt for proc-macro TokenStream server, it is easier to manipulate and interact with RA than proc-macro2 token stream.
  • By copying the whole rustc lib_proc_macro code, we are able to build this with stable rustc rather than unstable. (Although in general ABI compatibility is still an issue)…

Dependencies

~6–12MB
~217K SLoC