in documentaion there is not clear mention that why use cargo ? what is the need of cargo ?
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.
1 Like
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.
1 Like