I apologize if this is the wrong stream! But I'm looking for something to help me with an idea, which is to inline the transitive closure of all external functions and types' source code into a local directory, similar to what
cargo vendor does, but including only the "minimal" source code to support the usages in the client code you're writing. I see notes in here talking about how, eg, full-project symbol resolution is still not really there, but it still seems like RA would have the functionality within it to produce what I'm looking for.
The biggest problem is that rust-anlzyer analysis is not precise at the moment (there are a lot of bugs, as we share relatively little code with rustc at the moment, and we outright don't support proc macros), but I think doing some concervative approximation should be possible
what might work is considering a symbol unused if the name of the symbol is not used anywhere
yeah, if it were too aggressive about what it brought in, that wouldn't be the end of the world. In the limit worst case, it would be equivalent to a full compile, basically