17 Rust’s most popular crates
This chapter covers
- Serialization and deserialization with
serde
- Time with the
time
module andchrono
crate - Speeding up your code with the
rayon
crate - Errors with the
anyhow
andthiserror
crates - Statics with the
lazy_static
andonce_cell
crates - Blanket trait implementations on other types
This chapter is sort of a cookbook of some of the most popular external crates. These crates are so common that you can almost think of them as extensions of the standard library—they’re not just random crates sitting around that nobody uses. Learning just these few crates will allow you to turn data like JSON into Rust structs, work with time and time zones, handle errors with less code, speed up your code, and work with global ...
Get Learn Rust in a Month of Lunches now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.