Skip to content

trouchet/rust-hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Hello, World! Program

This is a simple "Hello, World!" program written in Rust. It serves as a minimal example to help you get started with Rust programming.

Prerequisites

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

Getting Started

  1. Clone or download this repository to your local machine.
git clone https://github.com/brunolnetto/rust-hello.git
  1. Navigate to the project directory:
cd rust-hello
  1. Open the src/main.rs file in your preferred text editor.

  2. Replace the contents of main.rs with the following code:

fn main() {
    println!("Hello, World!");
}
  1. Save the file.

  2. Build and run the program using the following commands:

Build the project

cargo build

Run the compiled executable

cargo run

You should see the "Hello, World!" output in the console.

Contributing

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.

About

A 'hello world' program in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages