mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
ceba289f80
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.
27 lines
589 B
TOML
27 lines
589 B
TOML
[package]
|
|
name = "proc-macro-srv-cli"
|
|
version = "0.0.0"
|
|
repository.workspace = true
|
|
description = "A standalone binary for the `proc-macro-srv` crate of rust-analyzer."
|
|
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[dependencies]
|
|
proc-macro-srv.workspace = true
|
|
proc-macro-api.workspace = true
|
|
tt.workspace = true
|
|
|
|
[features]
|
|
sysroot-abi = ["proc-macro-srv/sysroot-abi"]
|
|
in-rust-tree = ["proc-macro-srv/in-rust-tree", "sysroot-abi"]
|
|
|
|
|
|
[[bin]]
|
|
name = "rust-analyzer-proc-macro-srv"
|
|
path = "src/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|