Shell out to rustfmt instead of embedding it?Β #812
Description
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!