154 releases

new 0.0.212 Apr 22, 2024
0.0.207 Mar 25, 2024
0.0.190 Dec 18, 2023
0.0.187 Nov 27, 2023
0.0.26 Nov 30, 2020

#311 in Procedural macros

Download history 20/week @ 2024-01-10 10/week @ 2024-01-17 9/week @ 2024-01-24 8/week @ 2024-01-31 13/week @ 2024-02-07 128/week @ 2024-02-14 395/week @ 2024-02-21 1308/week @ 2024-02-28 190/week @ 2024-03-06 207/week @ 2024-03-13 196/week @ 2024-03-20 169/week @ 2024-03-27 363/week @ 2024-04-03 187/week @ 2024-04-10 137/week @ 2024-04-17

874 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–20MB
~231K SLoC