Rust is a systems programming language designed for performance, safety, and concurrency.
It was created from the ground up with a focus on preventing common errors errors like null pointer dereferencing, data races, and buffer overflows to happen.
- Operating Systems
- Device Drivers
- Web Servers
- Scientific Computing
- Gaming
-
Safe memory management without garbage collection
-
Strong support for concurrency and parallelism
-
High performance
-
Expressiveness and powerful abstractions
-
Built-in cross platform support
-
Growing community and ecosystem
Cargo is the package manager and build system for Rust. It is an integral part of the Rust programming language ecosystem.
cargo new --bin <project name> # Create a new binary project.
cargo new --lib <project name> # Create a new library project.
Manage it with git!
cargo build # Build in debug mode.
cargo build --release # Build in release mode.
cargo run # Build and run in debug mode.
cargo run --release # Build and run in release mode.
cargo test # Run tests in debug mode.
cargo test --release # Run tests in release mode.
cargo fmt # Format the code.
cargo clippy # Lint the code.