about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/proc-macro-srv-cli
AgeCommit message (Collapse)AuthorLines
2025-07-31Add version command to proc-macro-srvLukas Wirth-8/+122
2025-07-31Reorganize proc-macro-srvLukas Wirth-4/+6
2025-07-31Properly clean proc-macro-srv proc-macro temp dirLukas Wirth-2/+9
2025-07-30Abtract away json protocol for proc-macro-srvLukas Wirth-16/+87
2025-06-12Support spans with proc macro servers from before the ast id changesChayim Refael Friedman-5/+2
The only thing changed is the value of the fixup ast id, so we just swap it.
2025-06-12Use stable AST IDsChayim Refael Friedman-2/+5
Instead of simple numbering, we hash important bits, like the name of the item. This will allow for much better incrementality, e.g. when you add an item. Currently, this invalidates the IDs of all following items, which invalidates pretty much everything.
2025-03-27chore: Remove salsa dependency from proc-macro server againLukas Wirth-0/+1
2025-03-23chore: Remove unused dependenciesLukas Wirth-0/+1
2025-03-15cargo fmtBenjaminBrienen-3/+5
2025-02-05Use interior mutability for loaded `ProcMacrorv::expanders`Lukas Wirth-6/+4
2025-01-02Store token trees in contiguous `Vec` instead of as a treeChayim Refael Friedman-2/+9
I expected this to be faster (due to less allocations and better cache locality), but benchmarked it is not (neither it is slower). Memory usage, however, drops by ~50mb (of `analysis-stats .`). I guess tt construction is just not hot. This also simplifies using even less memory for token trees by compressing equal span, which I plan to do right after. Some workflows are more easily expressed with a flat tt, while some are better expressed with a tree. With the right helpers, though (which was mostly a matter of trial and error), even the worst workflows become very easy indeed.
2024-12-30Move proc-macro protocol into legacy moduleLukas Wirth-1/+1
2024-12-30Decouple proc-macro server protocol from the server implementationLukas Wirth-51/+135
2024-12-13Do not require a special env var to be set for the proc-macro-srvLukas Wirth-41/+15
2024-12-12Fix clippy lints in proc-macro-srvLukas Wirth-1/+1
2024-08-06Replace `[package.repository] = "…"` of published crates with ↵Vincent Esche-1/+1
`[package.repository.workspace] = true`
2024-08-06Apply Veykril's change suggestionsVincent Esche-1/+1
2024-08-06Add repository URL for published crates' missing `[package.repository]` fieldsVincent Esche-0/+1
2024-08-06Replace `"TBD"` with more helpful desciptions in published crates' ↵Vincent Esche-1/+1
`[package.description]` fields
2024-06-30Abstract proc-macro-srv protocol formatLukas Wirth-4/+8
2024-06-30SimplifyLukas Wirth-3/+3
2024-06-30Actual dummy server for the server cliLukas Wirth-2/+28
2024-06-30Faster env snapshotting in proc-macro-srvLukas Wirth-1/+3
2024-04-21Allow rust files to be used linkedProjectsLukas Wirth-0/+102