This comprehensive collection covers everything from the foundational basics to advanced techniques related to Rust Programming language. Rust is a modern systems programming language developed by the Mozilla Corporation. Rust can be installed in Windows/Linux, and it can also be run in the browser directly from the website Rust Playground
Creating your first Rust program
- First, create a folder. For e.g. let us take HelloWorld
mkdir HelloWorld
- Change the path
cd HelloWorld
- Create a rust file with extension rs and open it in Notepad/ Or you can directly open any text editor in Windows or Linux and save it as .rs extension.
notepad Hello.rs
- Write your Hello World program
fn main(){
println!("Hello world");
}
- Compile
rustc Hello.rs
- Executable file (Linux)
./Hello