Skip to content

[RFC] Change the default behavior of rustfmt to not to format sub-modules #3587

Closed
@topecongiro

Description

@topecongiro

Summary

Change the default behavior of rustfmt to not to format sub-modules of the given files by default. The behavior of cargo fmt will not change with this proposal.

Steps

  1. Change the default behavior of rustfmt to not to format sub-modules
  2. Deprecate --skip-children (as it will the default)
  3. Add -r,--recursive command line option, when if present, rustfmt will format the given files and their sub-modules (the current default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions