Welcome to the Rust workshop. In this workshop, you'll experience how powerful Rust is and what it takes to build applications with this programming language.
In this tutorial, you will learn how to build a command-line utility. We will work with a command-line parser, REST clients, and more.
Before you begin, we recommend reading the introduction below. During the workshop, we'll talk you through the introduction to give you a more interactive experience.
In the introduction, we explain how Rust works and help you start quickly with a few concepts. This is not a a complete explanation of the language, but certainly useful for taking the first steps!
- Why should you learn Rust?
- Learning the basics of Rust
- Memory management in Rust
- Pattern matching
- Working with structs and traits
Done reading? Get started here.
The tutorial covers the basics of Rust. You can choose between a completely self-guided experience and a step-by-step instruction-based approach. Whatever you choose, we're here to help, and we hope you enjoy the ride!
If you're just interested in the final product, you can check out the sample in this directory: You can also check out the code for the REST API here: https://github.com/infosupport/rust-workshop/tree/main/rest-api
To make setting up the development environment easier, we have provided a dev container configuration with Rust preconfigured. Follow the steps below to use the dev container:
- Install Docker on your machine if you haven't already.
- Open the project in Visual Studio Code.
- Install the "Remote - Containers" extension in Visual Studio Code.
- Press
F1
and selectRemote-Containers: Open Folder in Container...
. - Select the root folder of the project.
- Wait for the container to build and start.
Once the container runs, you will have a fully configured Rust development environment.