Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. include vars.env
  2. nightly = +$(subst ",,${RUST_TOOLCHAIN_NIGHTLY})
  3. clippy-%:
  4. cargo $(nightly) clippy --manifest-path $(subst -,/,$*)/Cargo.toml
  5. format-%:
  6. cargo $(nightly) fmt --check --manifest-path $(subst -,/,$*)/Cargo.toml
  7. format-%-fix:
  8. cargo $(nightly) fmt --manifest-path $(subst -,/,$*)/Cargo.toml
  9. features-%:
  10. cargo $(nightly) hack check --feature-powerset --all-targets --manifest-path $(subst -,/,$*)/Cargo.toml
  11. publish-%:
  12. ./scripts/publish-rust.sh $(subst -,/,$*)
  13. lint-docs-%:
  14. RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo $(nightly) doc --all-features --no-deps --manifest-path $(subst -,/,$*)/Cargo.toml
  15. lint-features-%:
  16. cargo $(nightly) hack check --feature-powerset --all-targets --manifest-path $(subst -,/,$*)/Cargo.toml
  17. test-%:
  18. cargo $(nightly) test --manifest-path $(subst -,/,$*)/Cargo.toml
  19. format-js:
  20. cd ./clients/js && pnpm install && pnpm format
  21. lint-js:
  22. cd ./clients/js && pnpm install && pnpm lint
  23. test-js:
  24. ./scripts/restart-test-validator.sh
  25. cd ./clients/js && pnpm install && pnpm build && pnpm test
  26. ./scripts/stop-test-validator.sh