Getting Started
Rust and Cargo
writing code
fn main(){ //main function
println!("hello"); //print statement
}compiling the code
rustc <filename>Cargo
making new project
cargo new <package name>For building the project
cargo build hello.rsFor checking the code but not making executable
cargo checkFor running the project
cargo run OR
./target/debug/hello_cargoLast updated
Was this helpful?
