Note
Rust samples repository for courses and workshops by Alberto Basalo
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.
git clone https://github.com/AlbertoBasalo/rs-lab.git
cd rs-lab
To run the samples, you need to have Rust installed. Then, you can follow the basic steps for each lesson:
cd 1-hello
cargo run
-
Article: Hello Rust
-
En Español: Hola Rust
cd 2-programs
cargo run 595
-
Article: Rust programs)
-
En Español: Programas Rust)
cd 3-functions
cargo run example.txt key
-
Article: Rust functions
-
En Español: Funciones Rust
- Sample: A simple Blockchain using traits
cd 4-traits
cargo run
-
Article: Rust traits
-
En Español: Traits en Rust