157 releases

new 0.0.215 May 13, 2024
0.0.213 Apr 29, 2024
0.0.207 Mar 25, 2024
0.0.190 Dec 18, 2023
0.0.26 Nov 30, 2020

#359 in Procedural macros

Download history 8/week @ 2024-01-21 9/week @ 2024-01-28 8/week @ 2024-02-04 22/week @ 2024-02-11 143/week @ 2024-02-18 1521/week @ 2024-02-25 181/week @ 2024-03-03 201/week @ 2024-03-10 228/week @ 2024-03-17 152/week @ 2024-03-24 291/week @ 2024-03-31 270/week @ 2024-04-07 170/week @ 2024-04-14 159/week @ 2024-04-21 159/week @ 2024-04-28 167/week @ 2024-05-05

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

MIT/Apache

80KB
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–19MB
~234K SLoC