Check out example codes for "rustlang how to run a program". It will help you in understanding the concepts better.
Code Example 1
find your main.rs file in the source directory using the command line Type "main" (without the quotation marks) into the terminal and press enter
Learn ReactJs, React Native from akashmittal.com