feat(format): add rustfmt formatter for Rust files (#6482)

This commit is contained in:
Farhad Omid
2025-12-31 00:06:55 +01:00
committed by GitHub
parent 870a402062
commit 4ae525eb93
2 changed files with 10 additions and 0 deletions
@@ -331,3 +331,12 @@ export const nixfmt: Info = {
return Bun.which("nixfmt") !== null
},
}
export const rustfmt: Info = {
name: "rustfmt",
command: ["rustfmt", "$FILE"],
extensions: [".rs"],
async enabled() {
return Bun.which("rustfmt") !== null
},
}