Hi! I have a quick question, is the RLS name resolution anywhere close to usuable as a library? Or is it too tied into the RLS internals?
really, I only need to resolve
Items (function names, type / constructors, etc)
RLS uses rustc's name resolution, rust-analyzer does it in its
hir_def crate, which currently is relatively closely tied to its internals
https://github.com/rust-analyzer/rust-analyzer/issues/5922 tracks refactoring it to make it more architecture-independent
huh i cant believe i hadn't heard of
I'm not sure if the info it provides is enough but it might work....
that RA issue seems super interesting
though in either case I need to also get the types for the names once I've resolved them so I might just be stuck with talking directly to rustc
@Xavier Denis You can use the rust-analyzer hir as lib to resolve stuff. All these crates are being published and
cargo-modules is a good example