-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meta feature tracking: Language server support for Cargo.toml
file
#15741
Comments
Cargo.toml
fileCargo.toml
file
My issue #10117 needs the needs-toml label. |
Thanks for the link, I added it to the list |
I want to point out that I am indirectly working on this issue. I am trying to implement a At the very least I will be making some changes to the core DBs of ra to distinguish |
@alibektas that sounds very cool! I think that Not that I expect RA would be editing |
👋 There are couple of things that I first need to look into before giving you an answer.
For the prototype your proposition seems to be the way to go, but this is just me speaking without having really looked at |
Fwiw, we most likely want to end up with a toml parser thats built on top of rowan, which kind of exist https://docs.rs/taplo/latest/taplo/ so we probably want to strip that down / adjust to our needs. |
@tgross35 👋 I think Veykril's reply answers the greater part of your question, but I think it comes down to determining how long it will take us to integrate the said taplo crate to RA. |
This is a feature I would really like to see. I was debating building a separate plugin to some of the features listed. Is this a feature that RA will accept into its code base? if So I would be interesting in starting to add it to RA? |
Definitely something we want to have, its just a lot of work and requires some other things to be done first, like creating / integrating a rowan based syntax library for toml -> #15908 |
This issue is an attempt to put all information regarding potential
Cargo.toml
support in one place.Blockers
There is no TOML support in RA, and needs a format-preserving parser.
toml-edit
is maintained along withtoml
and probably the best choice.Potential features
edition
,rust-version
,license
license-file
,readme
,build
crates
extension)dev-dependencies
/dependencies
/build-dependencies
"no-default-features
Cargo.toml
file #15741 (comment)Cargo.toml
from a use statement feature: from use statement, add crate to cargo.toml #10904crates
extension: Feature Request: Link to crates.io on hover in Cargo.lock and Cargo.toml #13532Even better TOML
does it well, but there are some good general suggestions in the issueSee also the label S-needs-tomlissue requiring toml support
The text was updated successfully, but these errors were encountered: