About the Code

The example projects and code are as short as possible and focused on displaying a minimal example of each brain teaser. The examples are contained within a Rust workspace. To execute each sample, change to the example’s directory in your terminal and type cargo run.

Some brain teasers require additional library support. In these cases, the Cargo.toml file is displayed next to the example’s source code.

Get Rust Brain Teasers 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.