An open API service indexing awesome lists of open source software.

https://github.com/isaka-james/rust-projects

This repository contains beginners, intermediate and advanced rust projects, feel free to contribute!
https://github.com/isaka-james/rust-projects

bootcamp bootcamp-workshop learn-rust learn-to-code learning-by-doing rust rust-lang rust-programs training-materials

Last synced: 6 months ago
JSON representation

This repository contains beginners, intermediate and advanced rust projects, feel free to contribute!

Awesome Lists containing this project

README

          

# πŸ¦€ Rust BootCamp πŸ†


since 21 Feb,2024

*This GitHub repository is your Rust programming playground, no matter your skill level! Beginners can start with easy programs to learn the ropes. Intermediate coders can tackle trickier problems to test their knowledge. And for the Rust experts, there are complex programs to push your limits. But it's more than just exercises! Share your own programs, challenge others, and learn together as a team.*

So come explore the world of Rust - it's fast, safe, and lets you write awesome code! ️✨

#### Windows:

1. **Download Installer:**
- πŸ“₯ Go to the Rust website: [Rust Website](https://www.rust-lang.org/tools/install).
- πŸ–±οΈ Click to get the installer for Windows.

2. **Run Installer:**
- πŸ’» Double-click the installer you downloaded.
- πŸ”„ Follow the steps shown on the screen.
- πŸ› οΈ Rustup, Rust's tool manager, will install with Rust.

#### Linux:

1. **Using Rustup:**
- 🐧 Open your terminal.
- ⌨️ Put this in the terminal and press enter:
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
- πŸ“‹ Follow the directions on your screen.
- πŸ› οΈ Rustup will get Rust and take care of it for you.
> ![Rust Logo](https://github.com/isaka-james/rust-projects/assets/76619967/bbd477aa-55f8-4e05-92ef-32da673faf22)

2. **Environment Variable**:
- πŸ”§ You need to add rustc to your environment variables.
> ![Rust Logo](https://github.com/isaka-james/rust-projects/assets/76619967/eaadeba1-1aa5-4c6c-8922-5f39f5936a38)

3. **Install Cargo**:
> ![Rust Logo](https://github.com/isaka-james/rust-projects/assets/76619967/9f16125f-9b92-461f-98c1-a41f5c62c22f)

### Running Rust Projects:

#### Using `rustc`:

1. **Compilation:**
- πŸ–₯️ Open your terminal and go to your project folder.
- πŸ“ Type this command, replacing `your_file.rs` with your file's name:
```bash
rustc your_file.rs
```
- πŸš€ This makes an executable file named `your_file`.

2. **Execution:**
- πŸƒβ€β™‚οΈ After it compiles without errors, run this in the terminal:
```bash
./your_file
```

#### Using Cargo:

1. **Creating a New Project:**
- πŸ–₯️ Open your terminal.
- πŸ“ Type this to make a new Rust project:
```bash
cargo new my_project
```
- πŸ“‚ This creates a new folder called `my_project` with stuff inside.

2. **Navigating to Your Project:**
- πŸšΆβ€β™‚οΈ Go into your project folder:
```bash
cd my_project
```

3. **Writing Code:**
- ✍️ Use a text editor to open `src/main.rs`.
- πŸ“ Write your Rust code here.

4. **Running Your Project:**
- πŸƒβ€β™‚οΈ Type this to build and run your Rust project:
```bash
cargo run
```
- 🚚 Cargo handles everything for you, like getting what your project needs and running it.