Getting started with a new RUST project using cargo

 Basic use of 'cargo' in RUST programming language

When installing RUST, cargo, the recommended tool for structuring your RUST project,  should be installed by default and to use the cargo command line tool do the following:

Navigate to the location you wish to create your new RUST project:


Create the new RUSt project's folder (make sure to have no spaces in the name):


Now the folder(tutorial_cargo or however you named your project) should have been created and contains the following:


And the src folder contains 'main.rs' with a simple 'Hello World' program and modifying main.rs is where you start your new RUST program!

Comments

Popular posts from this blog