Skip to main content

Hello-World

Coding first

  1. Use an editor that you like. Here I use Cursor with rust-analyzer
  2. Create a file named hello_world.rs, then under the terminal, run rustc hello_world.rs
fn main() {
println("Hello, world!");
}

After the compilation, you will see a binary file hello_world, which is Rust's build file. Just run the file like this ./hello_world

rust build

Things to Keep in Mind