Newbie error.. I kept getting an error : unused manifest key: package.rand even though I included the following: rand = "0.8.3" My error was the location of where I added…
Source: https://doc.rust-lang.org/book/ch02-00-guessing-game-tutorial.html Here's the cheatsheet and summary of the rust tutorial (source) $ cargo new myproj $ cd myproj $ vi src/main.rs # to edit $ cargo run file: main.rs…
This is my rust installation cheatsheet create a new rust file, compile, and run executablecreate a rust project using Cargo, compile, check and run executable RUST file : manually you…
Cheatsheet for rust installation for MacOS // installing rust $ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh // updating $ rustup update // installing c++ compiler if not installed…