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
commit 76c25ef286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
},
}