// Install Windows prerequisites, Git, Zed and Rust (cargo, rustc and rustup) // // Git is a version control system designed to track changes in code and files over time. // Created by Linus Torvalds in 2005. Git is distributed. // This means every developer has a full copy of the project's history directly on their local machine, // allowing them to work entirely offline. // // Zed is a high-performance, open-source code editor with built-in AI integration. // Written from scratch in Rust, Zed uses GPU acceleration and runs like a video game rather than a web browser // and is not as clunky and compute intensive as the "industry standard" Microsoft VSCode. // // Rust is a general-purpose programming language matching or exceeding C++ level bare-metal performance // while mathematically guaranteeing no memory leaks (major problem with C/C++) // // Rust has 3 main components: // Rustup - installer and version manager // Cargo - build tool and package manager (handles everything) // Rustc - compiler - converts human language to machine code (binary) and ads libraries and checks for memory leaks // // Winget (Windows Package Manager) works like package managers on Linux (such as apt). // It saves you from visiting different websites to download, install, or update software manually. // -e --exact name match // -s --source (avoid Ms Store and other repos - winget source list) > winget install --id Microsoft.VisualStudio.2022.BuildTools -e -s winget --override "--passive --wait --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended" > winget install --id Git.Git -e -s winget > winget install --id ZedIndustries.Zed -e -s winget > winget install --id Rustlang.Rustup -e -s winget Close and reopen PowerShell or CMD (so it registers path changes) Test everything: > git --version > zed --version > rustup --version > cargo --version Set unique Git identity (need for committing changes to code): > git config --global user.name "Your Name" > git config --global user.email "your.email@example.com" Test: > git config --global --list > Make a dedicated folder (ex. \robotics\code) > cd \robotics\code Clone 97140 repo: > git clone https://github.com/KennedyGaels/97140.git > select "Sign in with your browser" > user: KennedyGaels > pass: gaelteam16 Add the cargo-v5 upload utility: // Ads ability for cargo to talk to v5 brain (needs nightly builds) > rustup override set nightly Close and reopen PowerShell or CMD (so it registers path changes) > rustup component add rust-src > cargo install cargo-v5 Create new project: > cd \robotics\code\******* > cargo v5 new your_project_name> Open project in Zed by navigating to folder. Open console. cargo test --all (will test and update everything) DONE!