Live-coding a Rust crate for cancellable services
Following the majority vote on a Twitter poll (https://twitter.com/Jonhoo/status/996138086257086464), we're building a Rust crate that provides a wrapper type for "cancellable" services. We're writing it end-to-end in one sitting, with the hope of ending up with a self-contained, tested, and documented crate. This particular crate has no external dependencies, so it should be a good way to get an introduction to all the things to think about when building a new crate from scratch, regardless of whether you're a newcomer to the language or not. We also touch on some of the new features in Rust 1.26 and other changes coming down the pike.
This video is intended for users who are already somewhat familiar with Rust, but who want to see something larger and more involved be built. You can see earlier related videos in this playlist: https://www.youtube.com/playlist?list=PLqbS7AVVErFgY2faCIYjJZv_RluGkTlKt.
If you enjoyed this, go follow me on Twitter, or on Patreon at https://www.patreon.com/jonhoo to see announcements for new videos! There will be several more videos that either cover new topics (see Twitter) or that complete ones we've started in the past (like async-ssh: https://www.youtube.com/watch?v=RBQwZthJjoM&list=PLqbS7AVVErFgY2faCIYjJZv_RluGkTlKt&index=4&t=0s)
The code we ended up with is available here: https://github.com/jonhoo/minion
Other Videos By Jon Gjengset
2019-01-26 | Porting flamegraph to Rust — part 1 |
2019-01-05 | Rust at speed — building a fast concurrent database |
2018-11-17 | The What and How of Futures and async/await in Rust |
2018-11-15 | Building a ranked-choice voting site for new stream ideas |
2018-09-30 | Rust open-source contributions stream |
2018-09-01 | Desktop and editor setup for Rust development |
2018-07-29 | Building an asynchronous ZooKeeper client in Rust (part 3) |
2018-07-15 | Building an asynchronous ZooKeeper client in Rust (part 2) |
2018-07-01 | Building an asynchronous ZooKeeper client in Rust |
2018-06-02 | Live-coding a linked hash map in Rust |
2018-05-20 | Live-coding a Rust crate for cancellable services |
2018-03-31 | Live-coding an asynchronous Rust crate for short EC2 jobs (part 3) |
2018-03-17 | Live-coding a Rust crate for asynchronous SSH connections |
2018-02-24 | Live-coding a Rust crate for short EC2 jobs (part 2) |
2018-02-10 | Live-coding a Rust crate for short EC2 jobs (part 1) |