Skip to main content

Crate proc_macro_api

Crate 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§

bidirectional_protocol
Bidirectional protocol methods
client
Definitions and operations for the proc macro client operated in rust-analyzer.
flat
Serialization-friendly representation of tt::TopSubtree.
legacy_protocol
The initial proc-macro-srv protocol, soon to be deprecated.
pool
A pool of proc-macro server processes
process
Handle process life-time and message passing for proc-macro client
token_stream
The proc-macro server token stream implementation.
transport
Contains construct for transport of messages.
version
The versions of the server protocol

Enums§

ProcMacroKind
Represents different kinds of procedural macros that can be expanded by the external server.
ProtocolFormat
Protocol format for communication between client and server.