start tutorial

This commit is contained in:
2026-03-08 19:41:38 +01:00
commit a48ba2963d
81 changed files with 1738 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# 01 - Rust Hello (5 min)
## Goal
Erstes lauffähiges Rust-Programm, das Daten über `println!` ausgibt.
## Run
- `bash scripts/run-step.sh 01 task`
## Tasks
1. Öffne `task/src/main.rs`.
2. Ersetze die TODO-Werte.
3. Starte erneut mit `cargo run`.
## Done when
1. Das Programm kompiliert.
2. Die Ausgabe enthält euren Namen und Workshop-Titel.

View File

@@ -0,0 +1,4 @@
[package]
name = "step01_rust_hello_solution"
version = "0.1.0"
edition = "2021"

View File

@@ -0,0 +1,8 @@
fn main() {
let participant_name = "Didacta Participant";
let workshop_title = "Rust on Embedded @ Didacta";
println!("Hello, {participant_name}!");
println!("Welcome to: {workshop_title}");
println!("Next step: types, control flow, and ownership.");
}

View File

@@ -0,0 +1,4 @@
[package]
name = "step01_rust_hello_task"
version = "0.1.0"
edition = "2021"

View File

@@ -0,0 +1,9 @@
fn main() {
// TODO: Replace these strings with your own values.
let participant_name = "Your Name";
let workshop_title = "Rust on Embedded @ Didacta";
println!("Hello, {participant_name}!");
println!("Welcome to: {workshop_title}");
println!("Next step: types, control flow, and ownership.");
}