Expand description
Defines messages for cross-process message passing based on ndjson
wire protocol
Structs§
- Expand
Macro - Represents a macro expansion request sent from the client.
- Expand
Macro Data - Represents the input data required for expanding a macro.
- Expand
Macro Extended - Represents an extended macro expansion response, including span data mappings.
- Expn
Globals - Represents global expansion settings, including span resolution.
- Flat
Tree - Panic
Message - Represents an error message when a macro expansion results in a panic.
- Server
Config - Configuration settings for the proc-macro-srv.
- TokenId
- Legacy span type, only defined here as it is still used by the proc-macro server. While rust-analyzer doesn’t use this anymore at all, RustRover relies on the legacy type for proc-macro expansion.
Enums§
- Request
- Represents requests sent from the client to the proc-macro-srv.
- Response
- Represents responses sent from the proc-macro-srv to the client.
- Span
Mode - Defines the mode used for handling span data.
Constants§
- CURRENT_
API_ VERSION - Current API version of the proc-macro protocol.
- ENCODE_
CLOSE_ SPAN_ VERSION - EXTENDED_
LEAF_ DATA - Whether literals encode their kind as an additional u32 field and idents their rawness as a u32 field.
- HAS_
GLOBAL_ SPANS - NO_
VERSION_ CHECK_ VERSION - RUST_
ANALYZER_ SPAN_ SUPPORT - VERSION_
CHECK_ VERSION