Skip to content

Commit

Permalink
Auto merge of #15534 - rust-lang:Veykril-patch-1, r=Veykril
Browse files Browse the repository at this point in the history
Update architecture.md
  • Loading branch information
bors committed Aug 30, 2023
2 parents b06503b + ea74cc4 commit 3213344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dev/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ They are independent from the rest of the code.
And it also handles the actual parsing and expansion of declarative macro (a-la "Macros By Example" or mbe).

For proc macros, the client-server model are used.
We pass an argument `--proc-macro` to `rust-analyzer` binary to start a separate process (`proc_macro_srv`).
We start a separate process (`proc_macro_srv`) which loads and runs the proc-macros for us.
And the client (`proc_macro_api`) provides an interface to talk to that server separately.

And then token trees are passed from client, and the server will load the corresponding dynamic library (which built by `cargo`).
Expand Down

0 comments on commit 3213344

Please sign in to comment.