(filePath: string)
| 2118 | // ── Format with rustfmt ───────────────────────────────────────────────────── |
| 2119 | |
| 2120 | async function rustfmt(filePath: string): Promise<void> { |
| 2121 | try { |
| 2122 | await execFileAsync("rustfmt", ["--edition", "2021", filePath]); |
| 2123 | } catch (e: unknown) { |
| 2124 | const error = e as { stderr?: string }; |
| 2125 | console.warn( |
| 2126 | `rustfmt warning for ${path.basename(filePath)}: ${error.stderr || e}`, |
| 2127 | ); |
| 2128 | } |
| 2129 | } |
| 2130 | |
| 2131 | // ── Main ──────────────────────────────────────────────────────────────────── |
| 2132 |
no outgoing calls
no test coverage detected
searching dependent graphs…