Rust Cheat Sheet
1. SETUP: # Install Rust curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh # Check version rustc –version # Create new project cargo new my_project cd my_project # Build and run cargo build cargo run 2. BASICS: fn main() { println!(“Hello, world!”); // Print let x = 5; // Immutable variable let mut y =…