This repository contains various Rust programs, designed to showcase different features of the Rust programming language. Each program is built and managed using Cargo, the Rust package manager.
Before running any of the Rust programs, ensure that you have the following installed:
- Rust: You can install Rust using rustup.
- Cargo: Cargo is the package manager that comes bundled with Rust.
To verify that Rust and Cargo are installed, run the following commands:
rustc --version
cargo --version
## Installation
1. Clone the repository:
```bash
git clone https://github.com/MohsinAliSolangi/rust_programs.git-
Navigate into the project directory:
cd rust_programs -
Build the program:
cargo build
-
Run the program:
cargo run
To create a new Rust program within the repository, follow these steps:
-
Use Cargo to create a new project:
cargo new program_name
-
Navigate into the new program's directory:
cd program_name -
Build and run the program:
cargo build cargo run
Each program in this repository is a standalone Rust application. You can navigate to the individual program folders and run the following commands to build and execute the program:
cargo build
cargo run- Rust: The primary programming language used in this repository.
- Cargo: Rust’s package manager and build system.
This project is licensed under the MIT License.
For any questions, feedback, or inquiries, feel free to reach out to Mohsin Ali Solangi. You can connect via the following platforms:
🌐 Linktree: Mohsin Ali Solangi
🔗 LinkedIn: Mohsin Ali Solangi
Looking forward to hearing from you! 😄