The Rust Playground is an interactive website where you can compile and run Rust code directly in your browser. It's a great way to experiment with Rust and learn the language.
Cargo is Rust's package manager and build tool. It allows developers to easily manage dependencies, compile code, and build projects. With Cargo, developers can create new project templates, build, run, test, and check a project. They can also build documentation and publish libraries to crates.io. Cargo simplifies the process of managing dependencies and building Rust projects.
Every package we can found on Crates.io, it’s like npm or pub.dev.
crates.io: Rust Package Registry
Cargo does lots of things for you, including:
cargo new
command.cargo build
command.cargo run
command.cargo test
command.cargo check
command.cargo doc
command.