Cargo Features

rust-format has no features set by default.

[dependencies]
rust-format = { version = "0.3.4", features = ["post_process", "pretty_please", "token_stream"] }
post_process

Enables parsing of syn ^1.0

pretty_please = prettyplease, token_stream

Enables full and parsing of syn ^1.0

Affects rust-format::PrettyPlease

token_stream pretty_please? = proc-macro2

Affects rust-format::Formatter.format_tokens

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

prettyplease pretty_please?

Enables prettyplease ^0.1

proc-macro2 token_stream?
syn post_process? pretty_please?

Enables syn ^1.0