Rust - environment setup for windows

 

Install Windows WSL subsystem for linux. 

Install rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh


Create a new application using cargo 

cargo new guessing_game

then fire up vscode using the following command

cd guessing_game
code . 

Install the following extension 

- rust-analyzer 
- codellvm 





Then with vscode, go and look for main.rs.  As you hover over the main function, there's 2 options that appears, 1. run 2. debug 

You should add a breakpint and then click on debug











Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm