Skip to content

Glossary: Rust in Practice

attribute

Also written: attributes

A `#[...]` note attached to an item that changes how the compiler or a library treats it, such as `#[serde(rename_all = "camelCase")]`.

Where the book teaches it

Related terms

serdeclap