Skip to Content
The Rust Programming Language (Covers Rust 2018)
book

The Rust Programming Language (Covers Rust 2018)

by Carol Nichols
July 2019
Intermediate to advanced
560 pages
14h 12m
English
No Starch Press
Content preview from The Rust Programming Language (Covers Rust 2018)

DUSEFUL DEVELOPMENT TOOLS

Image

In this appendix, we talk about some useful development tools that the Rust project provides. We’ll look at automatic formatting, quick ways to apply warning fixes, a linter, and integrating with IDEs.

Automatic Formatting with rustfmt

The rustfmt tool reformats your code according to the community code style. Many collaborative projects use rustfmt to prevent arguments about which style to use when writing Rust: everyone formats their code using the tool.

To install rustfmt, enter the following:

$ rustup component add rustfmt

This command gives you rustfmt and cargo-fmt, similar to how Rust gives you both rustc and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Rust Programming Language

The Rust Programming Language

Steve Klabnik, Carol Nichols
Hands-on Rust

Hands-on Rust

Herbert Wolverson
Rust Web Programming

Rust Web Programming

Maxwell Flitton

Publisher Resources

ISBN: 9781098122539