-
Notifications
You must be signed in to change notification settings - Fork 257
Use Cargo in-process via API #82
Comments
The (easier?) alternative is to add an option to |
Yep, there is a plan to output information about the build in the JSON format: rust-lang/cargo#3212. I personally don't quite like linking Cargo into the RLS: Cargo is just a build tool, what if you are using a bunch of makefiles for your project? It might help short term, but exposing an internal API will have long term consequences :) Ideally, RLS should just invoke |
What if you are using a bunch of makefiles for your project?... 😲 Not that I am advocating rls caters to the makefile scenario, quite the contrary (it shouldn't) - I'm just confused because you seem to be directly contradicting yourself in those two paragraphs. |
Yep, it is indeed a bit contradictory on the first look :) The trick is that |
@matklad ah okay... yeah, that makes much more sense. :) |
Long term, we should not be tied to Cargo and should handle any build system (and we've been designing the underlying code with that in mind). However, for the foreseeable future I think it makes sense to focus on Cargo since that is so prevalent in the ecosystem. With that in mind, we should basically not worry about the non-Cargo case for now in the 'front' of the RLS. |
This should be more efficient and less hacky. I imagine we'll want to add a fair amount of API to Cargo to make this happen and we should do a little planning about exactly what we want that to look like.
cc #81
The text was updated successfully, but these errors were encountered: