Skip to content

Glossary: System Design Basics in Rust

#[allow(dead_code)]

A Rust attribute that stops the compiler from warning about functions or other items that a program never calls. It is useful in front of a `mod` declaration when a program uses only some of the module's functions.

Where the book teaches it

Related terms

mod / pub