This is the source code of the traditional Hello World program.


println! is a macro that prints text to the console.

A binary can be generated using the Rust compiler: rustc.

$ rustc

rustc will produce a hello binary that can be executed.

$ ./hello Hello World!


Click 'Run' above to see the expected output. Next, add a new line with a second println! macro so that the output shows:

Hello World! I'm a Rustacean!
Belt Belt Army Black Knife for Victorinox with 31 4 Pouch 0520 Swiss Clip Rotating fwB1A0T