lint-features.mjs 468 B

1234567891011121314
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import {
  4. cliArguments,
  5. getToolchainArgument,
  6. workingDirectory,
  7. } from '../utils.mjs';
  8. const args = ['--exclude-features', 'frozen-abi', ...cliArguments()];
  9. const toolchain = getToolchainArgument('lint');
  10. const manifestPath = path.join(workingDirectory, 'interface', 'Cargo.toml');
  11. // Check feature powerset.
  12. await $`cargo ${toolchain} hack check --manifest-path ${manifestPath} --feature-powerset --all-targets ${args}`;