Skip to content

42Wor/Rust-I-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust-I-learn

How to Run

  1. Open a terminal.

  2. Navigate to the project directory:

    cd /home/mm/Desktop/Rust-I-learn
  3. Compile and run the program using Cargo:

    cargo run

    If you are not using Cargo, you can compile and run your Rust program using rustc:

    rustc main.rs
    ./main

Common Commands

  • New project:

    cargo new <project_name>
  • Build the project:

    cargo build
  • Run the project:

    cargo run
  • Test the project:

    cargo test
  • Check the project for errors without building:

    cargo check
  • Add a dependency:

    cargo add <dependency-name>
  • Update dependencies:

    cargo update
  • Clean the project (remove build artifacts):

    cargo clean

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages