Exploring the source

Let's look at feruscore's Cargo.toml first. It is:

[package]
name = "feruscore"
version = "0.1.0"
authors = ["Brian L. Troutwine <brian@troutwine.us>"]

[dependencies]
rand = "0.4"
rayon = "1.0"
tempdir = "0.3"

We saw the tempdir crate back in Chapter 5, Locks – Mutex, Condvar, Barriers and RWLock; its purpose is to create temporary directories that get deleted when the directory handler is dropped. We discussed rayon earlier in the chapter. The rand crate is new, though we did mention it in passing in both Chapter 2, Sequential Rust Performance and Testing,  and Chapter 5, Locks  Mutex, Condvar, Barriers and RWLock, when we produced our own XorShift. The rand crate implements many different pseudo-random algorithms, ...

Get Hands-On Concurrency with Rust 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.