tool.toml 448 B

1234567891011121314151617181920212223242526272829
  1. [tasks.rust_clean]
  2. script = [
  3. """
  4. cd rust-lib
  5. cargo clean
  6. cd ../../shared-lib
  7. cargo clean
  8. CACHE_FILE=lib-infra/.cache
  9. if [ -d "$CACHE_FILE" ]; then
  10. echo "Remove $CACHE_FILE"
  11. rm -rf $CACHE_FILE
  12. fi
  13. """,
  14. ]
  15. script_runner = "@shell"
  16. [tasks.rust_clean.windows]
  17. script = [
  18. """
  19. cd rust-lib
  20. cargo clean
  21. cd ../../shared-lib
  22. rmdir /s/q "lib-infra/.cache"
  23. """,
  24. ]
  25. script_runner = "@duckscript"