Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/albertobasalo/rs-lab
🦀 Rust 🔬🧫🧪 Laboratory
https://github.com/albertobasalo/rs-lab
laboratory rust rust-lang
Last synced: 19 days ago
JSON representation
🦀 Rust 🔬🧫🧪 Laboratory
- Host: GitHub
- URL: https://github.com/albertobasalo/rs-lab
- Owner: AlbertoBasalo
- Created: 2024-01-20T09:47:30.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-23T15:50:37.000Z (8 months ago)
- Last Synced: 2024-04-23T17:04:52.542Z (8 months ago)
- Topics: laboratory, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 171 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust laboratory
> [!NOTE]
> [Rust samples repository](https://github.com/AlbertoBasalo/rs-lab) for courses and workshops by [Alberto Basalo](https://albertobasalo.dev)![Rust Image](rust.jpg)
## Instructions
This repository contains the samples and exercises for the Rust laboratory. Each lesson is in a separate folder. The main file is `main.rs` and the `Cargo.toml` file is the configuration file for the project. Clone the repository and navigate to the lesson you want to run.
```bash
git clone https://github.com/AlbertoBasalo/rs-lab.git
cd rs-lab
```To run the samples, you need to have [Rust installed](https://www.rust-lang.org/tools/install). Then, you can follow the basic steps for each lesson:
## Lesson 1
- Sample: [Hello world in rust using basic types](https://github.com/AlbertoBasalo/rs-lab/blob/main/1-hello/src/main.rs)
```bash
cd 1-hello
cargo run
```- Article: [Hello Rust](https://medium.com/@albertobasalo/hello-rust-34f2da7ed380)
- En Español: [Hola Rust](https://albertobasalo.hashnode.dev/hola-rust)
## Lesson 2
- Sample [ATM program using algorithms and data structures](https://github.com/AlbertoBasalo/rs-lab/blob/main/2-programs/src/main.rs)
```bash
cd 2-programs
cargo run 595
```- Article: [Rust programs](https://albertobasalo.medium.com/rust-programs-262c1409b6c8))
- En Español: [Programas Rust](https://albertobasalo.hashnode.dev/programas-rust))
## Lesson 3
- Sample: [Caesar cipher program using functions](https://github.com/AlbertoBasalo/rs-lab/blob/main/3-functions/src/main.rs)
```bash
cd 3-functions
cargo run example.txt key
```- Article: [Rust functions]()
- En Español: [Funciones Rust]()
## Lesson 4
- Sample: [A simple Blockchain using traits](https://github.com/AlbertoBasalo/rs-lab/blob/main/4-traits/src/main.rs)
```bash
cd 4-traits
cargo run
```- Article: [Rust traits]()
- En Español: [Traits en Rust]()
---
🧑🏼💻 By Alberto Basalo