112 releases
0.0.149 | Jan 16, 2023 |
---|---|
0.0.145 | Dec 26, 2022 |
0.0.141 | Nov 28, 2022 |
0.0.122 | Jul 25, 2022 |
0.0.26 | Nov 30, 2020 |
#262 in Procedural macros
1,351 downloads per month
Used in 5 crates
(3 directly)
340KB
7.5K
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
~6–12MB
~217K SLoC