refactor for streamlining

This commit is contained in:
2026-03-11 13:59:56 +01:00
parent a48ba2963d
commit 3112d15eec
91 changed files with 207 additions and 845 deletions

7
tutorial/01-rust-hello/Cargo.lock generated Normal file
View File

@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "rust_hello_task"
version = "0.1.0"

View File

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

View File

@@ -1,20 +1,15 @@
# 01 - Rust Hello (5 min)
## Goal
# 01 - Rust Hello
Erstes lauffähiges Rust-Programm, das Daten über `println!` ausgibt.
## Run
- `bash scripts/run-step.sh 01 task`
```bash
cd src/
rustc main.c
./main.c
```
## 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.
```bash
cargo run
```

View File

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

BIN
tutorial/01-rust-hello/src/main Executable file

Binary file not shown.

View File

@@ -3,7 +3,8 @@ fn main() {
let participant_name = "Your Name";
let workshop_title = "Rust on Embedded @ Didacta";
println!("Hello, {participant_name}!");
println!("Welcome to: {workshop_title}");
// TODO: Insert the strings in the output
println!("Hello, TODO !");
println!("Welcome to: TODO");
println!("Next step: types, control flow, and ownership.");
}

Binary file not shown.