Hacker News new | ask | show | jobs
by afinlayson 2369 days ago
Why do I need cargo to install on mac? (It would be nice to have a link to install)

Updated To install run: curl https://sh.rustup.rs -sSf | sh

4 comments

Cargo is Rust's build tool. You need cargo because you're building it from source.
Cargo isn't easily google-able ... I was hoping someone would link how to install it, instead of being sassy.

I figured it out.

It can be found here: https://doc.rust-lang.org/cargo/getting-started/installation...

You can install it easily by running this: curl https://sh.rustup.rs -sSf | sh

Very first result for "cargo tool programming"

https://binx.io/blog/2018/11/27/learning-cargo/

You're getting snark because your own snarky comment is the equivalent of saying "Why do I need Make to run it on the MacOS?" If you had asked instead, "What is cargo, and how do I install it?" you would get more helpful responses. Snark is met with snark.

And how people are supposed to know that it is a programming tool? I assumed that it is yet another package manager and googling about cargo brings results about logistics.

It took me a few tries before figuring it out. What worked was "Install cargo MacOS" and it was hard to tell if the results are not a scam to make me install some spyware.

You assumed right, Cargo is the Rust package manager
Because the author hasn't packaged it for you. Cargo is what you'll need to build this from source.
brew install rust