Skip to content

KhangMBui/Weathering-With-Me

Repository files navigation

Rust: Entry Point


What is an entry point in Rust?

  • The entry point is where the execution of a Rust program starts.
  • The entry point in a Rust program is the main function, defined with the keyword 'fn main(),' in which 'fn' stands for for function, while 'main' is the name of the function.

Example:

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