hack.mts 455 B

123456789101112131415
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import {
  4. cliArguments,
  5. getToolchainArgument,
  6. workingDirectory,
  7. } from './setup/shared.mts';
  8. const [folder, ...args] = cliArguments();
  9. const checkArgs = ['--all-targets', '--feature-powerset', ...args];
  10. const toolchain = getToolchainArgument('lint');
  11. const manifestPath = path.join(workingDirectory, folder, 'Cargo.toml');
  12. await $`cargo ${toolchain} hack check --manifest-path ${manifestPath} ${checkArgs}`;