-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
easier way to add crates in cargo #6457
Comments
Welcome to Rust! You're looking for the https://github.com/killercup/cargo-edit/ extension of Cargo, which we'll on the way to merging into cargo proper. |
@dwijnand thanks! ^^, it's interesting to see what I'm requesting is being in the process of merging. can't wait to use it in cargo when its officially merged. |
You can track that effort in #5586, if you'd like. |
i will , thanks! 👍 |
This was referenced Jun 21, 2019
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem you are trying to solve
I'm new to
rust
and i came fromjavascript/nodejs
background,for me i use
npm
to install packages usingnpm install package_name
.as I was exploring
rust
i learnt aboutcargo
andcrates.io
.and i found that the way to install
crates
incargo
is through going tocrates.io
searching for the package then adding it manually tocargo.toml
.that takes lots of time when you wanna add crate(s) and therefore it impacts the developer's productivity.
Describe the solution you'd like
is it possible for this feature to be implemented in
cargo
as well?to run a command like
cargo add crate_name
or
cargo install crate_name
then
cargo
fetches thecrate_name
version adds it to thecargo.toml
file and finally adds thecrate
to the project?The text was updated successfully, but these errors were encountered: