Skip to content

[Feature Request] Read cargo fmt configurations from .cargo/config.toml #5988

Closed as not planned
@aDogCalledSpot

Description

@aDogCalledSpot

I would like a single project to use a custom formatter. I have created a .cargo/config.toml with the following contents:

[env]
RUSTFMT = "echo"

however, the usual formatter appears to be called.

Using RUSTFMT="echo" cargo fmt returns /path/to/main.rs --edition 2021 as expected.

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