refactor for streamlining
This commit is contained in:
7
tutorial/01-rust-hello/Cargo.lock
generated
Normal file
7
tutorial/01-rust-hello/Cargo.lock
generated
Normal 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"
|
||||
@@ -1,4 +1,4 @@
|
||||
[package]
|
||||
name = "step01_rust_hello_task"
|
||||
name = "rust_hello_task"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
@@ -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
|
||||
```
|
||||
BIN
tutorial/01-rust-hello/solution.06p5vxa3q8owanxdnt6b423l3.rcgu.o
Normal file
BIN
tutorial/01-rust-hello/solution.06p5vxa3q8owanxdnt6b423l3.rcgu.o
Normal file
Binary file not shown.
Binary file not shown.
@@ -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
BIN
tutorial/01-rust-hello/src/main
Executable file
Binary file not shown.
@@ -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.");
|
||||
}
|
||||
BIN
tutorial/01-rust-hello/src/solution
Executable file
BIN
tutorial/01-rust-hello/src/solution
Executable file
Binary file not shown.
Reference in New Issue
Block a user