Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Shell out to rustfmt instead of embedding it?Β #812

Closed
@sunshowers

Description

@sunshowers

Hi! My understanding is that currently RLS embeds a copy of rustfmt. Would it be possible to add an optional mode where it shells out to rustfmt at a given location instead?

For some context: we would like to start checking built copies of rustfmt (for all our platforms) into our monorepo. The idea is that all our Rust code is always kept autoformatted. A rustfmt version bump happens atomically with any formatting changes introduced in it.

The biggest blocker we have right now is RLS: since RLS embeds a copy of rustfmt, it's possible that the versions of rustfmt in RLS and in the repo are out of sync. It would be really cool if RLS could shell out to the copy of rustfmt in our repo instead of embedding it.

Simply using the stdio mode of rustfmt might work!

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