What is Cargo Package Manager?
Cargo is a Rust package manager for managing packages. It also act as a build tool to compile and build Rust code.
It allows to easily use packages(also called crate) from crates.io. It is an public repository to host an crates, These are published by other users.
Developers simply add the crate name and version in configuraiton file, Cargo will download and install it.
It is Similar to npm in NodeJS, compose in Php.
It does following things
- Download packages from the network
- Compile & Build packages
- Test packages
- Publish packages or libraries to Crate.io for share or reusing
- Provide Workspace to manage multiple packages in Larger projects
- Customize build throw profiles
- Create a Rust project