This is a simple "Hello, World!" program written in Rust. It serves as a minimal example to help you get started with Rust programming.
Before you begin, ensure that you have Rust installed on your system. If not, you can install it by following the instructions on the official Rust website: https://www.rust-lang.org/tools/install
- Clone or download this repository to your local machine.
git clone https://github.com/brunolnetto/rust-hello.git
- Navigate to the project directory:
cd rust-hello
-
Open the src/main.rs file in your preferred text editor.
-
Replace the contents of main.rs with the following code:
fn main() {
println!("Hello, World!");
}
-
Save the file.
-
Build and run the program using the following commands:
cargo build
cargo run
You should see the "Hello, World!" output in the console.
If you find any issues with the code or have suggestions for improvement, feel free to open an issue or create a pull request. License
This "Hello, World!" program is open-source and available under the MIT License.