158 releases
new 0.0.216 | May 20, 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 |
#292 in Procedural macros
642 downloads per month
Used in 2 crates
(via ra_ap_proc-macro-srv-cli)
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-macroTokenStream
server, it is easier to manipulate and interact with RA thanproc-macro2
token stream. - By copying the whole rustc
lib_proc_macro
code, we are able to build this withstable
rustc rather thanunstable
. (Although in general ABI compatibility is still an issue)…
Dependencies
~9–19MB
~231K SLoC