This is a simple Rust program that prints "Hello, World!" to the console.
- Rust programming language (installed on your system)
- Open a terminal and navigate to the directory where the code is located (
/hello_rs
). - Run the following command to compile the code:
rustc hello.rs
- After successful compilation, an executable file named
hello
will be generated in the same directory.
- Open a terminal and navigate to the directory where the code is located (
/hello_rs
). - Run the following command to execute the program:
./hello
- You should see the output
Hello, World!
printed to the console.
This project is licensed under the MIT License - see the LICENSE file for details.