5 ms·
The new cargo add feature is a great QoL update.
by tempusr 4y ago
The new cargo add feature is a great QoL update.
- epage 4y agoFor 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%3Aissue+label%3ACommand-add 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
- pdimitar 4y agoThanks for your hard work! Any plans to add `cargo rm/remove` in the future? Or modifying the features in-place?
- cercatrova 4y agoYes, although there's no timeframe in place: https://old.reddit.com/r/rust/comments/vocp5k/announcing_rust_1620/iecf7kw/?context=99 https://old.reddit.com/r/rust/comments/vocp5k/announcing_rus...