Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Getting Started

Rust procedural macros must be part of their own crate. The reason is that the crate is used as a plugin by the compiler. It is necesserary to indicate to cargo that the crate will contains procedural macros by adding the following to the Cargo.toml file:

[lib]
proc-macro = true