Hacker News new | ask | show | jobs
by tempusr 1456 days ago
The new cargo add feature is a great QoL update.
1 comments

For those unaware, some ask "why"

- No need to look up the version (though some IDEs do it for you)

- Auto-completion

- It shows you what features the crate has and whether they are activated, making it easier to discover features you need to enable or what you can remove to improve compile times

- Make it easier to document how to add a set of dependencies needed for a project (e.g. "Run `cargo add serde serde_json -F serde/derive`")

- The opportunity for more QoL improvements, see https://github.com/rust-lang/cargo/issues?q=is%3Aopen+is%3Ai...

It is impressive the amount of work it took to get this ready. I took over the effort almost a year ago and at times was working full time on it (thanks to my employer). Just my part included

- a near rewrite of the format-preserving toml parser (toml_edit)

- a major revamp of the UI

- a major revamp of testing

- a near rewrite to make it compatible with cargo's code base

Thanks for your hard work!

Any plans to add `cargo rm/remove` in the future? Or modifying the features in-place?

Yes, although there's no timeframe in place: https://old.reddit.com/r/rust/comments/vocp5k/announcing_rus...