🧠What I Practiced/Learned/Discovered
- Build and run a project in Rust (I’ve learned some Rust few months ago but I forgot about the build and run process)
🔧 Tools used
Programming language
Rustcargo
Steps
- Opened the file
main.rsand read the code :- In the comments something said that sometimes we need to perform unsafe operations even with memory safe languages like Rust
- Under that comment was an unsafe operation
- But the key word
unsafe {was commented and the closing tag too
- De-commented
unsafe {and}then saved the file - Run :
cargo buildto build the executable - Run
cargo runand the flag was printed