You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, that seems pretty reasonable. Given rustfmt'ing is a best-effort thing anyway it may be worth not touching the public API and just early-return from the rustfmt path.
It may be worth rather than a feature to disabling rustfmt, adding a default-feature enable auto-finding rustfmt (and thus which), but still allow to run rustfmt via the env variable or what explicit option if appropriate, that is, basically, adding a feature called which or something, then cfg-ing this match out based on that and returning an error directly:
That allows to run rustfmt if explicitly asked for it and skip the which dependency. Are you ok with this @lopopolo? Would you be willing to send a patch for that?
I never
rustfmt
generated bindings and I do not check them into source control.rustfmt'ing brings in a dependency on which -> failure -> backtrace that I otherwise do not need.
Can we add a cargo feature to disable
rustfmt
ing of code and make thewhich
crate an optional dependency?The text was updated successfully, but these errors were encountered: