31 releases

new 0.0.39 Feb 22, 2021
0.0.38 Feb 15, 2021
0.0.35 Jan 25, 2021
0.0.30 Dec 28, 2020
0.0.13 Aug 31, 2020

#150 in Procedural macros

Download history 132/week @ 2020-11-07 92/week @ 2020-11-14 70/week @ 2020-11-21 89/week @ 2020-11-28 160/week @ 2020-12-05 73/week @ 2020-12-12 51/week @ 2020-12-19 82/week @ 2020-12-26 42/week @ 2021-01-02 26/week @ 2021-01-09 124/week @ 2021-01-16 1674/week @ 2021-01-23 2457/week @ 2021-01-30 1601/week @ 2021-02-06 1943/week @ 2021-02-13 1265/week @ 2021-02-20

2,998 downloads per month
Used in 2 crates (via ra_ap_rust-analyzer)

MIT/Apache

140KB
3K SLoC


lib.rs:

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.5MB
~144K SLoC