Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 2.56 KB

contents.md

File metadata and controls

74 lines (48 loc) · 2.56 KB

Contents of this Workshop

5-10 minutes

In this section we cover everything you need to get started with Rust. We will set up the development environment. Ideally complete this prior to the workshop. Also if you have this set up please skip this section.

20 minutes

In this section we will start the project by reading the authentication token in from a file. We will be introduced to working with the standard library.

15 minutes

In this section our goal is to be able to successfully hit the Github API. In doing so we will learn about dependencies (crates).

20 minutes

In this section we want to be able to structure the data returned from the API call. We will learn how to interact with JSON data (and most other serialization targets as well). It will touch on macros and their power in deriving implementations.

10 minutes

In this section we will focus on small refactoring using Rust's module system. We are going to separate our code to split our models and the logic.

10 minutes

In this section we will introduce the ? operator, used for error handling in Rust. We will look into providing more useful error types and providing more relevant contextual information on those errors.

20 minutes

In this section we will be doing a fair bit of tweaking. At this point we have everything all together but it is pretty much a single function which is pretty hard to reuse and test. Here we will investigate mechanisms Rust has for providing this modularity. In particular we want to look at making a struct that can be used to obtain our information.

10-20 minutes

In this section we will introduce some basic examples for testing now that we have organized our code a bit better.