()
| 309 | } |
| 310 | |
| 311 | function rustHostTriple() { |
| 312 | const result = spawnSync("rustc", ["-vV"], { encoding: "utf8" }); |
| 313 | if (result.status !== 0) { |
| 314 | return `${process.platform}-${process.arch}`; |
| 315 | } |
| 316 | const host = result.stdout |
| 317 | .split("\n") |
| 318 | .find((line) => line.startsWith("host: ")) |
| 319 | ?.slice("host: ".length) |
| 320 | .trim(); |
| 321 | return host || `${process.platform}-${process.arch}`; |
| 322 | } |
| 323 | |
| 324 | function mtimeMs(path) { |
| 325 | try { |