blob: 926ea7c8979219a88bac6f0250f63456c51602c4 [file] [log] [blame] [view]
This is the source code of the traditional Hello World program.
{hello.play}
`println!` is a *macro* (we'll cover them later) that prints text to the
console.
A binary can be generated using the rust compiler: `rustc`.
```
$ rustc hello.rs
```
`rustc` will produce a `hello` binary that can be executed.
```
$ ./hello
Hello World!
```