168 releases

new 0.0.226 Jul 22, 2024
0.0.222 Jun 24, 2024
0.0.207 Mar 25, 2024
0.0.190 Dec 18, 2023
0.0.26 Nov 30, 2020

#243 in Procedural macros

Download history 378/week @ 2024-04-02 194/week @ 2024-04-09 162/week @ 2024-04-16 146/week @ 2024-04-23 179/week @ 2024-04-30 155/week @ 2024-05-07 198/week @ 2024-05-14 211/week @ 2024-05-21 186/week @ 2024-05-28 217/week @ 2024-06-04 330/week @ 2024-06-11 159/week @ 2024-06-18 162/week @ 2024-06-25 155/week @ 2024-07-02 142/week @ 2024-07-09 144/week @ 2024-07-16

714 downloads per month
Used in 2 crates (via ra_ap_proc-macro-srv-cli)

MIT/Apache

89KB
2K 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

~9–18MB
~226K SLoC