Skip to content

XadillaX/hello-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hello Rust

Rust files always end in a .rs extension. If you're using more than one word in your filename, use an underscore. hello_world.rs rather than helloworld.rs.

Now that you've got your file open, type this in:

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

Save the file, and then type this into your terminal window:

$ rustc main.rs
$ ./main # or main.exe on Windows
Hello, world!

About

Hello Rust!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages