Crate ra_ap_proc_macro_api
source ·Expand description
Client-side Proc-Macro crate
We separate proc-macro expanding logic to an extern program to allow different implementations (e.g. wasm or dylib loading). And this crate is used to provide basic infrastructure for communication between two processes: Client (RA itself), Server (the external program)
Modules§
- Defines messages for cross-process message passing based on
ndjson
wire protocol
Structs§
- A handle to a specific macro (a
#[proc_macro]
annotated function). - A handle to an external process which load dylibs with macros (.so or .dll) and runs actual macro expansion functions.
Enums§
Functions§
- Read rustc dylib information
- Check the version of rustc that was used to compile a proc macro crate’s binary file.