tasks.json 777 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "type": "cargo",
  6. "command": "build",
  7. "problemMatcher": [
  8. "$rustc"
  9. ],
  10. "group": {
  11. "kind": "build",
  12. "isDefault": true
  13. },
  14. "options": {
  15. "cwd": "${workspaceFolder}/rust"
  16. },
  17. "label": "rust: cargo build",
  18. },
  19. {
  20. "type": "cargo",
  21. "command": "build",
  22. "problemMatcher": [
  23. "$rustc"
  24. ],
  25. "group": {
  26. "kind": "build",
  27. },
  28. "options": {
  29. "cwd": "${workspaceFolder}/rust"
  30. },
  31. "args": [
  32. "--release"
  33. ],
  34. "label": "rust: cargo build release",
  35. },
  36. {
  37. "type": "shell",
  38. "group": "build",
  39. "command": "upx --best --lzma ${workspaceFolder}/rust/target/release/telnum_gen",
  40. "dependsOn": "rust: cargo build release",
  41. "label": "rust: upx optimize build",
  42. }
  43. ]
  44. }