PriorityQueue - Rust #001
This video is in French.
In this first episode, we code together a data structure for managing tasks with different priority levels.
What you will learn
- Create a Priority Queue in Rust
- Use VecDeque for efficient queues
- Write unit tests with Cargo
- Handle errors with Result and enum
Technologies: Rust, Cargo, VecDeque. Level: intermediate.
This project is part of a series where we will build a complete solution: fairness between producers, asynchronous tasks, persistence and monitoring.
Source code: github.com/xigh/pq-async-rs