Please Explain cargo ...!


#1

in documentaion there is not clear mention that why use cargo ? what is the need of cargo ?


#2

See https://doc.rust-lang.org/stable/book/hello-cargo.html

Cargo manages three things: building your code, downloading the dependencies
your code needs, and building those dependencies.


#3

Then website named crates.io has a large number of libraries that you can use in your code. Cargo is a tool for downloading these libraries, and compiling them with your code.