lint-rust-features.mjs 443 B

12345678910111213141516171819
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import {
  4. cliArguments,
  5. getToolchainArgument,
  6. workingDirectory,
  7. } from '../utils.mjs';
  8. const args = cliArguments();
  9. const toolchain = getToolchainArgument('lint');
  10. const manifestPath = path.join(
  11. workingDirectory,
  12. 'clients',
  13. 'rust',
  14. 'Cargo.toml'
  15. );
  16. // Check feature powerset.
  17. await $`cargo ${toolchain} hack check --manifest-path ${manifestPath} --feature-powerset --all-targets ${args}`;