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

Rust formatter configuration

Rust formatting configuration is stored in file rustfmt.toml.

Configuring Rustfmt (v1.8.0)

Unstable but handy

imports_granularity = "Module"
tab_spaces = 2
max_width = 180

unstable option: imports_granularity

Can be used like this:

cargo +nightly fmt