https://github.com/sdsc-ordes/rust-workshop
Exercises to the rust-workshop
https://github.com/sdsc-ordes/rust-workshop
excercise-solution excercises rust rust-lang workshop workshop-materials
Last synced: 5 months ago
JSON representation
Exercises to the rust-workshop
- Host: GitHub
- URL: https://github.com/sdsc-ordes/rust-workshop
- Owner: sdsc-ordes
- Created: 2024-09-08T07:49:04.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-16T18:51:08.000Z (5 months ago)
- Last Synced: 2025-02-16T19:33:09.628Z (5 months ago)
- Topics: excercise-solution, excercises, rust, rust-lang, workshop, workshop-materials
- Language: Rust
- Homepage: https://sdsc-ordes.github.io/technical-presentation/gh-pages/rust-workshop/part-1
- Size: 3.86 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust Workshop
This repository contains exercises accompanied by the
[Rust Workshop Presentation](https://github.com/sdsc-ordes/technical-presentation/tree/feat/rust-workshop).**Presentation Slides:**
- [**Part 1**](https://sdsc-ordes.github.io/technical-presentation/gh-pages/rust-workshop/part-1)
- [**Part 2**](https://sdsc-ordes.github.io/technical-presentation/gh-pages/rust-workshop/part-2)(**Excercise Solution Branch:
here.**)[https://github.com/sdsc-ordes/rust-workshop/tree/feat/solutions]## Preliminaries
- Read the [setup guide](/docs/setup.md) and make sure you can compile the test
application.## Build & Test & Run Exercises
Any exercise has a small `README.md` with additional information to it.
To see all exercises use:
```shell
just list-exercises
```You can build any exercise in [`./exercises`](./exercises) with the tool `cargo`
by doing```shell
cd ./exercises/basic-syntax
cargo build
```Use `cargo test`, `cargo run` to test and run the executables in the small
exercise projects.> [!NOTE]
> An exercise might contain multiple executables:
> By default all are built. Use `--bin `
> to build a specific one, e.g. `cargo build --bin 01` in the above example.> [!TIP]
> Use the nicer `just` targets:
>
> ```shell
> just build [build|test|check|run] [add-cargo-args...]`
> ```
>
> so you can do
>
> ```shell
> just build basic-syntax --bin 01
> ```
>
> or
>
> ```shell
> just watch [build|test|check|run] basic-syntax --bin 01
> ```
>
> to **continuously build/test/run** any exercise.## Solutions
The solutions to most exercises are on the branch `feat/solutions` and you can
simply use `git diff HEAD...feat/solution -- ` where `` is the path
to a Rust file you are interested in looking at the solution.## Acknowledgment
Special thanks to [teach-rs](https://github.com/trifectatechfoundation/teach-rs)
for providing exercises and slides which this whole workshop is based on.Also some parts have been taken from
[comprehensive-rust](https://google.github.io/comprehensive-rust/). This course
is more tailored towards C/C++ intermediates.