Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

rustfmt configuration file #5456

@ivanceras

Description

@ivanceras

There is no rustfmt.tomlused in the code, except for .editorconfig
I'm trying to replicate the configurations used in substrate code to rustfmt.toml,

unstable_features = true
max_width = 100
# substrate devs uses hardtabs as convention
hard_tabs = true
# prevent reorder imports
reorder_imports = false
# prevent reorder of module declarations
reorder_modules = false
imports_layout = "Mixed"
use_small_heuristics = "Max"

but everytime I invoke cargo fmt there are a lot of changes to the code.
I'm curious to find out how the substrate devs are synchronizing their format configurations.

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