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 live online training, plus books, videos, and digital content from nearly 200 publishers.