January 2019
Intermediate to advanced
520 pages
14h 32m
English
You can change the behavior of rustfmt with a configuration to set your preferred styles. Add the rustfmt.toml configuration file to your project. The defaults of the current version can be described with the following configuration file contents:
max_width = 100hard_tabs = falsetab_spaces = 4newline_style = "Auto"use_small_heuristics = "Default"reorder_imports = truereorder_modules = trueremove_nested_parens = trueedition = "2015"merge_derives = trueuse_try_shorthand = falseuse_field_init_shorthand = falseforce_explicit_abi = true
Most parameters have descriptive names, but if you want to read a description of the parameters, you can pass the --help=config argument to rustfmt to see the details. You can create a rustfmt.toml ...
Read now
Unlock full access