Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 344 Bytes

hello_world.md

File metadata and controls

16 lines (11 loc) · 344 Bytes

Hello, World!

Rust files always end with the .rs extension and should use snake_case.

To compiler and run, we should:

rustc main.rs && ./main
  • rustc is used to compiler the code
  • rustfmt is used to format the code

Like C, Rust has a main function, that is always the first code that runs in every executable Rust program.