Skip to content

User configuration file for non-formatting options #871

@kamalmarhubi

Description

@kamalmarhubi

This came up in #856, and is related to #837.

There are two types of options in rustfmt.toml right now: those that are related to the formatting style and those that are not.

There are currently three non-formatting options:

  • write_mode
  • verbose
  • skip_children

These make sense as command line flags, and as individual user settings that govern invocation. They do not make sense at the project level.

I propose adding a per-user configuration file for these settings, and removing them from the project-level rustfmt.toml. Let's call this ~/.rustfmtconfig for now; the file name and location can be bikeshedded later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions