Rust Hello World

www.igi‮c.aeditf‬om

Here's a simple "Hello, World!" program in Rust:

fn main() {
    println!("Hello, World!");
}

This program defines a function called main which is the entry point of the program. The println! macro is used to print the string "Hello, World!" to the console.

To run this program, you can save it to a file with a .rs extension (for example, hello_world.rs), and then use the Rust compiler to compile it into an executable:

$ rustc hello_world.rs

This will create an executable file called hello_world, which you can run by typing:

$ ./hello_world
Hello, World!