diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2023-08-30 19:53:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-30 19:53:47 +0200 |
| commit | ea74cc4b9a159087177506fecc1ce900468a0ef1 (patch) | |
| tree | c3e317dc9c11c8d84271eeb4471a14e280c4efcb /docs/dev | |
| parent | b06503b6ec98c9ed44698870cbf3302b8560b442 (diff) | |
| download | rust-ea74cc4b9a159087177506fecc1ce900468a0ef1.tar.gz rust-ea74cc4b9a159087177506fecc1ce900468a0ef1.zip | |
Update architecture.md
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/architecture.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/dev/architecture.md b/docs/dev/architecture.md index 895de5798ac..b7d585cafb3 100644 --- a/docs/dev/architecture.md +++ b/docs/dev/architecture.md @@ -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`). |
