rustfmt
Run rustfmt using nightly compiler π
This might be needed if you want to use nighty only features
To format specific file π
Does the whole file plus any files included in it like the rest of the library in this example
rustfmt +nightly src/lib.rs
To format all binary and library targets of your crate π
cargo +nightly fmt
Using comment wrapping (comment_width) π
Source: https://rust-lang.github.io/rustfmt/#comment_width
# `wrap_comments` is unstable so to use you need to use nightly.
# Uncomment the line below then run `cargo +nightly fmt`
# wrap_comments = true