Files
spacedrive/scripts/utils/rustup.mjs
Jamie Pine 14dbd8da61 lint
2026-01-07 21:58:17 -08:00

15 lines
340 B
JavaScript

import { exec as execCb } from "node:child_process";
import { promisify } from "node:util";
const exec = promisify(execCb);
/**
* Get the list of rust targets
* @returns {Promise<Set<string>>}
*/
export async function getRustTargetList() {
return new Set(
(await exec("rustup target list --installed")).stdout.split("\n")
);
}